all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3.
@ 2020-10-19 13:26 Tanguy Le Carrour
  2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
                   ` (8 more replies)
  0 siblings, 9 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-19 13:26 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

Tanguy Le Carrour (2):
  gnu: Add python-poetry-core.
  gnu: poetry: Update to 1.1.3.

 gnu/packages/python-xyz.scm | 45 +++++++++++++++++++++++++------------
 1 file changed, 31 insertions(+), 14 deletions(-)

-- 
2.28.0





^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
@ 2020-10-19 13:29 ` Tanguy Le Carrour
  2020-10-19 13:29   ` [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
  2020-10-20 11:51   ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Nicolas Goaziou
  2020-10-20 15:39 ` [bug#44077] [PATCH v2 " Tanguy Le Carrour
                   ` (7 subsequent siblings)
  8 siblings, 2 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-19 13:29 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 575ce40ac8..75733f31ad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12873,6 +12873,26 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "poetry-core" version))
+        (sha256
+          (base32
+            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 Build Backend")
+    (description
+     "A PEP 517 build backend implementation developed for Poetry.  This project
+is intended to be a light weight, fully compliant, self-contained package allowing
+PEP 517 compatible build frontends to build Poetry managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3.
  2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-10-19 13:29   ` Tanguy Le Carrour
  2020-10-20 11:55     ` Nicolas Goaziou
  2020-10-20 11:51   ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Nicolas Goaziou
  1 sibling, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-19 13:29 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.3.
[arguments]: Loosen constraints on python-keyring, python-tomlkit, python-packaging and
python-virtualenv.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-packaging and python-poetry-core. Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 25 +++++++++++--------------
 1 file changed, 11 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 75733f31ad..a41b4dd0d2 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12896,7 +12896,7 @@ PEP 517 compatible build frontends to build Poetry managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.3")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -12904,7 +12904,7 @@ PEP 517 compatible build frontends to build Poetry managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "0lvj5klbjkdxzbp9ins4mads3qzb47ycxfyh2hr35c245jgfisj9"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -12913,14 +12913,12 @@ PEP 517 compatible build frontends to build Poetry managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Updating the following packages would force too many packages
+               ;; to be rebuilt.
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")
+               (("tomlkit>=0.7.0,<1.0.0") "tomlkit>=0.6.0,<1.0.0")
+               (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0")
+               (("virtualenv>=20.0.26,<21.0.0") "virtualenv>=20.0.10,<21.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -12928,15 +12926,14 @@ PEP 517 compatible build frontends to build Poetry managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core.
  2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
  2020-10-19 13:29   ` [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
@ 2020-10-20 11:51   ` Nicolas Goaziou
  2020-10-20 15:30     ` Tanguy Le Carrour
  1 sibling, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-10-20 11:51 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44077

Hello,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> * gnu/packages/python-xyz.scm (python-poetry-core): New variable.

Thank you.

> +(define-public python-poetry-core
> +  (package
> +    (name "python-poetry-core")
> +    (version "1.0.0")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (pypi-uri "poetry-core" version))
> +        (sha256
> +          (base32
> +            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))

Nitpick: move the string on the same line as `base32'.

> +    (build-system python-build-system)
> +    (home-page "https://github.com/python-poetry/poetry-core")
> +    (synopsis "Poetry PEP 517 Build Backend")

Nitpick: I would avoid unnecessary capitalization: 


  Poetry PEP 517 build back-end

> +    (description
> +     "A PEP 517 build backend implementation developed for Poetry.  This project
> +is intended to be a light weight, fully compliant, self-contained package allowing
> +PEP 517 compatible build frontends to build Poetry managed projects.")

The first sentence should be complete, i.e., with a subject and a verb.

Otherwise, LGTM.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3.
  2020-10-19 13:29   ` [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
@ 2020-10-20 11:55     ` Nicolas Goaziou
  2020-10-20 15:32       ` Tanguy Le Carrour
  0 siblings, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-10-20 11:55 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44077

Hello,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> +               ;; Updating the following packages would force too many packages
> +               ;; to be rebuilt.
> +               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")

python-keyring has only 6 dependent packages. Do you think this is still necessary?

AFAICT, there is no Guix package using Poetry so far. OOC, is a Poetry
build system in order, or is it simpler that than?

LGTM!

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core.
  2020-10-20 11:51   ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Nicolas Goaziou
@ 2020-10-20 15:30     ` Tanguy Le Carrour
  2020-10-21 19:46       ` Nicolas Goaziou
  0 siblings, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-20 15:30 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi,


Le 10/20, Nicolas Goaziou a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > +(define-public python-poetry-core
> > +  (package
> > +    (name "python-poetry-core")
> > +    (version "1.0.0")
> > +    (source
> > +      (origin
> > +        (method url-fetch)
> > +        (uri (pypi-uri "poetry-core" version))
> > +        (sha256
> > +          (base32
> > +            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
> 
> Nitpick: move the string on the same line as `base32'.

I have no clue what the rule is, but… most (but not all!?) packages in
`gnu/packages/python-xyz.scm` have the string on a new line.
I'll leave it on a new line if it's OK with you.


> > +    (build-system python-build-system)
> > +    (home-page "https://github.com/python-poetry/poetry-core")
> > +    (synopsis "Poetry PEP 517 Build Backend")
> 
> Nitpick: I would avoid unnecessary capitalization: 
>   Poetry PEP 517 build back-end

Done!


> > +    (description
> > +     "A PEP 517 build backend implementation developed for Poetry.  This project
> > +is intended to be a light weight, fully compliant, self-contained package allowing
> > +PEP 517 compatible build frontends to build Poetry managed projects.")
> 
> The first sentence should be complete, i.e., with a subject and a verb.

My bad! Updated!


Thanks again for your time!


-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3.
  2020-10-20 11:55     ` Nicolas Goaziou
@ 2020-10-20 15:32       ` Tanguy Le Carrour
  0 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-20 15:32 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi,


Le 10/20, Nicolas Goaziou a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> 
> > +               ;; Updating the following packages would force too many packages
> > +               ;; to be rebuilt.
> > +               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")
> 
> python-keyring has only 6 dependent packages. Do you think this is still necessary?
> 
> AFAICT, there is no Guix package using Poetry so far. OOC, is a Poetry
> build system in order, or is it simpler that than?

Actually, "keyring" has a different problem! But I forgot to mention it! Sorry!
I'm updating the patch and sending a v2 of the set.

Thanks!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 1/2] gnu: Add python-poetry-core.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
  2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-10-20 15:39 ` Tanguy Le Carrour
  2020-10-20 15:39   ` [bug#44077] [PATCH v2 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
  2020-10-22  7:20 ` [bug#44077] [PATCH v3 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
                   ` (6 subsequent siblings)
  8 siblings, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-20 15:39 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 575ce40ac8..d9f8073dad 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12873,6 +12873,27 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "poetry-core" version))
+        (sha256
+          (base32
+            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 build back-end")
+    (description
+     "The @code{poetry-core} module provides a PEP 517 build back-end implementation
+developed for Poetry.  This project is intended to be a light weight, fully compliant,
+self-contained package allowing PEP 517 compatible build front-ends to build Poetry
+managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 2/2] gnu: poetry: Update to 1.1.3.
  2020-10-20 15:39 ` [bug#44077] [PATCH v2 " Tanguy Le Carrour
@ 2020-10-20 15:39   ` Tanguy Le Carrour
  0 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-20 15:39 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.3.
[arguments]: Loosen constraints on python-keyring, python-tomlkit, python-packaging and
python-virtualenv.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-packaging and python-poetry-core. Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d9f8073dad..623612fb42 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12897,7 +12897,7 @@ managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.3")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -12905,7 +12905,7 @@ managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "0lvj5klbjkdxzbp9ins4mads3qzb47ycxfyh2hr35c245jgfisj9"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -12914,14 +12914,14 @@ managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Newer versions of keyring produce a package with version "0.0.0"
+               ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")
+               ;; Updating the following packages would force too many packages
+               ;; to be rebuilt.
+               (("tomlkit>=0.7.0,<1.0.0") "tomlkit>=0.6.0,<1.0.0")
+               (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0")
+               (("virtualenv>=20.0.26,<21.0.0") "virtualenv>=20.0.10,<21.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -12929,15 +12929,14 @@ managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core.
  2020-10-20 15:30     ` Tanguy Le Carrour
@ 2020-10-21 19:46       ` Nicolas Goaziou
  2020-10-22  7:22         ` Tanguy Le Carrour
  0 siblings, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-10-21 19:46 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44077

Hello,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Le 10/20, Nicolas Goaziou a écrit :

[...]

>> > +          (base32
>> > +            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
>> 
>> Nitpick: move the string on the same line as `base32'.
>
> I have no clue what the rule is, but… most (but not all!?) packages in
> `gnu/packages/python-xyz.scm` have the string on a new line.

Note that "everyone else does this" may not be a strong reason to do
something. ;)

I suspect that most packages in this file come from the "pypi" importer,
which automatically adds this newline character, for some reason.

> I'll leave it on a new line if it's OK with you.

This spurious newline character hurts my eyes and my logic, but
ultimately, it will not hurt me. So, if that's important to you, go
ahead.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v3 1/2] gnu: Add python-poetry-core.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
  2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
  2020-10-20 15:39 ` [bug#44077] [PATCH v2 " Tanguy Le Carrour
@ 2020-10-22  7:20 ` Tanguy Le Carrour
  2020-10-22  7:20   ` [bug#44077] [PATCH v3 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
  2020-10-23  6:54 ` [bug#44077] [WIP][PATCH 0/2] " Tanguy Le Carrour
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-22  7:20 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 575ce40ac8..bd8b062d42 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12873,6 +12873,26 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poetry-core" version))
+       (sha256
+        (base32 "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 build back-end")
+    (description
+     "The @code{poetry-core} module provides a PEP 517 build back-end
+implementation developed for Poetry.  This project is intended to be
+a light weight, fully compliant, self-contained package allowing PEP 517
+compatible build front-ends to build Poetry managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v3 2/2] gnu: poetry: Update to 1.1.3.
  2020-10-22  7:20 ` [bug#44077] [PATCH v3 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-10-22  7:20   ` Tanguy Le Carrour
  0 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-22  7:20 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.3.
[arguments]: Loosen constraints on python-keyring, python-tomlkit, python-packaging and
python-virtualenv.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-packaging and python-poetry-core. Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bd8b062d42..9446b37f6e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12896,7 +12896,7 @@ compatible build front-ends to build Poetry managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.3")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -12904,7 +12904,7 @@ compatible build front-ends to build Poetry managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "0lvj5klbjkdxzbp9ins4mads3qzb47ycxfyh2hr35c245jgfisj9"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -12913,14 +12913,14 @@ compatible build front-ends to build Poetry managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Newer versions of keyring produce a package with version "0.0.0"
+               ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0")
+               ;; Updating the following packages would force too many packages
+               ;; to be rebuilt.
+               (("tomlkit>=0.7.0,<1.0.0") "tomlkit>=0.6.0,<1.0.0")
+               (("packaging>=20.4,<21.0") "packaging>=20.0,<21.0")
+               (("virtualenv>=20.0.26,<21.0.0") "virtualenv>=20.0.10,<21.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -12928,15 +12928,14 @@ compatible build front-ends to build Poetry managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.28.0





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core.
  2020-10-21 19:46       ` Nicolas Goaziou
@ 2020-10-22  7:22         ` Tanguy Le Carrour
  0 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-22  7:22 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi Nicolas,


Le 10/21, Nicolas Goaziou a écrit :
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> > Le 10/20, Nicolas Goaziou a écrit :
> >> > +          (base32
> >> > +            "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
> >> 
> >> Nitpick: move the string on the same line as `base32'.
> >
> > I have no clue what the rule is, but… most (but not all!?) packages in
> > `gnu/packages/python-xyz.scm` have the string on a new line.
> 
> Note that "everyone else does this" may not be a strong reason to do
> something. ;)

+1 :-)
The thing is, I'm not yet sure to understand the coding style, and
`etc/indent-code.el` leaves you some (too much?) freedom.
I've been happily using Black [1] to format my Python code for some time now,
and I *might* have become a bit lazy!

[1]: https://github.com/psf/black


> I suspect that most packages in this file come from the "pypi" importer,
> which automatically adds this newline character, for some reason.
> 
> > I'll leave it on a new line if it's OK with you.

You've got me there! I imported it!
Actually, I'd rather put everything on a single line if it fits (and
`indent-code.el` does not complain when I put `sha256` and `base32` on the
same line). I just didn't want to be pointed at as "the guys who does
not split the line". ^_^'


> This spurious newline character hurts my eyes and my logic, but
> ultimately, it will not hurt me. So, if that's important to you, go
> ahead.

Updated and pushed!

Thanks again for your time and your advice!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [WIP][PATCH 0/2] gnu: poetry: Update to 1.1.3.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (2 preceding siblings ...)
  2020-10-22  7:20 ` [bug#44077] [PATCH v3 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-10-23  6:54 ` Tanguy Le Carrour
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 0/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-23  6:54 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi Nicolas,

I've just figured out that the updated version of Poetry crashes in some cases!

Actually, there are 2 ways of using Poetry :
1- you manage your own virtual env (I do it with `direnv`) ;
2- you let Poetry manage it.

Obviously, the one I use works, but the second one doesn't! I guess it
requires a newer version of `python-virtualenv`. So I guess this bug
should be marked as work in progress.

I'll let you know once I've solved the problem!

Best regards

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 0/7] gnu: poetry: Update to 1.1.4.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (3 preceding siblings ...)
  2020-10-23  6:54 ` [bug#44077] [WIP][PATCH 0/2] " Tanguy Le Carrour
@ 2020-10-30 18:17 ` Tanguy Le Carrour
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi Nicolas,

I'm submitting an updated patch set.

Poetry seems to work in a `guix environement --pure --ad-hoc poetry`
environment, but… I cannot install it into my profile because a lot of
packages get rebuilt and, unfortunatly, some of them are failing! For
instance `python-jedi` tests fail because my computer is too slow! :-(

Again, thanks for your time!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (4 preceding siblings ...)
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 0/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
@ 2020-10-30 18:17 ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 2/7] gnu: python-virtualenv: Update to 20.1.0 Tanguy Le Carrour
                     ` (5 more replies)
  2020-11-26 13:36 ` [bug#44077] " Tanguy Le Carrour
                   ` (2 subsequent siblings)
  8 siblings, 6 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

From: Tanguy Le Carrour <>

* gnu/packages/python-xyz.scm (python-packaging): Update to 20.4.
[source]: Remove patch that has been merged upstream.
---
 gnu/packages/python-xyz.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cd8ee24cbf..aa69a64d5f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15726,17 +15726,14 @@ several utilities, as well as an API for building localization tools.")
 (define-public python-packaging
   (package
     (name "python-packaging")
-    (version "20.0")
+    (version "20.4")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "packaging" version))
-        ;; XXX: The URL in the patch file is wrong, it should be
-        ;; <https://github.com/pypa/packaging/pull/256>.
-        (patches (search-patches "python-packaging-test-arch.patch"))
         (sha256
          (base32
-          "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
+          "1y3rc1ams1i25calk6b9jf1gl85ix5a23a146swjvhdr8x7zfms3"))))
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 2/7] gnu: python-virtualenv: Update to 20.1.0.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 3/7] gnu: python-distlib: Update to 0.3.1 Tanguy Le Carrour
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-virtualenv): Update to 20.1.0.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index aa69a64d5f..4c9191cfa5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3132,14 +3132,14 @@ e.g. filters, callbacks and errbacks can all be promises.")
 (define-public python-virtualenv
   (package
     (name "python-virtualenv")
-    (version "20.0.10")
+    (version "20.1.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "virtualenv" version))
        (sha256
         (base32
-         "0y6x41l3ja891993i4adylbbyly0r4m52n2d0a0y9y4h3lzyh4l5"))))
+         "1043y8xdvwzwhkkqrv4ycr3sjh4kqr39iqk51nj5dwis947i3mmq"))))
     (build-system python-build-system)
     (native-inputs
      `(("python-mock" ,python-mock)
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 3/7] gnu: python-distlib: Update to 0.3.1.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 2/7] gnu: python-virtualenv: Update to 20.1.0 Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-distlib): Update to 0.3.1.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4c9191cfa5..bb0fa6aedc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5508,14 +5508,14 @@ by pycodestyle.")
 (define-public python-distlib
   (package
     (name "python-distlib")
-    (version "0.3.0")
+    (version "0.3.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "distlib" version ".zip"))
        (sha256
         (base32
-         "08fyi2r246733vharl2yckw20rilci28r91mzrnnvcr638inw5if"))))
+         "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 4/7] gnu: python-pip: Update to 20.2.4.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 2/7] gnu: python-virtualenv: Update to 20.1.0 Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 3/7] gnu: python-distlib: Update to 0.3.1 Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-pip): Update to 20.2.4.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bb0fa6aedc..ac7674e567 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9420,14 +9420,14 @@ responses, rather than doing any computation.")
 (define-public python-pip
   (package
     (name "python-pip")
-    (version "20.0.2")
+    (version "20.2.4")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pip" version))
        (sha256
         (base32
-         "0zwnlsjn6mb742cr995zfbk9v56ygxp8w3k49601r9by9kmcic3x"))))
+         "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
     (build-system python-build-system)
     (arguments
      '(#:tests? #f))          ; there are no tests in the pypi archive.
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 5/7] gnu: python-tomlkit: Update to 0.7.0.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (2 preceding siblings ...)
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

From: Tanguy Le Carrour <>

* gnu/packages/python-xyz.scm (python-tomlkit): Update to 0.7.0.
[native-inputs]: Add python-pyyaml. [description]: Update description.
---
 gnu/packages/python-xyz.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ac7674e567..234858e59e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12780,20 +12780,21 @@ docstring and colored output.")
 (define-public python-tomlkit
   (package
     (name "python-tomlkit")
-    (version "0.6.0")
+    (version "0.7.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tomlkit" version))
        (sha256
-        (base32 "16jf0060csn8p500jnxa7m5h1sl3pzispvd11961dzrhh287dybl"))))
+        (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
     (build-system python-build-system)
     (native-inputs
-     `(("python-pytest" ,python-pytest)))
+     `(("python-pytest" ,python-pytest)
+       ("python-pyyaml" ,python-pyyaml)))
     (home-page "https://github.com/sdispater/tomlkit")
     (synopsis "Style-preserving TOML library")
     (description
-     "TOML Kit is a 0.5.0-compliant TOML library.  It includes a parser that
+     "TOML Kit is a 1.0.0rc1-compliant TOML library.  It includes a parser that
 preserves all comments, indentations, whitespace and internal element ordering,
 and makes them accessible and editable via an intuitive API.  It can also
 create new TOML documents from scratch using the provided helpers.  Part of the
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 6/7] gnu: Add python-poetry-core.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (3 preceding siblings ...)
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 234858e59e..ad9d271ebb 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12944,6 +12944,26 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poetry-core" version))
+       (sha256
+        (base32 "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 build back-end")
+    (description
+     "The @code{poetry-core} module provides a PEP 517 build back-end
+implementation developed for Poetry.  This project is intended to be
+a light weight, fully compliant, self-contained package allowing PEP 517
+compatible build front-ends to build Poetry managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v2 7/7] gnu: poetry: Update to 1.1.4.
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (4 preceding siblings ...)
  2020-10-30 18:17   ` [bug#44077] [PATCH v2 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-10-30 18:17   ` Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-10-30 18:17 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.4.
[arguments]: Loosen constraint on python-keyring only.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-pip, python-packaging and python-poetry-core.
Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ad9d271ebb..0a0a1e83d0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12967,7 +12967,7 @@ compatible build front-ends to build Poetry managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.4")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -12975,7 +12975,7 @@ compatible build front-ends to build Poetry managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "1a2kgfiw66fvxhlqk5qc83s6l38czfh5hcsrbiy7qq5yfc8mlsll"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -12984,14 +12984,9 @@ compatible build front-ends to build Poetry managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Newer versions of keyring produce a package with version "0.0.0"
+               ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -12999,15 +12994,15 @@ compatible build front-ends to build Poetry managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
+       ("python-pip" ,python-pip)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.29.1





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (5 preceding siblings ...)
  2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
@ 2020-11-26 13:36 ` Tanguy Le Carrour
  2020-11-27 20:14   ` Nicolas Goaziou
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  8 siblings, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-26 13:36 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi Nicolas,

Sorry to ask you this, but not knowing exactly how the code review works,
I just wanted to know if my patch hadn't fallen into oblivion.

If you don't have more time to spend on reviewing v2 — which I could understand! —,
should I make a goodwill call on guix-devel?

Best regards,

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-26 13:36 ` [bug#44077] " Tanguy Le Carrour
@ 2020-11-27 20:14   ` Nicolas Goaziou
  2020-11-28 14:11     ` Tanguy LE CARROUR
  0 siblings, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-11-27 20:14 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44077

Hello,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Sorry to ask you this, but not knowing exactly how the code review works,
> I just wanted to know if my patch hadn't fallen into oblivion.

Well, it had, indeed… =/

I looked at it again, and it LGTM. However python-distlib has a lot of
dependents, so it needs to be applied on core-updates branch.

If there is no objection, I'll do that soon.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-27 20:14   ` Nicolas Goaziou
@ 2020-11-28 14:11     ` Tanguy LE CARROUR
  2020-11-28 15:41       ` Nicolas Goaziou
  0 siblings, 1 reply; 47+ messages in thread
From: Tanguy LE CARROUR @ 2020-11-28 14:11 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi Nicolas,


Excerpts from Nicolas Goaziou's message of November 27, 2020 9:14 pm:
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> 
>> Sorry to ask you this, but not knowing exactly how the code review works,
>> I just wanted to know if my patch hadn't fallen into oblivion.
> 
> Well, it had, indeed… =/

No problem! ;-)
I should consider myself lucky to have someone reviewing my patch on his
spare time! … all the more so I might be the only person using Poetry!  ^_^'


> I looked at it again, and it LGTM. However python-distlib has a lot of
> dependents, so it needs to be applied on core-updates branch.

Would have it been better for me to submit separate patches, as they are
not really specific to Poetry, and wait for them to be merged before
submitting a patch set with only `poetry-core` and `poetry`?


> If there is no objection, I'll do that soon.

The process is not yet clear to me. Out of sheer curiosity… can someone object
to a merge in master? Who would that be?

Thanks again for your help and your time!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-28 14:11     ` Tanguy LE CARROUR
@ 2020-11-28 15:41       ` Nicolas Goaziou
  2020-11-29 17:56         ` Tanguy LE CARROUR
  0 siblings, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-11-28 15:41 UTC (permalink / raw)
  To: Tanguy LE CARROUR; +Cc: 44077

Hello,

Tanguy LE CARROUR <tanguy@bioneland.org> writes:

> Would have it been better for me to submit separate patches, as they are
> not really specific to Poetry, and wait for them to be merged before
> submitting a patch set with only `poetry-core` and `poetry`?

The sole "problematic" patch is the one updating python-distlib, in the
sense that it cannot be applied in the same branch as the others (unless
everything goes into core-updates, of course).

If you can split the set into independent parts, i.e., if you don't
really need to update python-distlib prior to updating Poetry, we can
process it differently.

> The process is not yet clear to me. Out of sheer curiosity… can someone object
> to a merge in master? Who would that be?

Per (info "(guix) Submitting Patches"), packages with more than 1800
dependent packages, as is the case with python-distlib, are updated in
the "core-updates" branch. If I apply it on master branch, it will be
reverted presto by another commiter.

Does that make sense?

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-28 15:41       ` Nicolas Goaziou
@ 2020-11-29 17:56         ` Tanguy LE CARROUR
  2020-11-29 19:34           ` Tanguy LE CARROUR
  0 siblings, 1 reply; 47+ messages in thread
From: Tanguy LE CARROUR @ 2020-11-29 17:56 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi!


Excerpts from Nicolas Goaziou's message of November 28, 2020 4:41 pm:
> Tanguy LE CARROUR <tanguy@bioneland.org> writes:
> 
>> Would have it been better for me to submit separate patches, as they are
>> not really specific to Poetry, and wait for them to be merged before
>> submitting a patch set with only `poetry-core` and `poetry`?
> 
> The sole "problematic" patch is the one updating python-distlib, in the
> sense that it cannot be applied in the same branch as the others (unless
> everything goes into core-updates, of course).
> 
> If you can split the set into independent parts, i.e., if you don't
> really need to update python-distlib prior to updating Poetry, we can
> process it differently.

I'm working on it! But it's apparently rebuilding the World, which is really
slow on my computer at home! :-(


>> The process is not yet clear to me. Out of sheer curiosity… can someone object
>> to a merge in master? Who would that be?
> 
> Per (info "(guix) Submitting Patches"), packages with more than 1800
> dependent packages, as is the case with python-distlib, are updated in
> the "core-updates" branch. If I apply it on master branch, it will be
> reverted presto by another commiter.
> 
> Does that make sense?

It's the last part that I still cannot figure out how it happens:
"it will be reverted presto by another commiter".

It's not the "why", it the "how"! Are each commit on the master branch
monitored for quality/conformity?!
Thanks to Chris's email, I've justed discovered Patchwork. Is it were
the "magic" happens?!

Regards,

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-29 17:56         ` Tanguy LE CARROUR
@ 2020-11-29 19:34           ` Tanguy LE CARROUR
  2020-11-29 20:06             ` Marius Bakke
  0 siblings, 1 reply; 47+ messages in thread
From: Tanguy LE CARROUR @ 2020-11-29 19:34 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077

Hi,


Excerpts from Tanguy LE CARROUR's message of November 29, 2020 6:56 pm:
> Excerpts from Nicolas Goaziou's message of November 28, 2020 4:41 pm:
>> Tanguy LE CARROUR <tanguy@bioneland.org> writes:
>> 
>>> Would have it been better for me to submit separate patches, as they are
>>> not really specific to Poetry, and wait for them to be merged before
>>> submitting a patch set with only `poetry-core` and `poetry`?
>> 
>> The sole "problematic" patch is the one updating python-distlib, in the
>> sense that it cannot be applied in the same branch as the others (unless
>> everything goes into core-updates, of course).
>> 
>> If you can split the set into independent parts, i.e., if you don't
>> really need to update python-distlib prior to updating Poetry, we can
>> process it differently.
> 
> I'm working on it! But it's apparently rebuilding the World, which is really
> slow on my computer at home! :-(

I've tried to modify `python-virtualenv` to make it use our current
version of `python-distlib`. Poetry builds, but it does not work
properly!

```
$ poetry install
Creating virtualenv test-4avGy1Vc-py3.8 in /home/tanguy/.cache/pypoetry/virtualenvs

  ImportError

  cannot import name 'enquote_executable' from 'distlib.scripts'
  (/gnu/store/2j3qn0ksry1qarwih9knh1ngr6zm2rci-python-distlib-0.3.0/lib/python3.8/site-packages/distlib/scripts.py)
```

So I guess the version of distlib does matter and we cannot do without.


Regards

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-29 19:34           ` Tanguy LE CARROUR
@ 2020-11-29 20:06             ` Marius Bakke
  2020-11-30  8:27               ` Tanguy LE CARROUR
  0 siblings, 1 reply; 47+ messages in thread
From: Marius Bakke @ 2020-11-29 20:06 UTC (permalink / raw)
  To: Tanguy LE CARROUR, Nicolas Goaziou; +Cc: 44077

[-- Attachment #1: Type: text/plain, Size: 1050 bytes --]

Tanguy LE CARROUR <tanguy@bioneland.org> skriver:

> I've tried to modify `python-virtualenv` to make it use our current
> version of `python-distlib`. Poetry builds, but it does not work
> properly!
>
> ```
> $ poetry install
> Creating virtualenv test-4avGy1Vc-py3.8 in /home/tanguy/.cache/pypoetry/virtualenvs
>
>   ImportError
>
>   cannot import name 'enquote_executable' from 'distlib.scripts'
>   (/gnu/store/2j3qn0ksry1qarwih9knh1ngr6zm2rci-python-distlib-0.3.0/lib/python3.8/site-packages/distlib/scripts.py)
> ```
>
> So I guess the version of distlib does matter and we cannot do without.

To get these patches on 'master' without rebuilding the world, you can
create a new 'python-distlib' like so:

  ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
  (define-public python-distlib/next
    (package
      (inherit python-distlib)
      (version "1.2.3")
      (source (origin ...))))

...and in the packages that require the new version, refer to
'python-distlib/next' instead of 'python-distlib'.

Does that make sense?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-29 20:06             ` Marius Bakke
@ 2020-11-30  8:27               ` Tanguy LE CARROUR
  2020-12-03 21:39                 ` Marius Bakke
  0 siblings, 1 reply; 47+ messages in thread
From: Tanguy LE CARROUR @ 2020-11-30  8:27 UTC (permalink / raw)
  To: Nicolas Goaziou, Marius Bakke; +Cc: 44077

Hi Marius!


Excerpts from Marius Bakke's message of November 29, 2020 9:06 pm:
> Tanguy LE CARROUR <tanguy@bioneland.org> skriver:
> 
>> I've tried to modify `python-virtualenv` to make it use our current
>> version of `python-distlib`. Poetry builds, but it does not work
>> properly!
>>
>> ```
>> $ poetry install
>> Creating virtualenv test-4avGy1Vc-py3.8 in /home/tanguy/.cache/pypoetry/virtualenvs
>>
>>   ImportError
>>
>>   cannot import name 'enquote_executable' from 'distlib.scripts'
>>   (/gnu/store/2j3qn0ksry1qarwih9knh1ngr6zm2rci-python-distlib-0.3.0/lib/python3.8/site-packages/distlib/scripts.py)
>> ```
>>
>> So I guess the version of distlib does matter and we cannot do without.
> 
> To get these patches on 'master' without rebuilding the world, you can
> create a new 'python-distlib' like so:
> 
>   ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
>   (define-public python-distlib/next
>     (package
>       (inherit python-distlib)
>       (version "1.2.3")
>       (source (origin ...))))
> 
> ...and in the packages that require the new version, refer to
> 'python-distlib/next' instead of 'python-distlib'.
> 
> Does that make sense?

Yes, thanks, that's a great solution, indeed!

I'm only concerned about the poor soul who has to remember to get rid of
the `python-distlib/next` and update `python-virtualenv` package
definition. I guess none of this is auto-magic, right?!

Regards

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (6 preceding siblings ...)
  2020-11-26 13:36 ` [bug#44077] " Tanguy Le Carrour
@ 2020-11-30  9:45 ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
                     ` (5 more replies)
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  8 siblings, 6 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-packaging): Update to 20.4.
[source]: Remove patch that has been merged upstream.
---
 gnu/packages/python-xyz.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 9e886150fb..8af593c5a6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15819,17 +15819,14 @@ several utilities, as well as an API for building localization tools.")
 (define-public python-packaging
   (package
     (name "python-packaging")
-    (version "20.0")
+    (version "20.4")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "packaging" version))
-        ;; XXX: The URL in the patch file is wrong, it should be
-        ;; <https://github.com/pypa/packaging/pull/256>.
-        (patches (search-patches "python-packaging-test-arch.patch"))
         (sha256
          (base32
-          "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
+          "1y3rc1ams1i25calk6b9jf1gl85ix5a23a146swjvhdr8x7zfms3"))))
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 2/7] gnu: Add python-distlib/next.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-distlib/next): New variable.
---
 gnu/packages/python-xyz.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8af593c5a6..e5087751f3 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5570,6 +5570,19 @@ relate to packaging and distribution of Python software.  It is intended to be
 used as the basis for third-party packaging tools.")
     (license license:psfl)))
 
+;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
+(define-public python-distlib/next
+  (package
+    (inherit python-distlib)
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "distlib" version ".zip"))
+       (sha256
+        (base32
+         "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
+
 (define-public python-distutils-extra
   (package
     (name "python-distutils-extra")
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 3/7] gnu: python-virtualenv: Update to 20.2.1.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-virtualenv): Update to 20.2.1.
[propagated-inputs] Use python-distlib/next instead of python-distlib.
---
 gnu/packages/python-xyz.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e5087751f3..e3cbca5d95 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3135,14 +3135,14 @@ e.g. filters, callbacks and errbacks can all be promises.")
 (define-public python-virtualenv
   (package
     (name "python-virtualenv")
-    (version "20.0.10")
+    (version "20.2.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "virtualenv" version))
        (sha256
         (base32
-         "0y6x41l3ja891993i4adylbbyly0r4m52n2d0a0y9y4h3lzyh4l5"))))
+         "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
     (build-system python-build-system)
     (native-inputs
      `(("python-mock" ,python-mock)
@@ -3155,7 +3155,7 @@ e.g. filters, callbacks and errbacks can all be promises.")
        ("python-setuptools-scm" ,python-setuptools-scm)))
     (propagated-inputs
      `(("python-appdirs" ,python-appdirs)
-       ("python-distlib" ,python-distlib)
+       ("python-distlib" ,python-distlib/next)
        ("python-filelock" ,python-filelock)
        ("python-six" ,python-six)
        ("python-importlib-metadata" ,python-importlib-metadata)))
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 4/7] gnu: python-pip: Update to 20.2.4.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-pip): Update to 20.2.4.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e3cbca5d95..44428a0f2b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9408,14 +9408,14 @@ responses, rather than doing any computation.")
 (define-public python-pip
   (package
     (name "python-pip")
-    (version "20.0.2")
+    (version "20.2.4")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pip" version))
        (sha256
         (base32
-         "0zwnlsjn6mb742cr995zfbk9v56ygxp8w3k49601r9by9kmcic3x"))))
+         "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
     (build-system python-build-system)
     (arguments
      '(#:tests? #f))          ; there are no tests in the pypi archive.
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 5/7] gnu: python-tomlkit: Update to 0.7.0.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (2 preceding siblings ...)
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-tomlkit): Update to 0.7.0.
[native-inputs]: Add python-pyyaml. [description]: Update description.
---
 gnu/packages/python-xyz.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 44428a0f2b..b7c7826a2f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -12891,20 +12891,21 @@ docstring and colored output.")
 (define-public python-tomlkit
   (package
     (name "python-tomlkit")
-    (version "0.6.0")
+    (version "0.7.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tomlkit" version))
        (sha256
-        (base32 "16jf0060csn8p500jnxa7m5h1sl3pzispvd11961dzrhh287dybl"))))
+        (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
     (build-system python-build-system)
     (native-inputs
-     `(("python-pytest" ,python-pytest)))
+     `(("python-pytest" ,python-pytest)
+       ("python-pyyaml" ,python-pyyaml)))
     (home-page "https://github.com/sdispater/tomlkit")
     (synopsis "Style-preserving TOML library")
     (description
-     "TOML Kit is a 0.5.0-compliant TOML library.  It includes a parser that
+     "TOML Kit is a 1.0.0rc1-compliant TOML library.  It includes a parser that
 preserves all comments, indentations, whitespace and internal element ordering,
 and makes them accessible and editable via an intuitive API.  It can also
 create new TOML documents from scratch using the provided helpers.  Part of the
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 6/7] gnu: Add python-poetry-core.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (3 preceding siblings ...)
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b7c7826a2f..768f3bc9df 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13055,6 +13055,26 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poetry-core" version))
+       (sha256
+        (base32 "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 build back-end")
+    (description
+     "The @code{poetry-core} module provides a PEP 517 build back-end
+implementation developed for Poetry.  This project is intended to be
+a light weight, fully compliant, self-contained package allowing PEP 517
+compatible build front-ends to build Poetry managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v4 7/7] gnu: poetry: Update to 1.1.4.
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (4 preceding siblings ...)
  2020-11-30  9:45   ` [bug#44077] [PATCH v4 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-11-30  9:45   ` Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:45 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.4.
[arguments]: Loosen constraint on python-keyring only.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-pip, python-packaging and python-poetry-core.
Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 768f3bc9df..f05be9dcb9 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13078,7 +13078,7 @@ compatible build front-ends to build Poetry managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.4")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -13086,7 +13086,7 @@ compatible build front-ends to build Poetry managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "1a2kgfiw66fvxhlqk5qc83s6l38czfh5hcsrbiy7qq5yfc8mlsll"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -13095,14 +13095,9 @@ compatible build front-ends to build Poetry managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Newer versions of keyring produce a package with version "0.0.0"
+               ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -13110,15 +13105,15 @@ compatible build front-ends to build Poetry managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
+       ("python-pip" ,python-pip)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4.
  2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
                   ` (7 preceding siblings ...)
  2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
@ 2020-11-30  9:48 ` Tanguy Le Carrour
  2020-11-30  9:48   ` [bug#44077] [PATCH v5 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
                     ` (5 more replies)
  8 siblings, 6 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:48 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-packaging): Update to 20.4.
[source]: Remove patch that has been merged upstream.
---
 gnu/packages/python-xyz.scm | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 94fbc1f8f1..c71bc49063 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15974,17 +15974,14 @@ several utilities, as well as an API for building localization tools.")
 (define-public python-packaging
   (package
     (name "python-packaging")
-    (version "20.0")
+    (version "20.4")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "packaging" version))
-        ;; XXX: The URL in the patch file is wrong, it should be
-        ;; <https://github.com/pypa/packaging/pull/256>.
-        (patches (search-patches "python-packaging-test-arch.patch"))
         (sha256
          (base32
-          "1y2ip3a4ykkpgnwgn85j6hkspcl0cg3mzms97f40mk57vwqq67gy"))))
+          "1y3rc1ams1i25calk6b9jf1gl85ix5a23a146swjvhdr8x7zfms3"))))
     (build-system python-build-system)
     (arguments
      `(#:phases (modify-phases %standard-phases
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 2/7] gnu: Add python-distlib/next.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
@ 2020-11-30  9:48   ` Tanguy Le Carrour
  2020-11-30  9:48   ` [bug#44077] [PATCH v5 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
                     ` (4 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:48 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-distlib/next): New variable.
---
 gnu/packages/python-xyz.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c71bc49063..cd6681a7f6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -5641,6 +5641,19 @@ relate to packaging and distribution of Python software.  It is intended to be
 used as the basis for third-party packaging tools.")
     (license license:psfl)))
 
+;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
+(define-public python-distlib/next
+  (package
+    (inherit python-distlib)
+    (version "0.3.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "distlib" version ".zip"))
+       (sha256
+        (base32
+         "1wdzv7fsjhrkhh1wfkarlhcwa8m00mgcpdsvknmf2qy8f9l13xpd"))))))
+
 (define-public python-distutils-extra
   (package
     (name "python-distutils-extra")
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 3/7] gnu: python-virtualenv: Update to 20.2.1.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-11-30  9:48   ` [bug#44077] [PATCH v5 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
@ 2020-11-30  9:48   ` Tanguy Le Carrour
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
                     ` (3 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:48 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-virtualenv): Update to 20.2.1.
[propagated-inputs] Use python-distlib/next instead of python-distlib.
---
 gnu/packages/python-xyz.scm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index cd6681a7f6..df6624a175 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3184,14 +3184,14 @@ e.g. filters, callbacks and errbacks can all be promises.")
 (define-public python-virtualenv
   (package
     (name "python-virtualenv")
-    (version "20.0.10")
+    (version "20.2.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "virtualenv" version))
        (sha256
         (base32
-         "0y6x41l3ja891993i4adylbbyly0r4m52n2d0a0y9y4h3lzyh4l5"))))
+         "1rd6wmymsgv0cdsn50jwybcvbbslzym3mzffcjbl42l8br9cgap0"))))
     (build-system python-build-system)
     (native-inputs
      `(("python-mock" ,python-mock)
@@ -3204,7 +3204,7 @@ e.g. filters, callbacks and errbacks can all be promises.")
        ("python-setuptools-scm" ,python-setuptools-scm)))
     (propagated-inputs
      `(("python-appdirs" ,python-appdirs)
-       ("python-distlib" ,python-distlib)
+       ("python-distlib" ,python-distlib/next)
        ("python-filelock" ,python-filelock)
        ("python-six" ,python-six)
        ("python-importlib-metadata" ,python-importlib-metadata)))
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 4/7] gnu: python-pip: Update to 20.2.4.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
  2020-11-30  9:48   ` [bug#44077] [PATCH v5 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
  2020-11-30  9:48   ` [bug#44077] [PATCH v5 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
@ 2020-11-30  9:49   ` Tanguy Le Carrour
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
                     ` (2 subsequent siblings)
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:49 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-pip): Update to 20.2.4.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index df6624a175..d34867dc56 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9538,14 +9538,14 @@ responses, rather than doing any computation.")
 (define-public python-pip
   (package
     (name "python-pip")
-    (version "20.0.2")
+    (version "20.2.4")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pip" version))
        (sha256
         (base32
-         "0zwnlsjn6mb742cr995zfbk9v56ygxp8w3k49601r9by9kmcic3x"))))
+         "18b4qcijwivvkj1g0hs4w8zjbks0bjzdjcrqybnhmyx0gs2rmjc5"))))
     (build-system python-build-system)
     (arguments
      '(#:tests? #f))          ; there are no tests in the pypi archive.
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 5/7] gnu: python-tomlkit: Update to 0.7.0.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (2 preceding siblings ...)
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
@ 2020-11-30  9:49   ` Tanguy Le Carrour
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:49 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-tomlkit): Update to 0.7.0.
[native-inputs]: Add python-pyyaml. [description]: Update description.
---
 gnu/packages/python-xyz.scm | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d34867dc56..affeeb080e 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13021,20 +13021,21 @@ docstring and colored output.")
 (define-public python-tomlkit
   (package
     (name "python-tomlkit")
-    (version "0.6.0")
+    (version "0.7.0")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tomlkit" version))
        (sha256
-        (base32 "16jf0060csn8p500jnxa7m5h1sl3pzispvd11961dzrhh287dybl"))))
+        (base32 "062n694sfv24ylda6nh8228y2q9hrvy554kqx84y7czsjfbg4mxc"))))
     (build-system python-build-system)
     (native-inputs
-     `(("python-pytest" ,python-pytest)))
+     `(("python-pytest" ,python-pytest)
+       ("python-pyyaml" ,python-pyyaml)))
     (home-page "https://github.com/sdispater/tomlkit")
     (synopsis "Style-preserving TOML library")
     (description
-     "TOML Kit is a 0.5.0-compliant TOML library.  It includes a parser that
+     "TOML Kit is a 1.0.0rc1-compliant TOML library.  It includes a parser that
 preserves all comments, indentations, whitespace and internal element ordering,
 and makes them accessible and editable via an intuitive API.  It can also
 create new TOML documents from scratch using the provided helpers.  Part of the
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 6/7] gnu: Add python-poetry-core.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (3 preceding siblings ...)
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
@ 2020-11-30  9:49   ` Tanguy Le Carrour
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
  5 siblings, 0 replies; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:49 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (python-poetry-core): New variable.
---
 gnu/packages/python-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index affeeb080e..6580d22994 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13185,6 +13185,26 @@ powerful API: thread-safety; decorator syntax; support for memcached, redis,
 database, file, dict stores.  Cachy supports python versions 2.7+ and 3.2+.")
     (license license:expat)))
 
+(define-public python-poetry-core
+  (package
+    (name "python-poetry-core")
+    (version "1.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "poetry-core" version))
+       (sha256
+        (base32 "1mgv276h1iphn5fqhp2sgkgd5d0c39hs33vgaf157x5ri7rlyrka"))))
+    (build-system python-build-system)
+    (home-page "https://github.com/python-poetry/poetry-core")
+    (synopsis "Poetry PEP 517 build back-end")
+    (description
+     "The @code{poetry-core} module provides a PEP 517 build back-end
+implementation developed for Poetry.  This project is intended to be
+a light weight, fully compliant, self-contained package allowing PEP 517
+compatible build front-ends to build Poetry managed projects.")
+    (license license:expat)))
+
 (define-public poetry
   (package
     (name "poetry")
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4.
  2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
                     ` (4 preceding siblings ...)
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
@ 2020-11-30  9:49   ` Tanguy Le Carrour
  2020-11-30 21:42     ` bug#44077: " Nicolas Goaziou
  5 siblings, 1 reply; 47+ messages in thread
From: Tanguy Le Carrour @ 2020-11-30  9:49 UTC (permalink / raw)
  To: 44077; +Cc: Tanguy Le Carrour

* gnu/packages/python-xyz.scm (poetry): Update to 1.1.4.
[arguments]: Loosen constraint on python-keyring only.
[propagated-inputs] Remove python-jsonschema, python-pyparsing and python-pyrsistent.
Add python-pip, python-packaging and python-poetry-core.
Use python-requests-toolbelt-0.9.1.
---
 gnu/packages/python-xyz.scm | 23 +++++++++--------------
 1 file changed, 9 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 6580d22994..1086d724f1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -13208,7 +13208,7 @@ compatible build front-ends to build Poetry managed projects.")
 (define-public poetry
   (package
     (name "poetry")
-    (version "1.0.10")
+    (version "1.1.4")
     ;; Poetry can only be built from source with Poetry.
     (source
      (origin
@@ -13216,7 +13216,7 @@ compatible build front-ends to build Poetry managed projects.")
        (uri (pypi-uri "poetry" version))
        (sha256
         (base32
-         "1wm66xlsls4f0q4skmq96yb7aahjsqwgwvbrw4iax6rd4xfqj6sb"))))
+         "1a2kgfiw66fvxhlqk5qc83s6l38czfh5hcsrbiy7qq5yfc8mlsll"))))
     (build-system python-build-system)
     (arguments
      `(#:tests? #f ;; Pypi does not have tests.
@@ -13225,14 +13225,9 @@ compatible build front-ends to build Poetry managed projects.")
          (add-before 'build 'patch-setup-py
            (lambda _
              (substitute* "setup.py"
-               ;; poetry won't update version as 21.0.0 relies on python > 3.6
-               (("keyring>=20.0.1,<21.0.0") "keyring>=21.0.0,<22.0.0")
-               (("pyrsistent>=0.14.2,<0.15.0") "pyrsistent>=0.14.2,<0.17.0")
-               ;; Reported upstream:
-               ;; <https://github.com/python-poetry/poetry/issues/2752>.
-               (("tomlkit>=0.5.11,<0.6.0") "tomlkit>=0.5.11,<0.7.0")
-               (("cleo>=0.7.6,<0.8.0") "cleo>=0.7.6,<0.9.0")
-               (("clikit>=0.4.2,<0.5.0") "clikit>=0.4.2,<0.7.0"))
+               ;; Newer versions of keyring produce a package with version "0.0.0"
+               ;; Reported upstream: <https://github.com/jaraco/keyring/issues/469>
+               (("keyring>=21.2.0,<22.0.0") "keyring>=21.0.0,<22.0.0"))
              #t)))))
     (propagated-inputs
      `(("python-cachecontrol" ,python-cachecontrol)
@@ -13240,15 +13235,15 @@ compatible build front-ends to build Poetry managed projects.")
        ("python-cleo" ,python-cleo)
        ("python-clikit" ,python-clikit)
        ("python-html5lib" ,python-html5lib)
-       ("python-jsonschema" ,python-jsonschema)
        ("python-keyring" ,python-keyring)
        ("python-msgpack-transitional" ,python-msgpack-transitional)
+       ("python-packaging" ,python-packaging)
        ("python-pexpect" ,python-pexpect)
+       ("python-pip" ,python-pip)
        ("python-pkginfo" ,python-pkginfo)
-       ("python-pyparsing" ,python-pyparsing)
-       ("python-pyrsistent" ,python-pyrsistent)
+       ("python-poetry-core" ,python-poetry-core)
        ("python-requests" ,python-requests)
-       ("python-requests-toolbelt" ,python-requests-toolbelt)
+       ("python-requests-toolbelt" ,python-requests-toolbelt-0.9.1)
        ("python-shellingham" ,python-shellingham)
        ("python-tomlkit" ,python-tomlkit)
        ("python-virtualenv" ,python-virtualenv)))
-- 
2.29.2





^ permalink raw reply related	[flat|nested] 47+ messages in thread

* bug#44077: [PATCH v5 7/7] gnu: poetry: Update to 1.1.4.
  2020-11-30  9:49   ` [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
@ 2020-11-30 21:42     ` Nicolas Goaziou
  2020-12-01  7:03       ` [bug#44077] " Tanguy LE CARROUR
  0 siblings, 1 reply; 47+ messages in thread
From: Nicolas Goaziou @ 2020-11-30 21:42 UTC (permalink / raw)
  To: Tanguy Le Carrour; +Cc: 44077-done

Hello,

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> * gnu/packages/python-xyz.scm (poetry): Update to 1.1.4.

I applied the patches. Thank you.

Regards,
-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4.
  2020-11-30 21:42     ` bug#44077: " Nicolas Goaziou
@ 2020-12-01  7:03       ` Tanguy LE CARROUR
  0 siblings, 0 replies; 47+ messages in thread
From: Tanguy LE CARROUR @ 2020-12-01  7:03 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: 44077-done

Excerpts from Nicolas Goaziou's message of November 30, 2020 10:42 pm:
> Hello,
> 
> Tanguy Le Carrour <tanguy@bioneland.org> writes:
> 
>> * gnu/packages/python-xyz.scm (poetry): Update to 1.1.4.
> 
> I applied the patches. Thank you.

Thanks!

-- 
Tanguy




^ permalink raw reply	[flat|nested] 47+ messages in thread

* [bug#44077] gnu: poetry: Update to 1.1.4.
  2020-11-30  8:27               ` Tanguy LE CARROUR
@ 2020-12-03 21:39                 ` Marius Bakke
  0 siblings, 0 replies; 47+ messages in thread
From: Marius Bakke @ 2020-12-03 21:39 UTC (permalink / raw)
  To: Tanguy LE CARROUR, Nicolas Goaziou; +Cc: 44077

[-- Attachment #1: Type: text/plain, Size: 1780 bytes --]

Tanguy LE CARROUR <tanguy@bioneland.org> skriver:

> Hi Marius!
>
>
> Excerpts from Marius Bakke's message of November 29, 2020 9:06 pm:
>> Tanguy LE CARROUR <tanguy@bioneland.org> skriver:
>> 
>>> I've tried to modify `python-virtualenv` to make it use our current
>>> version of `python-distlib`. Poetry builds, but it does not work
>>> properly!
>>>
>>> ```
>>> $ poetry install
>>> Creating virtualenv test-4avGy1Vc-py3.8 in /home/tanguy/.cache/pypoetry/virtualenvs
>>>
>>>   ImportError
>>>
>>>   cannot import name 'enquote_executable' from 'distlib.scripts'
>>>   (/gnu/store/2j3qn0ksry1qarwih9knh1ngr6zm2rci-python-distlib-0.3.0/lib/python3.8/site-packages/distlib/scripts.py)
>>> ```
>>>
>>> So I guess the version of distlib does matter and we cannot do without.
>> 
>> To get these patches on 'master' without rebuilding the world, you can
>> create a new 'python-distlib' like so:
>> 
>>   ;; TODO: Merge with 'python-distlib' on the next rebuild cycle.
>>   (define-public python-distlib/next
>>     (package
>>       (inherit python-distlib)
>>       (version "1.2.3")
>>       (source (origin ...))))
>> 
>> ...and in the packages that require the new version, refer to
>> 'python-distlib/next' instead of 'python-distlib'.
>> 
>> Does that make sense?
>
> Yes, thanks, that's a great solution, indeed!
>
> I'm only concerned about the poor soul who has to remember to get rid of
> the `python-distlib/next` and update `python-virtualenv` package
> definition. I guess none of this is auto-magic, right?!

It's not automatic indeed.  But as long as there is a source code
comment mentioning 'core-updates', 'staging' or 'rebuild cycle', chances
are some poor soul will take care of it appropriately in due time.  ;-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 507 bytes --]

^ permalink raw reply	[flat|nested] 47+ messages in thread

end of thread, other threads:[~2020-12-03 21:40 UTC | newest]

Thread overview: 47+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-19 13:26 [bug#44077] [PATCH 0/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
2020-10-19 13:29 ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
2020-10-19 13:29   ` [bug#44077] [PATCH 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
2020-10-20 11:55     ` Nicolas Goaziou
2020-10-20 15:32       ` Tanguy Le Carrour
2020-10-20 11:51   ` [bug#44077] [PATCH 1/2] gnu: Add python-poetry-core Nicolas Goaziou
2020-10-20 15:30     ` Tanguy Le Carrour
2020-10-21 19:46       ` Nicolas Goaziou
2020-10-22  7:22         ` Tanguy Le Carrour
2020-10-20 15:39 ` [bug#44077] [PATCH v2 " Tanguy Le Carrour
2020-10-20 15:39   ` [bug#44077] [PATCH v2 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
2020-10-22  7:20 ` [bug#44077] [PATCH v3 1/2] gnu: Add python-poetry-core Tanguy Le Carrour
2020-10-22  7:20   ` [bug#44077] [PATCH v3 2/2] gnu: poetry: Update to 1.1.3 Tanguy Le Carrour
2020-10-23  6:54 ` [bug#44077] [WIP][PATCH 0/2] " Tanguy Le Carrour
2020-10-30 18:17 ` [bug#44077] [PATCH v2 0/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
2020-10-30 18:17 ` [bug#44077] [PATCH v2 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 2/7] gnu: python-virtualenv: Update to 20.1.0 Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 3/7] gnu: python-distlib: Update to 0.3.1 Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
2020-10-30 18:17   ` [bug#44077] [PATCH v2 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
2020-11-26 13:36 ` [bug#44077] " Tanguy Le Carrour
2020-11-27 20:14   ` Nicolas Goaziou
2020-11-28 14:11     ` Tanguy LE CARROUR
2020-11-28 15:41       ` Nicolas Goaziou
2020-11-29 17:56         ` Tanguy LE CARROUR
2020-11-29 19:34           ` Tanguy LE CARROUR
2020-11-29 20:06             ` Marius Bakke
2020-11-30  8:27               ` Tanguy LE CARROUR
2020-12-03 21:39                 ` Marius Bakke
2020-11-30  9:45 ` [bug#44077] [PATCH v4 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
2020-11-30  9:45   ` [bug#44077] [PATCH v4 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
2020-11-30  9:48 ` [bug#44077] [PATCH v5 1/7] gnu: python-packaging: Update to 20.4 Tanguy Le Carrour
2020-11-30  9:48   ` [bug#44077] [PATCH v5 2/7] gnu: Add python-distlib/next Tanguy Le Carrour
2020-11-30  9:48   ` [bug#44077] [PATCH v5 3/7] gnu: python-virtualenv: Update to 20.2.1 Tanguy Le Carrour
2020-11-30  9:49   ` [bug#44077] [PATCH v5 4/7] gnu: python-pip: Update to 20.2.4 Tanguy Le Carrour
2020-11-30  9:49   ` [bug#44077] [PATCH v5 5/7] gnu: python-tomlkit: Update to 0.7.0 Tanguy Le Carrour
2020-11-30  9:49   ` [bug#44077] [PATCH v5 6/7] gnu: Add python-poetry-core Tanguy Le Carrour
2020-11-30  9:49   ` [bug#44077] [PATCH v5 7/7] gnu: poetry: Update to 1.1.4 Tanguy Le Carrour
2020-11-30 21:42     ` bug#44077: " Nicolas Goaziou
2020-12-01  7:03       ` [bug#44077] " Tanguy LE CARROUR

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.