From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 02 03:34:20 2020 Received: (at submit) by debbugs.gnu.org; 2 Dec 2020 08:34:20 +0000 Received: from localhost ([127.0.0.1]:34093 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkNae-0006J0-2h for submit@debbugs.gnu.org; Wed, 02 Dec 2020 03:34:20 -0500 Received: from lists.gnu.org ([209.51.188.17]:48880) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkNab-0006Iq-FS for submit@debbugs.gnu.org; Wed, 02 Dec 2020 03:34:18 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkNab-0006bM-4M for guix-patches@gnu.org; Wed, 02 Dec 2020 03:34:17 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:41077) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkNaZ-0003J8-0w for guix-patches@gnu.org; Wed, 02 Dec 2020 03:34:16 -0500 X-Originating-IP: 176.159.32.89 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by relay5-d.mail.gandi.net (Postfix) with ESMTPA id 339541C0003; Wed, 2 Dec 2020 08:34:10 +0000 (UTC) From: Tanguy Le Carrour To: guix-patches@gnu.org Subject: [PATCH] gnu: poetry: Fix a problem with a dependency. Date: Wed, 2 Dec 2020 09:33:54 +0100 Message-Id: <20201202083354.19350-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: none client-ip=217.70.183.197; envelope-from=tanguy@bioneland.org; helo=relay5-d.mail.gandi.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: Tanguy Le Carrour X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * gnu/packages/python-xyz.scm (poetry)[arguments]: Relax version constraints for python-packaging. --- gnu/packages/python-xyz.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bffb643258..67447bdfa5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13227,7 +13227,10 @@ compatible build front-ends to build Poetry managed projects.") (substitute* "setup.py" ;; Newer versions of keyring produce a package with version "0.0.0" ;; Reported upstream: - (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")) + (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0") + ;; TODO: remove after the next release cycle, + ;; when packaging has been updated. + (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0")) #t))))) (propagated-inputs `(("python-cachecontrol" ,python-cachecontrol) -- 2.29.2 From debbugs-submit-bounces@debbugs.gnu.org Thu Dec 03 16:47:35 2020 Received: (at 45003-done) by debbugs.gnu.org; 3 Dec 2020 21:47:35 +0000 Received: from localhost ([127.0.0.1]:41986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkwRq-0007iB-T0 for submit@debbugs.gnu.org; Thu, 03 Dec 2020 16:47:35 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkwRp-0007hz-8r for 45003-done@debbugs.gnu.org; Thu, 03 Dec 2020 16:47:33 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52394) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkwRj-000337-CJ; Thu, 03 Dec 2020 16:47:27 -0500 Received: from host-37-191-236-253.lynet.no ([37.191.236.253]:39026 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kkwRi-0005pS-L0; Thu, 03 Dec 2020 16:47:27 -0500 From: Marius Bakke To: Tanguy Le Carrour , 45003-done@debbugs.gnu.org Subject: Re: [bug#45003] [PATCH] gnu: poetry: Fix a problem with a dependency. In-Reply-To: <20201202083354.19350-1-tanguy@bioneland.org> References: <20201202083354.19350-1-tanguy@bioneland.org> Date: Thu, 03 Dec 2020 22:47:23 +0100 Message-ID: <87o8jaimtw.fsf@gnu.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 45003-done Cc: Tanguy Le Carrour X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Tanguy Le Carrour skriver: > * gnu/packages/python-xyz.scm (poetry)[arguments]: Relax version constraints > for python-packaging. Applied, thanks! Note: I tried to do this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=diff Content-Transfer-Encoding: quoted-printable diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index bffb643258..ce4695a956 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -16003,17 +16003,15 @@ several utilities, as well as an API for building= localization tools.") (define-public python-packaging (package (name "python-packaging") =2D (version "20.0") =2D (source =2D (origin =2D (method url-fetch) =2D (uri (pypi-uri "packaging" version)) =2D ;; XXX: The URL in the patch file is wrong, it should be =2D ;; . =2D (patches (search-patches "python-packaging-test-arch.patch")) =2D (sha256 =2D (base32 =2D "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy")))) + ;; Note: when updating this, be careful not to change the 'bootstrap' + ;; variant below, which can only be updated on 'core-updates'. + (version "20.4") + (source (origin + (method url-fetch) + (uri (pypi-uri "packaging" version)) + (sha256 + (base32 + "1y3rc1ams1i25calk6b9jf1gl85ix5a23a146swjvhdr8x7zfms3")))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases @@ -16046,25 +16044,26 @@ information.") ;; Variants with minimal dependencies, for bootstrapping Pytest. (define-public python-packaging-bootstrap (hidden-package =2D (package/inherit =2D python-packaging =2D (name "python-packaging-bootstrap") =2D (native-inputs '()) =2D (propagated-inputs =2D `(("python-pyparsing" ,python-pyparsing))) =2D (arguments '(#:tests? #f))))) + (package + (inherit python-packaging) + (version "20.0") + (source (origin + (method url-fetch) + (uri (pypi-uri "packaging" version)) + ;; XXX: The URL in the patch file is wrong, it should be + ;; . + (patches (search-patches "python-packaging-test-arch.patch"= )) + (sha256 + (base32 + "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy")))) + (name "python-packaging-bootstrap") + (native-inputs '()) + (propagated-inputs + `(("python-pyparsing" ,python-pyparsing))) + (arguments '(#:tests? #f))))) =20 (define-public python2-packaging-bootstrap =2D (hidden-package =2D (package/inherit =2D python2-packaging =2D (name "python2-packaging-bootstrap") =2D (native-inputs '()) =2D (propagated-inputs =2D `(("python-pyparsing" ,python2-pyparsing))) =2D (arguments =2D `(#:tests? #f =2D ,@(package-arguments python2-packaging)))))) + (package-with-python2 python-packaging-bootstrap)) =20 (define-public python-relatorio (package --=-=-= Content-Type: text/plain But the test suite actually picks the 'python-packaging' that is propagated from 'pytest', and promptly fails. Updating packaging alone is also a staging-level change, so I did not dig much further. But there is some room for improvement here. Maybe by (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) ? I also wonder whether pytest needs to propagate packaging at all, or if wrapping is enough. Do you know how common it is to "import pytest" or "from pytest import foo", and whether those code paths would need 'packaging'? Anyway, future problems! Thanks for maintaining Poetry. :-) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFDBAEBCgAtFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl/JXOsPHG1hcml1c0Bn bnUub3JnAAoJEKKgbfKjOlT6ARYIAJNi2/8KUvCDKQVwO1pYEe0LkRFs/9gJtR1b Vlb3f5wRPLhG2U8sYb8ge93Pp0fNDeE6dxGTGa4ATZ0Z4wTtrLfPU7fXpEk8C+tM awZ0LVSzv54N7/Z146bcRdkW1cqvKOE0qmZKS6XlRrO6YX/IV0+Kml5CHJ27BmEP +yellSh/fK+SnQf7hqvmuHyuhFjHIQt8n3nx1PZDKyHsfq/O0HJhXMTvqJr58qDn fklxQw8QcHozO2wZGFTcUNabmsXIzpwRnZKoHsx9HyvNGcvb7s2hLyixlRY6q4T0 3sLTTE78oT5uIWgK7dCovUBapjJccFU2U0Yx8Ozfdxnqogi6Rb4= =QILR -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 04 02:23:50 2020 Received: (at 45003-done) by debbugs.gnu.org; 4 Dec 2020 07:23:50 +0000 Received: from localhost ([127.0.0.1]:42436 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5RV-0006kh-S3 for submit@debbugs.gnu.org; Fri, 04 Dec 2020 02:23:50 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:46645) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5RT-0006kR-Ic for 45003-done@debbugs.gnu.org; Fri, 04 Dec 2020 02:23:48 -0500 Received: from localhost (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id D41B3100008; Fri, 4 Dec 2020 07:23:40 +0000 (UTC) Date: Fri, 04 Dec 2020 08:23:38 +0100 From: Tanguy LE CARROUR Subject: Re: [bug#45003] [PATCH] gnu: poetry: Fix a problem with a dependency. To: 45003-done@debbugs.gnu.org, Marius Bakke References: <20201202083354.19350-1-tanguy@bioneland.org> <87o8jaimtw.fsf@gnu.org> In-Reply-To: <87o8jaimtw.fsf@gnu.org> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1607066408.sa1r45l72s.astroid@melmoth.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45003-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hi Marius! Excerpts from Marius Bakke's message of December 3, 2020 10:47 pm: > Tanguy Le Carrour skriver: >=20 >> * gnu/packages/python-xyz.scm (poetry)[arguments]: Relax version constra= ints >> for python-packaging. >=20 > Applied, thanks! Thanks! > Note: I tried to do this: > [=E2=80=A6] > But the test suite actually picks the 'python-packaging' that is > propagated from 'pytest', and promptly fails. >=20 > Updating packaging alone is also a staging-level change, so I did not > dig much further. But there is some room for improvement here. Maybe > by (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) ? >=20 > I also wonder whether pytest needs to propagate packaging at all, or if > wrapping is enough. Do you know how common it is to "import pytest" or > "from pytest import foo", and whether those code paths would need > 'packaging'? >=20 > Anyway, future problems! Thanks for maintaining Poetry. :-) I would hardly call it "maintaining"! It's been more like a struggle! ^_^' Now that the situation has (hopefully) stabilized, I can spend some time on the "poetry build system". Thank you again for your precious help and your time! --=20 Tanguy From debbugs-submit-bounces@debbugs.gnu.org Fri Dec 04 02:36:09 2020 Received: (at 45003-done) by debbugs.gnu.org; 4 Dec 2020 07:36:09 +0000 Received: from localhost ([127.0.0.1]:42445 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5dQ-00073O-NI for submit@debbugs.gnu.org; Fri, 04 Dec 2020 02:36:08 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:50177) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kl5dO-00072w-Ms for 45003-done@debbugs.gnu.org; Fri, 04 Dec 2020 02:36:06 -0500 Received: from localhost (static-176-185-184-238.axione.abo.bbox.fr [176.185.184.238]) (Authenticated sender: tanguy@bioneland.org) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 98065240002; Fri, 4 Dec 2020 07:35:59 +0000 (UTC) Date: Fri, 04 Dec 2020 08:35:57 +0100 From: Tanguy LE CARROUR Subject: Re: [bug#45003] [PATCH] gnu: poetry: Fix a problem with a dependency. To: 45003-done@debbugs.gnu.org, Marius Bakke References: <20201202083354.19350-1-tanguy@bioneland.org> <87o8jaimtw.fsf@gnu.org> In-Reply-To: <87o8jaimtw.fsf@gnu.org> MIME-Version: 1.0 User-Agent: astroid/0.15.0 (https://github.com/astroidmail/astroid) Message-Id: <1607066633.9zez5fcynx.astroid@melmoth.none> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45003-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) *Oups*, I sent my message to quickly=E2=80=A6 Excerpts from Marius Bakke's message of December 3, 2020 10:47 pm: > Updating packaging alone is also a staging-level change, so I did not > dig much further. But there is some room for improvement here. Maybe > by (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) ? Actually, I noticed some weird things when using Poetry, that might be related to PYTHONPATH. Even if it was installed in its own profile, it was using python packages installed outside of it. Can't remember for sure, but I think it was `virtualenv`. I had to unset my PYTHONPATH to make it use the ones installed in the profi= le. But, now that the versions are the same in the default profile and in this dedicated Poetry profile, everything seems to be working just fine. > I also wonder whether pytest needs to propagate packaging at all, or if > wrapping is enough. Do you know how common it is to "import pytest" or > "from pytest import foo", and whether those code paths would need > 'packaging'? Usually, one would only do this in the test suite, or in a package that extends pytest behaviour. At least it's what I see from the 450,942 results I've found on Github. But I have to confess that I did not go through all of them! ^_^' Regards --=20 Tanguy From unknown Sun Aug 10 16:43:00 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 01 Jan 2021 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator