Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Jun 2022 12:36:16 +0900
From:      Norikatsu Shigemura <nork@FreeBSD.org>
To:        python@FreeBSD.org
Subject:   devel/py-pbr spends time on build (PR#264363)
Message-ID:  <f7ba503e-869a-ef9c-b6be-87d969dc3feb@FreeBSD.org>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------IMevtDNc9hbwAALViI6YDYDY
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi python developers.

When I made a new port, devel/py-jschema_to_python [PR#264362],

I noticed that I spend time during build [PR#264363].

[PR#264362] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264362
[PR#264363] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264363

So I researched this issue like following, I noticed that python run

'git --git-dir=/usr/ports/.git'.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# make
===>  License MIT accepted by the user
===>   py310-jschema_to_python-1.2.3 depends on file: 
/usr/local/sbin/pkg - found
===> Fetching all distfiles required by py310-jschema_to_python-1.2.3 
for building
(omitted)
===>  Configuring for py310-jschema_to_python-1.2.3
(RUN: /usr/local/bin/python3.10 -c import sys; import setuptools;  
__file__='setup.py'; sys.argv[0]='setup.py'; exec(compile(open(__file__, 
'rb').read().replace(b'\\r\\n', b'\\n'), __file__, 'exec')) build)
(RUN: git --git-dir=/usr/ports/.git log --decorate=full 
--format=%h%x00%s%x00%d)
(after 36 sec)
running config
===>  Building for py310-jschema_to_python-1.2.3
(RUN: git --git-dir=/usr/ports/.git log --pretty=%B HEAD)
(after 36 sec)
running build
running build_py
(omitted)
===>   py310-jschema_to_python-1.2.3 depends on file: 
/usr/local/bin/python3.10 - found
===>   Generating temporary packing list
(RUN: git --git-dir=/usr/ports/.git log --pretty=%B HEAD)
(after 36 sec)
running install
[pbr] Writing ChangeLog
[pbr] Generating ChangeLog
[pbr] ChangeLog complete (24.5s)
[pbr] Generating AUTHORS
(RUN: git --git-dir=/usr/ports/.git log --format=%aN <%aE>)
[pbr] AUTHORS complete (42.4s)
running build
running build_py
(omitted)
===> Creating unique files: Move MAN files needing SUFFIX
===> Creating unique files: Move files needing SUFFIX
====> Compressing man pages (compress-man)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Oh my god, I confirmed that py-pbr makes junk data.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# ls -lh work-py310/jschema-to-python-1.2.3/AUTHORS 
work-py310/jschema-to-python-1.2.3/ChangeLog
-rw-r--r--  1 root  wheel    38K Jun  4 04:23 
work-py310/jschema-to-python-1.2.3/AUTHORS
-rw-r--r--  1 root  wheel    31M Jun  4 04:22 
work-py310/jschema-to-python-1.2.3/ChangeLog
# wc -l work-py310/jschema-to-python-1.2.3/AUTHORS 
work-py310/jschema-to-python-1.2.3/ChangeLog
     1092 work-py310/jschema-to-python-1.2.3/AUTHORS
   584940 work-py310/jschema-to-python-1.2.3/ChangeLog
   586032 total
# head -5 work-py310/jschema-to-python-1.2.3/AUTHORS 
work-py310/jschema-to-python-1.2.3/ChangeLog
==> work-py310/jschema-to-python-1.2.3/AUTHORS <==
Aaron Dalton <aaron@FreeBSD.org>
Aaron LI <aly@aaronly.me>
Adam David <adam@FreeBSD.org>
Adam Jimerson <vendion@gmail.com>
Adam Weinberger <adamw@FreeBSD.org>

==> work-py310/jschema-to-python-1.2.3/ChangeLog <==
CHANGES
=======

* devel/py-twilio: update to version 7.9.2
* net/natscli: update to version 0.0.33
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I tried to remove git repository or git command, but it's too bad.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# mv /usr/ports/.git /usr/ports/.git.IGNORE
   or
# mv /usr/local/bin/git /usr/local/bin/git.IGNORE
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# make
(omitted)
===>  Configuring for py310-jschema_to_python-1.2.3
Error parsing
Traceback (most recent call last):
   File "/usr/local/lib/python3.10/site-packages/pbr/core.py", line 111, 
in pbr
     attrs = util.cfg_to_args(path, dist.script_args)
   File "/usr/local/lib/python3.10/site-packages/pbr/util.py", line 272, 
in cfg_to_args
     pbr.hooks.setup_hook(config)
   File "/usr/local/lib/python3.10/site-packages/pbr/hooks/__init__.py", 
line 25, in setup_hook
     metadata_config.run()
   File "/usr/local/lib/python3.10/site-packages/pbr/hooks/base.py", 
line 27, in run
     self.hook()
   File "/usr/local/lib/python3.10/site-packages/pbr/hooks/metadata.py", 
line 25, in hook
     self.config['version'] = packaging.get_version(
   File "/usr/local/lib/python3.10/site-packages/pbr/packaging.py", line 
872, in get_version
     raise Exception("Versioning for this project requires either an sdist"
Exception: Versioning for this project requires either an sdist tarball, 
or access to an upstream git repository. It's also possible that there 
is a mismatch between the package name in setup.cfg and the argument 
given to pbr.version.VersionInfo. Project name jschema_to_python was 
given, but was not able to be found.
error in setup command: Error parsing 
/usr/ports/devel/py-jschema_to_python/work-py310/jschema-to-python-1.2.3/setup.cfg: 
Exception: Versioning for this project requires either an sdist tarball, 
or access to an upstream git repository. It's also possible that there 
is a mismatch between the package name in setup.cfg and the argument 
given to pbr.version.VersionInfo. Project name jschema_to_python was 
given, but was not able to be found.
*** Error code 1

Stop.
make: stopped in /usr/ports/devel/py-jschema_to_python
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

I think that py-pbr requires git on runtime, but...

I don't have any idea to fix this issue,  what I should fix my port or

not, so please help me.

--------------IMevtDNc9hbwAALViI6YDYDY
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font size="4">Hi python developers.</font></p>
    <p><font size="4">When I made a new port, devel/py-jschema_to_python
        [PR#264362],</font></p>
    <p><font size="4">I noticed that I spend time during build
        [PR#264363].<br>
      </font></p>
    <p><font size="4">[PR#264362]
        <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264362">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264362</a><br>;
        [PR#264363]
        <a class="moz-txt-link-freetext" href="https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264363">https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264363</a><br>;
        <br>
        So I researched this issue like following, I noticed that python
        run</font></p>
    <p><font size="4">'git --git-dir=/usr/ports/.git'.<br>
      </font></p>
    <p><font size="4">- - - - - - - - - - - - - - - - - - - - - - - - -
        - - - - - - - - - -<br>
        # make<br>
        ===&gt;  License MIT accepted by the user<br>
        ===&gt;   py310-jschema_to_python-1.2.3 depends on file:
        /usr/local/sbin/pkg - found<br>
        ===&gt; Fetching all distfiles required by
        py310-jschema_to_python-1.2.3 for building<br>
        (omitted)<br>
        ===&gt;  Configuring for py310-jschema_to_python-1.2.3<br>
        (RUN: /usr/local/bin/python3.10 -c import sys; import
        setuptools;  __file__='setup.py'; sys.argv[0]='setup.py'; 
        exec(compile(open(__file__, 'rb').read().replace(b'\\r\\n',
        b'\\n'), __file__, 'exec')) build)<br>
        (RUN: git --git-dir=/usr/ports/.git log --decorate=full
        --format=%h%x00%s%x00%d)<br>
        (after 36 sec)<br>
        running config<br>
        ===&gt;  Building for py310-jschema_to_python-1.2.3<br>
        (RUN: git --git-dir=/usr/ports/.git log --pretty=%B HEAD)<br>
        (after 36 sec)<br>
        running build<br>
        running build_py<br>
        (omitted)<br>
        ===&gt;   py310-jschema_to_python-1.2.3 depends on file:
        /usr/local/bin/python3.10 - found<br>
        ===&gt;   Generating temporary packing list<br>
        (RUN: git --git-dir=/usr/ports/.git log --pretty=%B HEAD)<br>
        (after 36 sec)<br>
        running install<br>
        [pbr] Writing ChangeLog<br>
        [pbr] Generating ChangeLog<br>
        [pbr] ChangeLog complete (24.5s)<br>
        [pbr] Generating AUTHORS<br>
        (RUN: git --git-dir=/usr/ports/.git log --format=%aN
        &lt;%aE&gt;)<br>
        [pbr] AUTHORS complete (42.4s)<br>
        running build<br>
        running build_py<br>
        (omitted)<br>
        ===&gt; Creating unique files: Move MAN files needing SUFFIX<br>
        ===&gt; Creating unique files: Move files needing SUFFIX<br>
        ====&gt; Compressing man pages (compress-man)<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        <br>
        Oh my god, I confirmed that py-pbr makes junk data.<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        # ls -lh work-py310/jschema-to-python-1.2.3/AUTHORS
        work-py310/jschema-to-python-1.2.3/ChangeLog<br>
        -rw-r--r--  1 root  wheel    38K Jun  4 04:23
        work-py310/jschema-to-python-1.2.3/AUTHORS<br>
        -rw-r--r--  1 root  wheel    31M Jun  4 04:22
        work-py310/jschema-to-python-1.2.3/ChangeLog<br>
        # wc -l work-py310/jschema-to-python-1.2.3/AUTHORS
        work-py310/jschema-to-python-1.2.3/ChangeLog<br>
            1092 work-py310/jschema-to-python-1.2.3/AUTHORS<br>
          584940 work-py310/jschema-to-python-1.2.3/ChangeLog<br>
          586032 total<br>
        # head -5 work-py310/jschema-to-python-1.2.3/AUTHORS
        work-py310/jschema-to-python-1.2.3/ChangeLog<br>
        ==&gt; work-py310/jschema-to-python-1.2.3/AUTHORS &lt;==<br>
        Aaron Dalton <a class="moz-txt-link-rfc2396E" href="mailto:aaron@FreeBSD.org">&lt;aaron@FreeBSD.org&gt;</a><br>
        Aaron LI <a class="moz-txt-link-rfc2396E" href="mailto:aly@aaronly.me">&lt;aly@aaronly.me&gt;</a><br>
        Adam David <a class="moz-txt-link-rfc2396E" href="mailto:adam@FreeBSD.org">&lt;adam@FreeBSD.org&gt;</a><br>
        Adam Jimerson <a class="moz-txt-link-rfc2396E" href="mailto:vendion@gmail.com">&lt;vendion@gmail.com&gt;</a><br>
        Adam Weinberger <a class="moz-txt-link-rfc2396E" href="mailto:adamw@FreeBSD.org">&lt;adamw@FreeBSD.org&gt;</a><br>
        <br>
        ==&gt; work-py310/jschema-to-python-1.2.3/ChangeLog &lt;==<br>
        CHANGES<br>
        =======<br>
        <br>
        * devel/py-twilio: update to version 7.9.2<br>
        * net/natscli: update to version 0.0.33<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        <br>
        I tried to remove git repository or git command, but it's too
        bad.<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        # mv /usr/ports/.git /usr/ports/.git.IGNORE<br>
          or<br>
        # mv /usr/local/bin/git /usr/local/bin/git.IGNORE<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        # make<br>
        (omitted)<br>
        ===&gt;  Configuring for py310-jschema_to_python-1.2.3<br>
        Error parsing<br>
        Traceback (most recent call last):<br>
          File "/usr/local/lib/python3.10/site-packages/pbr/core.py",
        line 111, in pbr<br>
            attrs = util.cfg_to_args(path, dist.script_args)<br>
          File "/usr/local/lib/python3.10/site-packages/pbr/util.py",
        line 272, in cfg_to_args<br>
            pbr.hooks.setup_hook(config)<br>
          File
        "/usr/local/lib/python3.10/site-packages/pbr/hooks/__init__.py",
        line 25, in setup_hook<br>
            metadata_config.run()<br>
          File
        "/usr/local/lib/python3.10/site-packages/pbr/hooks/base.py",
        line 27, in run<br>
            self.hook()<br>
          File
        "/usr/local/lib/python3.10/site-packages/pbr/hooks/metadata.py",
        line 25, in hook<br>
            self.config['version'] = packaging.get_version(<br>
          File
        "/usr/local/lib/python3.10/site-packages/pbr/packaging.py", line
        872, in get_version<br>
            raise Exception("Versioning for this project requires either
        an sdist"<br>
        Exception: Versioning for this project requires either an sdist
        tarball, or access to an upstream git repository. It's also
        possible that there is a mismatch between the package name in
        setup.cfg and the argument given to pbr.version.VersionInfo.
        Project name jschema_to_python was given, but was not able to be
        found.<br>
        error in setup command: Error parsing
/usr/ports/devel/py-jschema_to_python/work-py310/jschema-to-python-1.2.3/setup.cfg:
        Exception: Versioning for this project requires either an sdist
        tarball, or access to an upstream git repository. It's also
        possible that there is a mismatch between the package name in
        setup.cfg and the argument given to pbr.version.VersionInfo.
        Project name jschema_to_python was given, but was not able to be
        found.<br>
        *** Error code 1<br>
        <br>
        Stop.<br>
        make: stopped in /usr/ports/devel/py-jschema_to_python<br>
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        - - -<br>
        <br>
        I think that py-pbr requires git on runtime, but...</font></p>
    <p><font size="4">I don't have any idea to fix this issue,  what I
        should fix my port or</font></p>
    <p><font size="4">not, so please help me.<br>
        <br>
      </font></p>
  </body>
</html>

--------------IMevtDNc9hbwAALViI6YDYDY--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f7ba503e-869a-ef9c-b6be-87d969dc3feb>