From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wIIGOcyi9F6TfgAA0tVLHw (envelope-from ) for ; Thu, 25 Jun 2020 13:12:44 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id 0KzfNMyi9F4cGgAA1q6Kng (envelope-from ) for ; Thu, 25 Jun 2020 13:12:44 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0F6F99401CF for ; Thu, 25 Jun 2020 13:12:42 +0000 (UTC) Received: from localhost ([::1]:44050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRgG-00030v-4Y for larch@yhetil.org; Thu, 25 Jun 2020 09:12:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53218) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1joRZ7-0000xU-Ck for help-guix@gnu.org; Thu, 25 Jun 2020 09:05:17 -0400 Received: from flashner.co.il ([178.62.234.194]:60326) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1joRZ4-0006Bk-1x; Thu, 25 Jun 2020 09:05:16 -0400 Received: from localhost (unknown [31.210.181.184]) by flashner.co.il (Postfix) with ESMTPSA id 4A84F40045; Thu, 25 Jun 2020 13:04:40 +0000 (UTC) Date: Thu, 25 Jun 2020 16:04:07 +0300 From: Efraim Flashner To: zimoun Subject: Re: failing to package attrs-strict for swh.model Message-ID: <20200625130407.GC21908@E5400> References: <86k0zxqz91.fsf@gmail.com> <87imfg6x8x.fsf@gnu.org> <86imffb8s6.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: <86imffb8s6.fsf@gmail.com> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/25 09:04:40 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: lLn8rjsNJ1kA --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 25, 2020 at 02:59:53PM +0200, zimoun wrote: > Hi Marius, >=20 > Thank you for the help. >=20 > On Wed, 24 Jun 2020 at 22:10, Marius Bakke wrote: >=20 > > I notice the file name in this command is "attrs_strict". Probably the > > importer picked the wrong file name and you need to change it to > > (pypi-uri "attrs_strict" version). >=20 > Thanks! Stupid mistake I did. :-) >=20 > > Can you paste the full package definition? >=20 > Well, I have tried with and without the 'arguments'. >=20 > --8<---------------cut here---------------start------------->8--- > (define-public python-attrs-strict > (package > (name "python-attrs-strict") > (version "0.1.0") > (source > (origin > (method url-fetch) > (uri (pypi-uri "attrs_strict" version)) > (sha256 > (base32 > "0nldyv053xiv9aaysjszgisi9d9d87f5l2jf3rhl3xm9c9spar96")))) > (build-system python-build-system) > (native-inputs > `(("python-pytest" ,python-pytest) > ("python-pluggy" ,python-pluggy))) > (propagated-inputs > `(("python-attrs" ,python-attrs) > ("python-typing" ,python-typing))) > (arguments > `(#:phases (modify-phases %standard-phases > (replace 'check > (lambda _ > (invoke "pytest") > #t))))) > (home-page "https://github.com/bloomberg/attrs-strict") > (synopsis "Runtime validators for attrs") > (description > "Package that contains runtime validation for @code{attrs} data clas= ses > based on the types existing in the typing module.") > (license license:asl2.0))) > --8<---------------cut here---------------end--------------->8--- >=20 > Then the Traceback is: >=20 > --8<---------------cut here---------------start------------->8--- > starting phase `check' > Traceback (most recent call last): > File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/b= in/.pytest-real", line 11, in > load_entry_point('pytest=3D=3D5.3.5', 'console_scripts', 'pytest')() > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 489, in load_entry_poi= nt > return get_distribution(dist).load_entry_point(group, name) > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 2852, in load_entry_po= int > return ep.load() > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 2443, in load > return self.resolve() > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/site-packages/pkg_resources/__init__.py", line 2449, in resolve > module =3D __import__(self.module_name, fromlist=3D['__name__'], leve= l=3D0) > File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/l= ib/python3.8/site-packages/pytest/__init__.py", line 6, in > from _pytest.assertion import register_assert_rewrite > File "/gnu/store/3bk454z353a42l1l4yaxa6lrl3dh24mv-python-pytest-5.3.5/l= ib/python3.8/site-packages/_pytest/assertion/__init__.py", line 5, in > from typing import Optional > File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1= /lib/python3.8/site-packages/typing.py", line 1357, in > class Callable(extra=3Dcollections_abc.Callable, metaclass=3DCallable= Meta): > File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1= /lib/python3.8/site-packages/typing.py", line 1005, in __new__ > self._abc_registry =3D extra._abc_registry > AttributeError: type object 'Callable' has no attribute '_abc_registry' > command "pytest" failed with status 1 > --8<---------------cut here---------------end--------------->8--- >=20 > And without the 'replace' i.e., "python setup.py test", the Traceback > is: >=20 > --8<---------------cut here---------------start------------->8--- > starting phase `check' > running "python setup.py" with command "test" and parameters () > Traceback (most recent call last): > File "", line 1, in > File "setup.py", line 14, in > setup(long_description=3Dlong_description) > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/site-packages/setuptools/__init__.py", line 145, in setup > return distutils.core.setup(**attrs) > File "/gnu/store/q9rm8h9imazsq2c4qiv2yjpvlvliywqb-python-3.8.2/lib/pyth= on3.8/distutils/core.py", line 134, in setup > [...] > import typing > File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1= /lib/python3.8/site-packages/typing.py", line 1357, in > class Callable(extra=3Dcollections_abc.Callable, metaclass=3DCallable= Meta): > File "/gnu/store/lnbh9ks047sw41b6dc3zk6z1qy4b8cv0-python-typing-3.7.4.1= /lib/python3.8/site-packages/typing.py", line 1005, in __new__ > self._abc_registry =3D extra._abc_registry > AttributeError: type object 'Callable' has no attribute '_abc_registry' > command "python" "-c" "import setuptools, tokenize;__file__=3D'setup.py';= f=3Dgetattr(tokenize, 'open', open)(__file__);code=3Df.read().replace('\\r\= \n', '\\n');f.close();exec(compile(code, __file__, 'exec'))" "test" failed = with status 1 > --8<---------------cut here---------------end--------------->8--- >=20 >=20 > Well, what I want at the end is the PyPI package "swh.model". >=20 >=20 > Thanks, > simon >=20 I believe according to the python output from previous building packages abc_registry has been deprecated since 3.3. I would just skip the tests for now and see if upstream has an answer for building with python-3.8. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl70oMQACgkQQarn3Mo9 g1G8MxAAsMgt99k4f8yc0MzxrTJwhArWORpvqZasG6wL27jHmXHPokD5GB5F+RvO D4tYdfIVeYPZCouzCQt9+IZOk1ZBqzGGU2/06jW1ccO0CPex8WtFcHUc7EBGB+1/ 3dVpjfPrKORSpOG73Sp6Cd5GjL9/+EyNDKZ6/H4LgxMOhvgCFxZhKRFEE+4rCE9A g+Dsj3JW0kzeU73/oYZK4HLxQEUMleEXYGRsQAa3wq70hq+APdleG8648LJCGeti 6w81xoRe9jDRzIYfYiRGXIu1RnMlneL3Ts4RaQJUrfvVF7yQ32WIdu1pHy/do27Z GLAakeeyPj8DDJc6TZ2E/2dqd7S//3wkIBDB/YdggDoapc4ewkQWhWWv53Crd8NN na/6lD7VXnMbEg4p+mLg3DakZozYwdJF/W0n7L/BwvtmD6Sw+Yh8Sv6meOgnR2JL shnqpmDqXG5CfyPXlZZlegnG9Ekcv7bjPfvruiGElp+V+1DPq+sg90Mo1kXAlADk DeN/ReENv8V8FFyiN0wiykCeMf83X54F8/aS56fvDx6KceIkT9EYJYeruDpDsV89 T+SGxqNBacC4lW+DDt+MDSViEiqw8v+t4sULtJXJ49A0MnclCOHj5eBADs/vGeNE gHpzEviP1oPr6BY1gQ9Ic5eeNHlYoThNZ294eEhoLDRD8EIUQAI= =vNMn -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai--