From nobody Mon Jun 06 03:36:16 2022 X-Original-To: python@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8FFF01BDDBB4 for ; Mon, 6 Jun 2022 03:36:36 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from mail.ninth-nine.com (153.126.194.184.v6.sakura.ne.jp [IPv6:2401:2500:102:3033:153:126:194:184]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mail.ninth-nine.com", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LGfKv283Gz3P5F for ; Mon, 6 Jun 2022 03:36:32 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from [192.168.36.140] (sakura.ninth-nine.com [219.127.74.120]) (authenticated bits=0) by mail.ninth-nine.com (8.17.1/8.17.1) with ESMTPSA id 2563aII6082994 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 6 Jun 2022 12:36:21 +0900 (JST) (envelope-from nork@FreeBSD.org) X-Authentication-Warning: ik1-333-26680.vs.sakura.ne.jp: Host sakura.ninth-nine.com [219.127.74.120] claimed to be [192.168.36.140] Content-Type: multipart/alternative; boundary="------------IMevtDNc9hbwAALViI6YDYDY" Message-ID: Date: Mon, 6 Jun 2022 12:36:16 +0900 List-Id: FreeBSD-specific Python issues List-Archive: https://lists.freebsd.org/archives/freebsd-python List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-python@freebsd.org X-BeenThere: freebsd-python@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 To: python@FreeBSD.org From: Norikatsu Shigemura Subject: devel/py-pbr spends time on build (PR#264363) X-Rspamd-Queue-Id: 4LGfKv283Gz3P5F X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=softfail (mx1.freebsd.org: 2401:2500:102:3033:153:126:194:184 is neither permitted nor denied by domain of nork@FreeBSD.org) smtp.mailfrom=nork@FreeBSD.org X-Spamd-Result: default: False [-3.10 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; FREEFALL_USER(0.00)[nork]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[python@freebsd.org]; HAS_XAW(0.00)[]; R_SPF_SOFTFAIL(0.00)[~all]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_NONE(0.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_NA(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; MLMMJ_DEST(0.00)[python]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7684, ipnet:2401:2500::/32, country:JP]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; TO_DOM_EQ_FROM_DOM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N 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 LI Adam David Adam Jimerson Adam Weinberger ==> 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

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--