[PATCHES] Add aerich

OpenSubmitted by Giacomo Leidi.
Details
2 participants
  • Giacomo Leidi
  • Maxime Devos
Owner
unassigned
Severity
normal
G
G
Giacomo Leidi wrote on 5 Jan 02:18 +0100
(address . guix-patches@gnu.org)
877aca93-bd87-3314-dbf9-ae9b0c537eb9@autistici.org
Hi Guixers ,

I'm sending a patch series to add aerich.

Thank you for your time,

Giacomo
G
G
Giacomo Leidi wrote on 5 Jan 02:24 +0100
[PATCH 1/4] gnu: python-dictdiffer: Fix broken test suite.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220105012408.4874-1-goodoldpaul@autistici.org
This patch prevents pytest from running a PEP8 check on the source,
since it breaks pytest's own collection phase.

* gnu/packages/python-xyz.scm (python-dictdiffer)[snippet]: Patch pytest
configuration to prevent PEP8 testing.
---
gnu/packages/python-xyz.scm | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Toggle diff (25 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index e04b4f973f..c33f9b3213 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25245,7 +25245,15 @@ (define-public python-dictdiffer
               (uri (pypi-uri "dictdiffer" version))
               (sha256
                (base32
-                "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))))
+                "1lk3qmy1hkaphk4n7ayfk0wl6m2yvd6r7qkam6yncqfzgkbc1phs"))
+              (modules '((guix build utils)))
+              (snippet
+                '(begin
+                   ;; FIXME: PEP8 testing breaks pytest collection phase.
+                   (substitute* "pytest.ini"
+                     (("--pep8")
+                      ""))
+                   #t))))
     (build-system python-build-system)
     (native-inputs
      (list python-check-manifest

base-commit: e675030fba924a1aef2677f8ab912eaa3c46403c
-- 
2.34.0
G
G
Giacomo Leidi wrote on 5 Jan 02:24 +0100
[PATCH 2/4] gnu: Add python-codeclimate-test-reporter.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220105012408.4874-2-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
---
gnu/packages/python-check.scm | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)

Toggle diff (72 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index b4e2765d72..031959c250 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -38,6 +39,7 @@ (define-module (gnu packages python-check)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1398,6 +1400,49 @@ (define-public python-pytest-qt
 interaction, like key presses and mouse clicks.")
     (license license:expat)))
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-fixtures-paths
+           (lambda _
+             (substitute* "tests/test_formatter.py"
+               (("\\./tests/fixtures")
+                (string-append (getcwd) "/tests/fixtures")))
+             ;; FIXME: These tests fail with
+             ;; obscure error messages.
+             (for-each
+              (lambda (test-file)
+                (delete-file test-file))
+              '("tests/test_reporter.py"
+                "tests/test_runner.py")))))))
+    (native-inputs
+     (list git
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list python-coverage
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-codacy-coverage
   (package
     (name "python-codacy-coverage")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 5 Jan 02:24 +0100
[PATCH 3/4] gnu: Add python-ddlparse.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220105012408.4874-3-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-ddlparse): New variable.
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c33f9b3213..b2ccb66f33 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3502,6 +3502,44 @@ (define-public python-jsondiff
 compare, diff, and patch JSON and JSON-like structures in Python.")
    (license license:expat)))
 
+(define-public python-ddlparse
+  (package
+    (name "python-ddlparse")
+    (version "1.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ddlparse" version))
+        (sha256
+          (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (substitute* "test-requirements.txt"
+             (("codecov>=2\\.1\\.8") "codecov")
+             (("pytest-cov>=2\\.10\\.0") "pytest-cov"))
+           #t))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (native-inputs
+     (list python-codeclimate-test-reporter
+           python-codecov
+           python-coveralls
+           python-pytest
+           python-pytest-cov
+           python-tox))
+    (propagated-inputs (list python-pyparsing))
+    (home-page "https://github.com/shinichi-takii/ddlparse")
+    (synopsis "Parses and converts DDL to BigQuery JSON schema")
+    (description "This package provides @{ddlparse}, a Python library to parse
+and convert DDL to BigQuery JSON schema.")
+    (license license:bsd-3)))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 5 Jan 02:24 +0100
[PATCH 4/4] gnu: Add python-aerich.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220105012408.4874-4-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-aerich): New variable.
---
gnu/packages/databases.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index cafcf04448..dacc1e2f4b 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -54,6 +54,7 @@
 ;;; Copyright © 2021 Alexandre Hannud Abdo <abdo@member.fsf.org>
 ;;; Copyright © 2021 Simon Tournier <zimon.toutoune@gmail.com>
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -2709,6 +2710,36 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public python-aerich
+  (package
+    (name "python-aerich")
+    (version "0.6.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "aerich" version))
+        (sha256
+          (base32 "19bvx5icsmmf9ylxyqrxw4wjv77shg5r8pjgdg7plzhn937bzlch"))))
+    (build-system python-build-system)
+    (arguments
+     ;; Tests are not packaged in the Pypi tarball and
+     ;; require a poetry environment to be run from source.
+     `(#:tests? #f))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM")
+    (description
+      "This package provides @code{aerich} a Python database migrations tool for
+Tortoise ORM.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.34.0
P
(no subject)
(name . 53019)(address . 53019@debbugs.gnu.org)
3K586R.Z4X7C8GKTBJO1@autistici.org
This is a friendly ping :)

Thank you for your time and efforts
Attachment: file
P
friendly ping
(address . 53019@debbugs.gnu.org)
bbbbafc3-9ccb-3821-d40f-9ce8838a5625@autistici.org
Dear all,

this is just a ping, thank you for your time and efforts :). I'm
attaching an updated patchset.

paul
G
G
Giacomo Leidi wrote on 6 Mar 00:14 +0100
[PATCH 1/3] gnu: Add python-codeclimate-test-reporter.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220305231459.22969-1-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
---
gnu/packages/python-check.scm | 45 +++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)

Toggle diff (74 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 05a378601f..2789d65a25 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -38,6 +39,7 @@ (define-module (gnu packages python-check)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1508,6 +1510,49 @@ (define-public python-pytest-qt
 interaction, like key presses and mouse clicks.")
     (license license:expat)))
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'fix-fixtures-paths
+           (lambda _
+             (substitute* "tests/test_formatter.py"
+               (("\\./tests/fixtures")
+                (string-append (getcwd) "/tests/fixtures")))
+             ;; FIXME: These tests fail with
+             ;; obscure error messages.
+             (for-each
+              (lambda (test-file)
+                (delete-file test-file))
+              '("tests/test_reporter.py"
+                "tests/test_runner.py")))))))
+    (native-inputs
+     (list git
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list python-coverage
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-codacy-coverage
   (package
     (name "python-codacy-coverage")

base-commit: 0c6bf910efd090f0aa0479ba727e5e68655e9b68
-- 
2.34.0
G
G
Giacomo Leidi wrote on 6 Mar 00:14 +0100
[PATCH 2/3] gnu: Add python-ddlparse.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220305231459.22969-2-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-ddlparse): New variable.
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index d3d7b7160d..5edfcca020 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3564,6 +3564,44 @@ (define-public python-jsondiff
 compare, diff, and patch JSON and JSON-like structures in Python.")
    (license license:expat)))
 
+(define-public python-ddlparse
+  (package
+    (name "python-ddlparse")
+    (version "1.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ddlparse" version))
+        (sha256
+          (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin
+           (substitute* "test-requirements.txt"
+             (("codecov>=2\\.1\\.8") "codecov")
+             (("pytest-cov>=2\\.10\\.0") "pytest-cov"))
+           #t))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (native-inputs
+     (list python-codeclimate-test-reporter
+           python-codecov
+           python-coveralls
+           python-pytest
+           python-pytest-cov
+           python-tox))
+    (propagated-inputs (list python-pyparsing))
+    (home-page "https://github.com/shinichi-takii/ddlparse")
+    (synopsis "Parses and converts DDL to BigQuery JSON schema")
+    (description "This package provides @{ddlparse}, a Python library to parse
+and convert DDL to BigQuery JSON schema.")
+    (license license:bsd-3)))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 6 Mar 00:14 +0100
[PATCH 3/3] gnu: Add python-aerich.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220305231459.22969-3-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-aerich): New variable.
---
gnu/packages/databases.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (51 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 8e9431016f..f47f738336 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -56,6 +56,7 @@
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -3015,6 +3016,36 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public python-aerich
+  (package
+    (name "python-aerich")
+    (version "0.6.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "aerich" version))
+        (sha256
+          (base32 "19bvx5icsmmf9ylxyqrxw4wjv77shg5r8pjgdg7plzhn937bzlch"))))
+    (build-system python-build-system)
+    (arguments
+     ;; Tests are not packaged in the Pypi tarball and
+     ;; require a poetry environment to be run from source.
+     `(#:tests? #f))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM")
+    (description
+      "This package provides @code{aerich} a Python database migrations tool for
+Tortoise ORM.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.34.0
M
M
Maxime Devos wrote on 6 Mar 11:17 +0100
Re: [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter.
db3c254c750d3793d387601e933f24ae7832fce2.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (2 lines)
> +     (list git

It's only for tests, so WDYT of 'git-minimal', or even
'git-minimal/fixed'?

Greetings,
Maxime
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSKNhccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pFeAQCzEUXNYB6LxaUi053uNoj9z8z4
Bck5kGKnmvhSn6dZ8QEA9CUBLMIU4VzMcWT2TOqewntV56wTI473MocfaLK/0gU=
=GVab
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:18 +0100
e9f37e1d00a614415649b9f1f817cbdae273371e.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (8 lines)
> +             ;; FIXME: These tests fail with
> +             ;; obscure error messages.
> +             (for-each
> +              (lambda (test-file)
> +                (delete-file test-file))
> +              '("tests/test_reporter.py"
> +                "tests/test_runner.py")))))))

If these tests fail, there's a problem somewhere in need of a fix.
What are the error messages, and have they been reported upstream?

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSKehccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7q1EAP9zxEXPwwB6KtTJ8oyz0ufr/yiq
zVrsdIsVz8lXKdjk2gEAmSk0Cgdt6lL7/nCYDr3cYNk3TR3C0P305oPT1ghQIA8=
=lU47
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:19 +0100
Re: [bug#53019] [PATCH 2/3] gnu: Add python-ddlparse.
14a0bebacf82b6aa4e1845b25909ba9d2fc5b593.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (2 lines)
> +             (("codecov>=2\\.1\\.8") "codecov")
> +             (("pytest-cov>=2\\.10\\.0") "pytest-cov"))
M
M
Maxime Devos wrote on 6 Mar 11:19 +0100
1249d11003e7a3803ef88f0e212ad916e48176c6.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (3 lines)
> +             (("codecov>=2\\.1\\.8") "codecov")
> +             (("pytest-cov>=2\\.10\\.0") "pytest-cov"))

Instead of ignoring upstream's lower bound on the versions,
how about updating the dependencies in Guix?

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSKuxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mqhAQDl2M/qEOR4aYY9GuAxzZOdjEs1
SKMRh18CGyXvryPYVQEAoB2zG2cwrZRRqsle0Q3gDggj3+2tdw8t3kqs5rBz5AA=
=1l09
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:21 +0100
Re: [bug#53019] [PATCH 3/3] gnu: Add python-aerich.
9dc015ab5da86699968752811818fc6d0a3c8bee.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (5 lines)
> +    (arguments
> +     ;; Tests are not packaged in the Pypi tarball and
> +     ;; require a poetry environment to be run from source.
> +     `(#:tests? #f))

If they are not packaged in the pypi tarball, then it can
be built from git instead. I also don't see how it required poetry.

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSLNBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7os0AQDLwlfAXzggFWj9uAVeYjPFKkCY
KvDJjt/bqSvSMQXqewEA3JNGL323mGhfjkb1EyaANw9bnuvD0E/cKfUd6zxxCAA=
=WbDn
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:28 +0100
Re: [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter.
27825ca3b57d8677478e018ef59f2814a70a02fd.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (2 lines)
> +  #:use-module (gnu packages version-control)

This creates a cycle between (gnu packages version-control) and
(gnu packages python-check). To avoid cycles, could

(a) python-codeclimate-test-reported be moved into a new module

or

(b) the importing be delayed with (module-ref ...), like in
(guix build-system gnu)?

By reducing cycles, "guix COMMAND some-package" needs to load less
modules and hence less memory. There are also some other potential
benefits, e.g. see ‘Faster "guix pull" by incremental compilation and
non-circular modules?’ on guix-devel.

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSM4BccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7hTUAQDdlLjorx+YnVHwj3uiGC3mwaZF
3qHjPog1karvLTchdQD/XTz22PzV5X3T+HrSuOZdlMw3qzYIzwwIlaxmqOsWGwc=
=jRNQ
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:31 +0100
Re: [bug#53019] [PATCH 3/3] gnu: Add python-aerich.
56efe4fc34fce5d351736a830f8e31c2f5df908c.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (5 lines)
> +    (synopsis "Database migrations tool for Tortoise ORM")
> +    (description
> +      "This package provides @code{aerich} a Python database migrations tool for
> +Tortoise ORM.")

(comma missing before 'a')

This description is a bit short and it does not introduce the acronym
ORM, see (guix)Synopsis and Descriptions:

Descriptions should take between five and ten lines. Use full
sentences, and avoid using acronyms without first introducing them.
[...]

Greetings,
Maxime
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSNhBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7qXeAP9vuj7/rP5WJIxZmMEc1KZYa1SR
XWyJ+OTnJqeJ+5aIKQD/XGDJong5zK/PynuyzyqFLBk36bz2CIzEY4t8rvi2GQE=
=sYXD
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 6 Mar 11:32 +0100
dae9839bf43276759882fd61d9759aab3afac249.camel@telenet.be
Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
[+0100]:
Toggle quote (4 lines)
> +    (description
> +      "This package provides @code{aerich} a Python database migrations tool for
> +Tortoise ORM.")

Is it a tool, or a library? If it's a tool, the 'python-' prefix can
be dropped and the inputs depropagated.

Greetings,
Maxime.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYiSNsBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7pnDAQDPtkkSoBRrPEfBqWD5DIWvlnfS
3pl1uwgmknhLzJonaAD/UmYQdEe+IMTGGny4M5k9BGH44Kc976yNcKQ1grPM1Q4=
=gmnt
-----END PGP SIGNATURE-----


P
Re: [bug#53019] [PATCH 1/3] gnu: Add python-codeclimate-test-reporter.
194c897a-d6fa-2518-0fce-d32bd63e8ab6@autistici.org
Dear Maxime,

first thank for all your feedback,

On 3/6/22 11:17, Maxime Devos wrote:
Toggle quote (5 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +     (list git
> It's only for tests, so WDYT of 'git-minimal', or even
> 'git-minimal/fixed'?
Definitely, fixed.
Toggle quote (3 lines)
> Greetings,
> Maxime

Thank you,

Giacomo
P
5022dda1-8975-312b-a11b-446a170e3b83@autistici.org
Dear Maxime,

On 3/6/22 11:18, Maxime Devos wrote:
Toggle quote (12 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +             ;; FIXME: These tests fail with
>> +             ;; obscure error messages.
>> +             (for-each
>> +              (lambda (test-file)
>> +                (delete-file test-file))
>> +              '("tests/test_reporter.py"
>> +                "tests/test_runner.py")))))))
> If these tests fail, there's a problem somewhere in need of a fix.
> What are the error messages, and have they been reported upstream?

It turns out it requires exactly python-coverage@4.3.4. It's now fixed.

Thank you,

Giacomo
P
5406c351-2d7a-cd99-ae26-89d7d005dc6b@autistici.org
Dear Maxime,

On 3/6/22 11:28, Maxime Devos wrote:
Toggle quote (18 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +  #:use-module (gnu packages version-control)
> This creates a cycle between (gnu packages version-control) and
> (gnu packages python-check). To avoid cycles, could
>
> (a) python-codeclimate-test-reported be moved into a new module
>
> or
>
> (b) the importing be delayed with (module-ref ...), like in
> (guix build-system gnu)?
>
> By reducing cycles, "guix COMMAND some-package" needs to load less
> modules and hence less memory. There are also some other potential
> benefits, e.g. see ‘Faster "guix pull" by incremental compilation and
> non-circular modules?’ on guix-devel.

I wasn't aware of this, thank you. I fixed this by moving
python-codeclimate-test-reported to (gnu packages python-xyz).

Greetings,

Giacomo
P
Re: [bug#53019] [PATCH 2/3] gnu: Add python-ddlparse.
632b6604-6474-a282-446a-eed18d44f741@autistici.org
Dear Maxime,

On 3/6/22 11:19, Maxime Devos wrote:
Toggle quote (7 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +             (("codecov>=2\\.1\\.8") "codecov")
>> +             (("pytest-cov>=2\\.10\\.0") "pytest-cov"))
> Instead of ignoring upstream's lower bound on the versions,
> how about updating the dependencies in Guix?

I updated both of these to the latest available version. Thank you,

Giacomo
P
Re: [bug#53019] [PATCH 3/3] gnu: Add python-aerich.
fb905bd8-3219-b635-1d92-65dfd4862c1d@autistici.org
On 3/6/22 11:21, Maxime Devos wrote:
Toggle quote (9 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +    (arguments
>> +     ;; Tests are not packaged in the Pypi tarball and
>> +     ;; require a poetry environment to be run from source.
>> +     `(#:tests? #f))
> If they are not packaged in the pypi tarball, then it can
> be built from git instead. I also don't see how it required poetry.

The source tarball does not contain tests but has a setup.py generated
by poetry, the git repository has the tests suite but lacks a setup.py,
forcing a dependency on poetry to get a suitable setup.py. I fixed this
by generating a setup.py with poetry.

Greetings,

Giacomo
P
31925b1f-6860-2a88-d5b1-a0d6287e3b75@autistici.org
Dear Maxime,

On 3/6/22 11:31, Maxime Devos wrote:
Toggle quote (15 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +    (synopsis "Database migrations tool for Tortoise ORM")
>> +    (description
>> +      "This package provides @code{aerich} a Python database migrations tool for
>> +Tortoise ORM.")
> (comma missing before 'a')
>
> This description is a bit short and it does not introduce the acronym
> ORM, see (guix)Synopsis and Descriptions:
>
> Descriptions should take between five and ten lines. Use full
> sentences, and avoid using acronyms without first introducing them.
> [...]

Fixed, thank you!

Giacomo
P
35c60169-1ec9-960c-eac6-efaaff9e8f4f@autistici.org
Dear Maxime,

On 3/6/22 11:32, Maxime Devos wrote:
Toggle quote (8 lines)
> Giacomo Leidi via Guix-patches via schreef op zo 06-03-2022 om 00:14
> [+0100]:
>> +    (description
>> +      "This package provides @code{aerich} a Python database migrations tool for
>> +Tortoise ORM.")
> Is it a tool, or a library? If it's a tool, the 'python-' prefix can
> be dropped and the inputs depropagated.

It's actually both, but I guess that as dynaconf lacks 'python-' this
should also be renamed. Fixed, thank you. I'm sending an updated patch
set rebased on master.

Thank you for your time,

Giacomo
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 5/9] gnu: Add python-pytest-cov-3.0.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-5-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-pytest-cov-3.0): New variable.
---
gnu/packages/check.scm | 11 +++++++++++
1 file changed, 11 insertions(+)

Toggle diff (24 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e29f9ce02b..ea2d323dd2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1179,6 +1179,17 @@ (define-public python-pytest-cov
 supports coverage of subprocesses.")
   (license license:expat)))
 
+(define-public python-pytest-cov-3.0
+  (package
+    (inherit python-pytest-cov)
+    (version "3.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pytest-cov" version))
+        (sha256
+         (base32 "0w6lfv8gc1lxmnvsz7mq5z9shxac5zz6s9mwrai108kxc6qzbw77"))))))
+
 (define-public python2-pytest-cov
   (package-with-python2 python-pytest-cov))
 
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 3/9] gnu: Add python-coverage-5.5
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-3-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-coverage-5.5): New variable.
---
gnu/packages/check.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c66ec4722f..450ada0cf2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -38,6 +38,7 @@
 ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1825,6 +1826,18 @@ (define-public python-coverage
 executed.")
     (license license:bsd-3)))
 
+(define-public python-coverage-5.5
+  (package
+    (inherit python-coverage)
+    (version "5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "coverage" version))
+       (sha256
+        (base32
+         "0b112ly7vvplvm9l411aqknxhr7fzfyp28xhflhkcx78l3lqzrzb"))))))
+
 (define-public python2-coverage
   (package-with-python2 python-coverage))
 
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 4/9] gnu: python-codecov: Update to 2.1.12.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-4-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-codecov): Update to 2.1.12.
---
gnu/packages/check.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

Toggle diff (38 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 450ada0cf2..e29f9ce02b 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1907,19 +1907,27 @@ (define-public python2-cov-core
 (define-public python-codecov
   (package
     (name "python-codecov")
-    (version "2.0.15")
+    (version "2.1.12")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "codecov" version))
         (sha256
          (base32
-          "1217c0vqf7ii65635gvl27a5pfhv0r7zhrpdp9cx640hg73bgn4f"))))
+          "1haipizcyr6wnqavrfxwzhvjvqcfxy6r745gjnl6shi5a2xldnm0"))))
     (build-system python-build-system)
+    (arguments
+     (list
+      ;; 3 failed, 47 passed, 21 skipped, 1 warning
+      #:tests? #f))
     (native-inputs
-     (list python-unittest2))
+     (list python-ddt
+           python-mock
+           python-pytest
+           python-pytest-cov
+           python-requests))
     (propagated-inputs
-     (list python-coverage python-requests))
+     (list python-coverage-5.5 python-requests))
     (home-page "https://github.com/codecov/codecov-python")
     (synopsis "Upload code coverage reports to @code{codecov.io}")
     (description
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 1/9] gnu: Add python-codeclimate-test-reporter.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-1-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
---
gnu/packages/python-check.scm | 39 +++++++++++++++++++++++++++++++++++
1 file changed, 39 insertions(+)

Toggle diff (68 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index 05a378601f..eb6a6852c6 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -38,6 +39,7 @@ (define-module (gnu packages python-check)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
+  #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1508,6 +1510,43 @@ (define-public python-pytest-qt
 interaction, like key presses and mouse clicks.")
     (license license:expat)))
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list git-minimal/fixed
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list (package
+             (inherit python-coverage)
+             (version "4.3.4")
+             (source
+              (origin
+                (method url-fetch)
+                (uri (pypi-uri "coverage" version))
+                (sha256
+                 (base32
+                  "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-codacy-coverage
   (package
     (name "python-codacy-coverage")

base-commit: f8aa76ab1fd3b4c9c87d2e68a811477adc844217
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 6/9] gnu: Add python-ddlparse.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-6-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-ddlparse): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (44 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eac19ca1a5..6ee087be42 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3578,6 +3578,37 @@ (define-public python-jsondiff
 compare, diff, and patch JSON and JSON-like structures in Python.")
    (license license:expat)))
 
+(define-public python-ddlparse
+  (package
+    (name "python-ddlparse")
+    (version "1.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ddlparse" version))
+        (sha256
+          (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (native-inputs
+     (list python-codeclimate-test-reporter
+           python-codecov
+           python-coveralls
+           python-pytest
+           python-pytest-cov-3.0
+           python-tox))
+    (propagated-inputs (list python-pyparsing))
+    (home-page "https://github.com/shinichi-takii/ddlparse")
+    (synopsis "Parses and converts DDL to BigQuery JSON schema")
+    (description "This package provides @{ddlparse}, a Python library to parse
+and convert DDL to BigQuery JSON schema.")
+    (license license:bsd-3)))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 2/9] yyy
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-2-goodoldpaul@autistici.org
---
gnu/packages/python-check.scm | 39 -----------------------------------
gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++++++-
2 files changed, 38 insertions(+), 40 deletions(-)

Toggle diff (123 lines)
diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index eb6a6852c6..05a378601f 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -13,7 +13,6 @@
 ;;; Copyright © 2021 Brendan Tildesley <mail@brendan.scot>
 ;;; Copyright © 2021 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2021 Bonface Munyoki Kilyungi <me@bonfacemunyoki.com>
-;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -39,7 +38,6 @@ (define-module (gnu packages python-check)
   #:use-module (gnu packages python-web)
   #:use-module (gnu packages python-xyz)
   #:use-module (gnu packages qt)
-  #:use-module (gnu packages version-control)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg)
@@ -1510,43 +1508,6 @@ (define-public python-pytest-qt
 interaction, like key presses and mouse clicks.")
     (license license:expat)))
 
-(define-public python-codeclimate-test-reporter
-  (package
-    (name "python-codeclimate-test-reporter")
-    (version "0.2.3")
-    (source
-     (origin
-       (method git-fetch)               ;no tests in pypi archive
-       (uri (git-reference
-             (url "https://github.com/codeclimate/python-test-reporter")
-             (commit (string-append "v" version))))
-       (file-name (git-file-name name version))
-       (sha256
-        (base32
-         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
-    (build-system python-build-system)
-    (native-inputs
-     (list git-minimal/fixed
-           python-httpretty
-           python-pytest))
-    (propagated-inputs
-     (list (package
-             (inherit python-coverage)
-             (version "4.3.4")
-             (source
-              (origin
-                (method url-fetch)
-                (uri (pypi-uri "coverage" version))
-                (sha256
-                 (base32
-                  "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
-           python-requests))
-    (home-page "https://github.com/codeclimate/python-test-reporter")
-    (synopsis "Reports test coverage to Code Climate")
-    (description "This package provides @{codclimate-test-reporter}, a Python
-library teport test coverage to Code Climate.")
-    (license license:expat)))
-
 (define-public python-codacy-coverage
   (package
     (name "python-codacy-coverage")
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ed6de5a2b..eac19ca1a5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -63,7 +63,7 @@
 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2019, 2020, 2021 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
-;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2019-2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
@@ -26530,6 +26530,43 @@ (define-public python-flufl-lock
     (license (list license:asl2.0
                    license:lgpl3))))    ; only for setup_helpers.py
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list git-minimal/fixed
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list (package
+             (inherit python-coverage)
+             (version "4.3.4")
+             (source
+              (origin
+                (method url-fetch)
+                (uri (pypi-uri "coverage" version))
+                (sha256
+                 (base32
+                  "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-flufl-testing
   (package
     (name "python-flufl-testing")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 8/9] gnu: python-tortoise-orm: Update to 0.18.1.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-8-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-tortoise-orm): Update to 0.18.1,
[home-page]: Use new official home-page.
---
gnu/packages/databases.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index bb0c9712b1..e9467a3e79 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2984,16 +2984,16 @@ (define-public python-aiomysql
 (define-public python-tortoise-orm
   (package
     (name "python-tortoise-orm")
-    (version "0.17.8")
+    (version "0.18.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tortoise-orm" version))
        (sha256
-        (base32 "1gzgiypln7lck3p95vk3i8rdx1bjbmmlcpb8xpba8cjdjvlj0l0z"))))
+        (base32 "1c8xq3620z04i1yp8n6bfshi98qkjjydkbs3zld78a885p762wsk"))))
     (build-system python-build-system)
-    ;; The test suite relies on asynctest, which is abandoned and doesn't
-    ;; support Python >= 3.8.
+    ;; The test suite relies on starlette, qart and some other unpackaged
+    ;; optional dependencies.
     (arguments '(#:tests? #f))
     (propagated-inputs
      (list python-aiomysql
@@ -3006,7 +3006,7 @@ (define-public python-tortoise-orm
            python-pytz
            python-rapidjson
            python-uvloop))
-    (home-page "https://github.com/tortoise/tortoise-orm")
+    (home-page "https://tortoise.github.io")
     (synopsis "Asynchronous Object Relational Mapper (ORM) for Python")
     (description "Tortoise ORM is an easy-to-use asyncio ORM (Object
 Relational Mapper) inspired by Django.  Tortoise ORM was built with relations
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 7/9] gnu: python-pypika-tortoise: Update to 0.1.3.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-7-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-pypika-tortoise): Update to 0.1.3.
---
gnu/packages/databases.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (22 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 8e9431016f..bb0c9712b1 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2877,13 +2877,13 @@ (define-public python2-peewee
 (define-public python-pypika-tortoise
   (package
     (name "python-pypika-tortoise")
-    (version "0.1.1")
+    (version "0.1.3")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pypika-tortoise" version))
        (sha256
-        (base32 "0g4z0lz739nk04b405ynqpd3y1z5nfyxjz9hqgxcw3jydsjx0cb8"))))
+        (base32 "066jb88f3hk42sks69gv6w7k5irf6r0ssbly1n41a3pb19p2vpzc"))))
     (build-system python-build-system)
     (home-page "https://github.com/tortoise/pypika-tortoise")
     (synopsis "Pypika fork for tortoise-orm")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:36 +0100
[PATCH 9/9] gnu: Add python-aerich.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314223614.17668-9-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-aerich): New variable.
---
gnu/packages/databases.scm | 61 ++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)

Toggle diff (88 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e9467a3e79..b3e333bc21 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -56,6 +56,7 @@
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -118,6 +119,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages onc-rpc)
+  #:use-module (gnu packages openstack)
   #:use-module (gnu packages pantheon)
   #:use-module (gnu packages parallel)
   #:use-module (gnu packages pcre)
@@ -3015,6 +3017,65 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public aerich
+  (package
+    (name "aerich")
+    (version "0.6.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/aerich")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1bhx37svdln1aramddnpc8572bf81639h6jiyqvskzjkc1lvv60r"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'generate-setup.py
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; FIXME: This is an hack needed to get poetry's setup.py.
+             (setenv "POETRY_VIRTUALENVS_CREATE" "false")
+             (invoke "poetry" "build" "-f" "sdist")
+             (invoke "bash" "-c"
+                     (string-append "tar --wildcards "
+                                    "-xvf dist/*-`poetry version -s`.tar.gz "
+                                    "-O '*/setup.py' > setup.py"))))
+         (replace 'check
+           (lambda* (#:key tests? outputs #:allow-other-keys)
+             (when tests?
+               (let ((out (assoc-ref outputs "out")))
+                 (invoke "pytest" "-vv"))))))))
+    (native-inputs
+     (list
+      poetry
+      python-bandit
+      python-cryptography
+      python-isort
+      python-pytest
+      python-pytest-asyncio
+      python-pytest-mock
+      python-pytest-xdist))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM (Object Relational
+Mapper)")
+    (description
+      "This package provides @code{aerich}, a Python database migrations tool
+for Tortoise ORM (Object Relational Mapper).  It can be used both
+programmatically or as a standalone CLI application.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.34.0
P
Apologies for the noise
(address . 53019@debbugs.gnu.org)
3f0f5ead-73f8-1456-0910-cf5b1b1837ec@autistici.org
I apologize for the noise, of course I sent a branch that was not
rebased. I'm sending the correct patchset.

Thank you for your patience,

Giacomo
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 1/8] gnu: Add python-codeclimate-test-reporter.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-1-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
---
gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)

Toggle diff (61 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ed6de5a2b..eac19ca1a5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -63,7 +63,7 @@
 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2019, 2020, 2021 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
-;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2019-2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
@@ -26530,6 +26530,43 @@ (define-public python-flufl-lock
     (license (list license:asl2.0
                    license:lgpl3))))    ; only for setup_helpers.py
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list git-minimal/fixed
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list (package
+             (inherit python-coverage)
+             (version "4.3.4")
+             (source
+              (origin
+                (method url-fetch)
+                (uri (pypi-uri "coverage" version))
+                (sha256
+                 (base32
+                  "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-flufl-testing
   (package
     (name "python-flufl-testing")

base-commit: f8aa76ab1fd3b4c9c87d2e68a811477adc844217
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 2/8] gnu: Add python-coverage-5.5
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-2-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-coverage-5.5): New variable.
---
gnu/packages/check.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index c66ec4722f..450ada0cf2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -38,6 +38,7 @@
 ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1825,6 +1826,18 @@ (define-public python-coverage
 executed.")
     (license license:bsd-3)))
 
+(define-public python-coverage-5.5
+  (package
+    (inherit python-coverage)
+    (version "5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "coverage" version))
+       (sha256
+        (base32
+         "0b112ly7vvplvm9l411aqknxhr7fzfyp28xhflhkcx78l3lqzrzb"))))))
+
 (define-public python2-coverage
   (package-with-python2 python-coverage))
 
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 4/8] gnu: Add python-pytest-cov-3.0.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-4-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-pytest-cov-3.0): New variable.
---
gnu/packages/check.scm | 11 +++++++++++
1 file changed, 11 insertions(+)

Toggle diff (24 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index e29f9ce02b..ea2d323dd2 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1179,6 +1179,17 @@ (define-public python-pytest-cov
 supports coverage of subprocesses.")
   (license license:expat)))
 
+(define-public python-pytest-cov-3.0
+  (package
+    (inherit python-pytest-cov)
+    (version "3.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pytest-cov" version))
+        (sha256
+         (base32 "0w6lfv8gc1lxmnvsz7mq5z9shxac5zz6s9mwrai108kxc6qzbw77"))))))
+
 (define-public python2-pytest-cov
   (package-with-python2 python-pytest-cov))
 
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 3/8] gnu: python-codecov: Update to 2.1.12.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-3-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-codecov): Update to 2.1.12.
---
gnu/packages/check.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

Toggle diff (38 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 450ada0cf2..e29f9ce02b 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1907,19 +1907,27 @@ (define-public python2-cov-core
 (define-public python-codecov
   (package
     (name "python-codecov")
-    (version "2.0.15")
+    (version "2.1.12")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "codecov" version))
         (sha256
          (base32
-          "1217c0vqf7ii65635gvl27a5pfhv0r7zhrpdp9cx640hg73bgn4f"))))
+          "1haipizcyr6wnqavrfxwzhvjvqcfxy6r745gjnl6shi5a2xldnm0"))))
     (build-system python-build-system)
+    (arguments
+     (list
+      ;; 3 failed, 47 passed, 21 skipped, 1 warning
+      #:tests? #f))
     (native-inputs
-     (list python-unittest2))
+     (list python-ddt
+           python-mock
+           python-pytest
+           python-pytest-cov
+           python-requests))
     (propagated-inputs
-     (list python-coverage python-requests))
+     (list python-coverage-5.5 python-requests))
     (home-page "https://github.com/codecov/codecov-python")
     (synopsis "Upload code coverage reports to @code{codecov.io}")
     (description
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 5/8] gnu: Add python-ddlparse.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-5-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-ddlparse): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (44 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index eac19ca1a5..6ee087be42 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3578,6 +3578,37 @@ (define-public python-jsondiff
 compare, diff, and patch JSON and JSON-like structures in Python.")
    (license license:expat)))
 
+(define-public python-ddlparse
+  (package
+    (name "python-ddlparse")
+    (version "1.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ddlparse" version))
+        (sha256
+          (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (native-inputs
+     (list python-codeclimate-test-reporter
+           python-codecov
+           python-coveralls
+           python-pytest
+           python-pytest-cov-3.0
+           python-tox))
+    (propagated-inputs (list python-pyparsing))
+    (home-page "https://github.com/shinichi-takii/ddlparse")
+    (synopsis "Parses and converts DDL to BigQuery JSON schema")
+    (description "This package provides @{ddlparse}, a Python library to parse
+and convert DDL to BigQuery JSON schema.")
+    (license license:bsd-3)))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 8/8] gnu: Add python-aerich.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-8-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-aerich): New variable.
---
gnu/packages/databases.scm | 61 ++++++++++++++++++++++++++++++++++++++
1 file changed, 61 insertions(+)

Toggle diff (88 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index e9467a3e79..b3e333bc21 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -56,6 +56,7 @@
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -118,6 +119,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages onc-rpc)
+  #:use-module (gnu packages openstack)
   #:use-module (gnu packages pantheon)
   #:use-module (gnu packages parallel)
   #:use-module (gnu packages pcre)
@@ -3015,6 +3017,65 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public aerich
+  (package
+    (name "aerich")
+    (version "0.6.2")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/aerich")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1bhx37svdln1aramddnpc8572bf81639h6jiyqvskzjkc1lvv60r"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'generate-setup.py
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; FIXME: This is an hack needed to get poetry's setup.py.
+             (setenv "POETRY_VIRTUALENVS_CREATE" "false")
+             (invoke "poetry" "build" "-f" "sdist")
+             (invoke "bash" "-c"
+                     (string-append "tar --wildcards "
+                                    "-xvf dist/*-`poetry version -s`.tar.gz "
+                                    "-O '*/setup.py' > setup.py"))))
+         (replace 'check
+           (lambda* (#:key tests? outputs #:allow-other-keys)
+             (when tests?
+               (let ((out (assoc-ref outputs "out")))
+                 (invoke "pytest" "-vv"))))))))
+    (native-inputs
+     (list
+      poetry
+      python-bandit
+      python-cryptography
+      python-isort
+      python-pytest
+      python-pytest-asyncio
+      python-pytest-mock
+      python-pytest-xdist))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM (Object Relational
+Mapper)")
+    (description
+      "This package provides @code{aerich}, a Python database migrations tool
+for Tortoise ORM (Object Relational Mapper).  It can be used both
+programmatically or as a standalone CLI application.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 7/8] gnu: python-tortoise-orm: Update to 0.18.1.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-7-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-tortoise-orm): Update to 0.18.1,
[home-page]: Use new official home-page.
---
gnu/packages/databases.scm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Toggle diff (36 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index bb0c9712b1..e9467a3e79 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2984,16 +2984,16 @@ (define-public python-aiomysql
 (define-public python-tortoise-orm
   (package
     (name "python-tortoise-orm")
-    (version "0.17.8")
+    (version "0.18.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "tortoise-orm" version))
        (sha256
-        (base32 "1gzgiypln7lck3p95vk3i8rdx1bjbmmlcpb8xpba8cjdjvlj0l0z"))))
+        (base32 "1c8xq3620z04i1yp8n6bfshi98qkjjydkbs3zld78a885p762wsk"))))
     (build-system python-build-system)
-    ;; The test suite relies on asynctest, which is abandoned and doesn't
-    ;; support Python >= 3.8.
+    ;; The test suite relies on starlette, qart and some other unpackaged
+    ;; optional dependencies.
     (arguments '(#:tests? #f))
     (propagated-inputs
      (list python-aiomysql
@@ -3006,7 +3006,7 @@ (define-public python-tortoise-orm
            python-pytz
            python-rapidjson
            python-uvloop))
-    (home-page "https://github.com/tortoise/tortoise-orm")
+    (home-page "https://tortoise.github.io")
     (synopsis "Asynchronous Object Relational Mapper (ORM) for Python")
     (description "Tortoise ORM is an easy-to-use asyncio ORM (Object
 Relational Mapper) inspired by Django.  Tortoise ORM was built with relations
-- 
2.34.0
G
G
Giacomo Leidi wrote on 14 Mar 23:41 +0100
[PATCH 6/8] gnu: python-pypika-tortoise: Update to 0.1.3.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220314224144.18295-6-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-pypika-tortoise): Update to 0.1.3.
---
gnu/packages/databases.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Toggle diff (22 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 8e9431016f..bb0c9712b1 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2877,13 +2877,13 @@ (define-public python2-peewee
 (define-public python-pypika-tortoise
   (package
     (name "python-pypika-tortoise")
-    (version "0.1.1")
+    (version "0.1.3")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pypika-tortoise" version))
        (sha256
-        (base32 "0g4z0lz739nk04b405ynqpd3y1z5nfyxjz9hqgxcw3jydsjx0cb8"))))
+        (base32 "066jb88f3hk42sks69gv6w7k5irf6r0ssbly1n41a3pb19p2vpzc"))))
     (build-system python-build-system)
     (home-page "https://github.com/tortoise/pypika-tortoise")
     (synopsis "Pypika fork for tortoise-orm")
-- 
2.34.0
G
G
goodoldpaul wrote on 1 Jun 00:38 +0200
(no subject)
(address . 53019@debbugs.gnu.org)
ed918c76b4f61aa5e4d2d8bbbdae744a@autistici.org
Dear all, this is a friendly ping :)

Thank you for your time and effort
G
G
goodoldpaul wrote on 1 Jul 23:32 +0200
[PATCHES] Add aerich
(address . 53019@debbugs.gnu.org)
67bfad9c6042d8e615a54dd89490f0bd@autistici.org
Dear all,
this is a friendly ping :). I'm attaching an update patchset.

Thank you for your time and effort,

giacomo
G
G
Giacomo Leidi wrote on 1 Jul 23:32 +0200
[PATCH 2/6] gnu: Add python-coverage-5.5
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-2-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-coverage-5.5): New variable.
---
gnu/packages/check.scm | 13 +++++++++++++
1 file changed, 13 insertions(+)

Toggle diff (33 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 6ad2b1acd8..f2871690a5 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -38,6 +38,7 @@
 ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
 ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
 ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1745,6 +1746,18 @@ (define-public python-coverage
 executed.")
     (license license:bsd-3)))
 
+(define-public python-coverage-5.5
+  (package
+    (inherit python-coverage)
+    (version "5.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "coverage" version))
+       (sha256
+        (base32
+         "0b112ly7vvplvm9l411aqknxhr7fzfyp28xhflhkcx78l3lqzrzb"))))))
+
 (define-public python-pytest-asyncio
   (package
     (name "python-pytest-asyncio")
-- 
2.36.1
G
G
Giacomo Leidi wrote on 1 Jul 23:32 +0200
[PATCH 3/6] gnu: python-codecov: Update to 2.1.12.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-3-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-codecov): Update to 2.1.12.
---
gnu/packages/check.scm | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

Toggle diff (38 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index f2871690a5..58af53388e 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1821,19 +1821,27 @@ (define-public python-cov-core
 (define-public python-codecov
   (package
     (name "python-codecov")
-    (version "2.0.15")
+    (version "2.1.12")
     (source
       (origin
         (method url-fetch)
         (uri (pypi-uri "codecov" version))
         (sha256
          (base32
-          "1217c0vqf7ii65635gvl27a5pfhv0r7zhrpdp9cx640hg73bgn4f"))))
+          "1haipizcyr6wnqavrfxwzhvjvqcfxy6r745gjnl6shi5a2xldnm0"))))
     (build-system python-build-system)
+    (arguments
+     (list
+      ;; 3 failed, 47 passed, 21 skipped, 1 warning
+      #:tests? #f))
     (native-inputs
-     (list python-unittest2))
+     (list python-ddt
+           python-mock
+           python-pytest
+           python-pytest-cov
+           python-requests))
     (propagated-inputs
-     (list python-coverage python-requests))
+     (list python-coverage-5.5 python-requests))
     (home-page "https://github.com/codecov/codecov-python")
     (synopsis "Upload code coverage reports to @code{codecov.io}")
     (description
-- 
2.36.1
G
G
Giacomo Leidi wrote on 1 Jul 23:33 +0200
[PATCH 4/6] gnu: Add python-pytest-cov-3.0.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-4-goodoldpaul@autistici.org
* gnu/packages/check.scm (python-pytest-cov-3.0): New variable.
---
gnu/packages/check.scm | 11 +++++++++++
1 file changed, 11 insertions(+)

Toggle diff (24 lines)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 58af53388e..51fa2d2282 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -1089,6 +1089,17 @@ (define-public python-pytest-cov
 supports coverage of subprocesses.")
   (license license:expat)))
 
+(define-public python-pytest-cov-3.0
+  (package
+    (inherit python-pytest-cov)
+    (version "3.0.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "pytest-cov" version))
+        (sha256
+         (base32 "0w6lfv8gc1lxmnvsz7mq5z9shxac5zz6s9mwrai108kxc6qzbw77"))))))
+
 (define-public python-pytest-httpserver
   (package
     (name "python-pytest-httpserver")
-- 
2.36.1
G
G
Giacomo Leidi wrote on 1 Jul 23:33 +0200
[PATCH 5/6] gnu: Add python-ddlparse.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-5-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-ddlparse): New variable.
---
gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)

Toggle diff (44 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 23195bf86b..71c56d997f 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -3469,6 +3469,37 @@ (define-public python-jsondiff
 compare, diff, and patch JSON and JSON-like structures in Python.")
    (license license:expat)))
 
+(define-public python-ddlparse
+  (package
+    (name "python-ddlparse")
+    (version "1.10.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (pypi-uri "ddlparse" version))
+        (sha256
+          (base32 "1nh8m6rxslwk05daxshxmgk41qfp18yynydba49b13l4m8dnh634"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (when tests?
+                        (invoke "pytest")))))))
+    (native-inputs
+     (list python-codeclimate-test-reporter
+           python-codecov
+           python-coveralls
+           python-pytest
+           python-pytest-cov-3.0
+           python-tox))
+    (propagated-inputs (list python-pyparsing))
+    (home-page "https://github.com/shinichi-takii/ddlparse")
+    (synopsis "Parses and converts DDL to BigQuery JSON schema")
+    (description "This package provides @{ddlparse}, a Python library to parse
+and convert DDL to BigQuery JSON schema.")
+    (license license:bsd-3)))
+
 (define-public python-jsonschema
   (package
     (name "python-jsonschema")
-- 
2.36.1
G
G
Giacomo Leidi wrote on 1 Jul 23:33 +0200
[PATCH 6/6] gnu: Add python-aerich.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-6-goodoldpaul@autistici.org
* gnu/packages/databases.scm (python-aerich): New variable.
---
gnu/packages/databases.scm | 63 +++++++++++++++++++++++++++++++++++++-
1 file changed, 62 insertions(+), 1 deletion(-)

Toggle diff (90 lines)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 9e9b584f7a..b125e87245 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -56,7 +56,7 @@
 ;;; Copyright © 2021 jgart <jgart@dismail.de>
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
-;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
+;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -121,6 +121,7 @@ (define-module (gnu packages databases)
   #:use-module (gnu packages ncurses)
   #:use-module (gnu packages networking)
   #:use-module (gnu packages onc-rpc)
+  #:use-module (gnu packages openstack)
   #:use-module (gnu packages pantheon)
   #:use-module (gnu packages parallel)
   #:use-module (gnu packages pcre)
@@ -3002,6 +3003,66 @@ (define-public python-tortoise-orm
 with relational data.")
     (license license:asl2.0)))
 
+(define-public aerich
+  (package
+    (name "aerich")
+    (version "0.6.3")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/aerich")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "1ndkl8vvn6bxh19s26k3p5mlk1sk4ziw73c07av08va6cfp5ln0j"))))
+    (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'generate-setup.py
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             ;; FIXME: This is an hack needed to get poetry's setup.py.
+             (setenv "POETRY_VIRTUALENVS_CREATE" "false")
+             (invoke "poetry" "build" "-f" "sdist")
+             (invoke "bash" "-c"
+                     (string-append "tar --wildcards "
+                                    "-xvf dist/*-`poetry version -s`.tar.gz "
+                                    "-O '*/setup.py' > setup.py"))))
+         (replace 'check
+           (lambda* (#:key tests? outputs #:allow-other-keys)
+             (when tests?
+               (let ((out (assoc-ref outputs "out")))
+                 (invoke "pytest" "-vv"))))))))
+    (native-inputs
+     (list
+      poetry
+      python-bandit
+      python-cryptography
+      python-isort
+      python-pydantic
+      python-pytest
+      python-pytest-asyncio
+      python-pytest-mock
+      python-pytest-xdist))
+    (propagated-inputs
+      (list python-asyncmy
+            python-asyncpg
+            python-click
+            python-ddlparse
+            python-dictdiffer
+            python-tomlkit
+            python-tortoise-orm))
+    (home-page "https://github.com/tortoise/aerich")
+    (synopsis "Database migrations tool for Tortoise ORM (Object Relational
+Mapper)")
+    (description
+      "This package provides @code{aerich}, a Python database migrations tool
+for Tortoise ORM (Object Relational Mapper).  It can be used both
+programmatically or as a standalone CLI application.")
+    (license license:asl2.0)))
+
 (define-public sqlcipher
   (package
     (name "sqlcipher")
-- 
2.36.1
G
G
Giacomo Leidi wrote on 1 Jul 23:32 +0200
[PATCH 1/6] gnu: Add python-codeclimate-test-reporter.
(address . 53019@debbugs.gnu.org)(name . Giacomo Leidi)(address . goodoldpaul@autistici.org)
20220701213302.13234-1-goodoldpaul@autistici.org
* gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
---
gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++-
1 file changed, 38 insertions(+), 1 deletion(-)

Toggle diff (61 lines)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 1d43049776..23195bf86b 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -63,7 +63,7 @@
 ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2019, 2020, 2021, 2022 Pierre Langlois <pierre.langlois@gmx.com>
 ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
-;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <goodoldpaul@autistici.org>
+;;; Copyright © 2019-2022 Giacomo Leidi <goodoldpaul@autistici.org>
 ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <tanguy@bioneland.org>
 ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
@@ -26275,6 +26275,43 @@ (define-public python-flufl-lock
     (license (list license:asl2.0
                    license:lgpl3))))    ; only for setup_helpers.py
 
+(define-public python-codeclimate-test-reporter
+  (package
+    (name "python-codeclimate-test-reporter")
+    (version "0.2.3")
+    (source
+     (origin
+       (method git-fetch)               ;no tests in pypi archive
+       (uri (git-reference
+             (url "https://github.com/codeclimate/python-test-reporter")
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32
+         "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
+    (build-system python-build-system)
+    (native-inputs
+     (list git-minimal/fixed
+           python-httpretty
+           python-pytest))
+    (propagated-inputs
+     (list (package
+             (inherit python-coverage)
+             (version "4.3.4")
+             (source
+              (origin
+                (method url-fetch)
+                (uri (pypi-uri "coverage" version))
+                (sha256
+                 (base32
+                  "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
+           python-requests))
+    (home-page "https://github.com/codeclimate/python-test-reporter")
+    (synopsis "Reports test coverage to Code Climate")
+    (description "This package provides @{codclimate-test-reporter}, a Python
+library teport test coverage to Code Climate.")
+    (license license:expat)))
+
 (define-public python-flufl-testing
   (package
     (name "python-flufl-testing")

base-commit: aba1ee5553099d45eb22d9ca1f685502146a49d0
-- 
2.36.1
M
M
Maxime Devos wrote on 30 Jul 23:02 +0200
Re: [bug#53019] [PATCH 3/6] gnu: python-codecov: Update to 2.1.12.
ac03a182-8b1e-cb57-544a-caa149825ab9@telenet.be
On 01-07-2022 23:32, Giacomo Leidi via Guix-patches via wrote:
Toggle quote (4 lines)
> + (arguments
> + (list
> + ;; 3 failed, 47 passed, 21 skipped, 1 warning
> + #:tests? #f))
By disabling tests when they detect problems, we defeat the point of
having tests. A 'failing' test is a good test, as it detected a problem
(hopefully not a false positive ...) before the buggy result is actually
used for real.
It's like, say, firing a building inspector because they noticed that
the building would fall over in case of some wind from an unanticipated
direction, instead of making the building more sturdy, changing the
building plan or not proceeding with actually building the building.
What problems did the tests detect?
Greetings,
Maxime.
Attachment: OpenPGP_signature
M
M
Maxime Devos wrote on 30 Jul 23:04 +0200
Re: [bug#53019] [PATCH 2/6] gnu: Add python-coverage-5.5
bef15c7e-f53e-8d99-eae5-e91f1298a087@telenet.be
On 01-07-2022 23:32, Giacomo Leidi via Guix-patches via wrote:
Toggle quote (33 lines)
> * gnu/packages/check.scm (python-coverage-5.5): New variable.
> ---
> gnu/packages/check.scm | 13 +++++++++++++
> 1 file changed, 13 insertions(+)
>
> diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
> index 6ad2b1acd8..f2871690a5 100644
> --- a/gnu/packages/check.scm
> +++ b/gnu/packages/check.scm
> @@ -38,6 +38,7 @@
> ;;; Copyright © 2020, 2021, 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
> ;;; Copyright © 2021 Hugo Lecomte <hugo.lecomte@inria.fr>
> ;;; Copyright © 2022 Maxime Devos <maximedevos@telenet.be>
> +;;; Copyright © 2022 Giacomo Leidi <goodoldpaul@autistici.org>
> ;;;
> ;;; This file is part of GNU Guix.
> ;;;
> @@ -1745,6 +1746,18 @@ (define-public python-coverage
> executed.")
> (license license:bsd-3)))
>
> +(define-public python-coverage-5.5
> + (package
> + (inherit python-coverage)
> + (version "5.5")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "coverage" version))
> + (sha256
> + (base32
> + "0b112ly7vvplvm9l411aqknxhr7fzfyp28xhflhkcx78l3lqzrzb"))))))
> +
Why not update the already-existing python-coverage package? Then all
users of that package would benefit and propagation conflicts would be
avoided.
Greetings,
Maxime.
Attachment: OpenPGP_signature
M
M
Maxime Devos wrote on 30 Jul 23:09 +0200
Re: [bug#53019] [PATCH 1/6] gnu: Add python-codeclimate-test-reporter.
c0d1f8ef-de54-6481-db7b-823bdb096ff2@telenet.be
On 01-07-2022 23:32, Giacomo Leidi via Guix-patches via wrote:
Toggle quote (23 lines)
> * gnu/packages/python-xyz.scm (python-codeclimate-test-reporter): New variable.
> ---
> gnu/packages/python-xyz.scm | 39 ++++++++++++++++++++++++++++++++++++-
> 1 file changed, 38 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
> index 1d43049776..23195bf86b 100644
> --- a/gnu/packages/python-xyz.scm
> +++ b/gnu/packages/python-xyz.scm
> @@ -63,7 +63,7 @@
> ;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>
> ;;; Copyright © 2019, 2020, 2021, 2022 Pierre Langlois <pierre.langlois@gmx.com>
> ;;; Copyright © 2019 Jacob MacDonald <jaccarmac@gmail.com>
> -;;; Copyright © 2019, 2020, 2021 Giacomo Leidi <goodoldpaul@autistici.org>
> +;;; Copyright © 2019-2022 Giacomo Leidi <goodoldpaul@autistici.org>
> ;;; Copyright © 2019 Wiktor Żelazny <wzelazny@vurv.cz>
> ;;; Copyright © 2019, 2020, 2021, 2022 Tanguy Le Carrour <tanguy@bioneland.org>
> ;;; Copyright © 2019, 2021 Mădălin Ionel Patrașcu <madalinionel.patrascu@mdc-berlin.de>
> @@ -26275,6 +26275,43 @@ (define-public python-flufl-lock
> (license (list license:asl2.0
> license:lgpl3)))) ; only for setup_helpers.py
>
> +(define-public python-codeclimate-test-reporter
The README in the Git repository says it's deprecated, do we need it?
Toggle quote (35 lines)
> + (package
> + (name "python-codeclimate-test-reporter")
> + (version "0.2.3")
> + (source
> + (origin
> + (method git-fetch) ;no tests in pypi archive
> + (uri (git-reference
> + (url "https://github.com/codeclimate/python-test-reporter")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> + "0mxph5l3k9ch4hs9l76k4wnmzhd94bylg92lvm2priyn24gkn9a1"))))
> + (build-system python-build-system)
> + (native-inputs
> + (list git-minimal/fixed
> + python-httpretty
> + python-pytest))
> + (propagated-inputs
> + (list (package
> + (inherit python-coverage)
> + (version "4.3.4")
> + (source
> + (origin
> + (method url-fetch)
> + (uri (pypi-uri "coverage" version))
> + (sha256
> + (base32
> + "1prkwz1hkcbx19nsadbcmk4wl27ysx001pa8bykfagd3d87zxbpa")))))
> + python-requests))
> + (home-page "https://github.com/codeclimate/python-test-reporter")
> + (synopsis "Reports test coverage to Code Climate")
> + (description "This package provides @{codclimate-test-reporter}, a Python
> +library teport test coverage to Code Climate.")
> + (license license:expat)))
Typo: teport -> report, would also be nice to state more explicitly it
uploads information to some website.
The service it communicates to (Code Climate) also doesn't appear to be
free software, this isn't an automatic rejection (see, e.g.,
Facebook-related packages) but it's still rather "eergh, do we really
have to?".
Greetings,
Maxime
Attachment: OpenPGP_signature
M
M
Maxime Devos wrote on 30 Jul 23:09 +0200
Re: [bug#53019] [PATCH 4/6] gnu: Add python-pytest-cov-3.0.
189575a6-1dc6-1d72-4cf7-bae0e42e0581@telenet.be
On 01-07-2022 23:33, Giacomo Leidi via Guix-patches via wrote:
Toggle quote (3 lines)
> +(define-public python-pytest-cov-3.0
> + (package
> + (inherit python-pytest-cov)
Likewise as for python-coverage-5.5, why the separate package?
Attachment: OpenPGP_signature
G
G
goodoldpaul wrote on 31 Jul 00:52 +0200
(name . Maxime Devos)(address . maximedevos@telenet.be)(address . 53019@debbugs.gnu.org)
97d72009b4904800851d5737416aae44@autistici.org
Dear Maxime,
Toggle quote (1 lines)
> Likewise as for python-coverage-5.5, why the separate package?
Both python-pytest-cov and python-coverage have a lot of dependents,
they must be updated on staging...

$ guix refresh --list-dependent python-pytest-cov
Building the following 521 packages would ensure 1172 dependent packages
are rebuilt: python-pysox [...]

$ guix refresh --list-dependent python-coverage
Building the following 627 packages would ensure 1408 dependent packages
are rebuilt: u-boot-puma-rk3399 [...]\

I sent a patch for python-pytest-cov back in march,
but I didn't manage to find the time to do it also for python-coverage.

Thank you,

Giacomo
M
M
Maxime Devos wrote on 31 Jul 01:13 +0200
(address . goodoldpaul@autistici.org)(address . 53019@debbugs.gnu.org)
e0a201be-37fc-84e6-ff7c-5111860c5470@telenet.be
On 31-07-2022 00:52, goodoldpaul@autistici.org wrote:
Toggle quote (4 lines)
> Dear Maxime,
>> Likewise as for python-coverage-5.5, why the separate package?
> Both python-pytest-cov and python-coverage have a lot of dependents,
> they must be updated on staging...
Then you can mention that in the commit message, or better, ask for
someone to merge staging (it's not core-updates) into master ...
Toggle quote (11 lines)
>
> $ guix refresh --list-dependent python-pytest-cov
> Building the following 521 packages would ensure 1172 dependent
> packages are rebuilt: python-pysox [...]
>
> $ guix refresh --list-dependent python-coverage
> Building the following 627 packages would ensure 1408 dependent
> packages are rebuilt: u-boot-puma-rk3399 [...]\
>
> I sent a patch for python-pytest-cov back in march,
> (https://git.savannah.gnu.org/cgit/guix.git/commit/?h=staging&id=12c9da35389dfba86ae0d863132a6b2c4374205a)
... mentioning this in the commit message would avoid having the
reviewer doing some pointless checking whether the new version doesn't
contain malware, whether it builds reproducibly, etc, as it was
presumably already done for the staging patch.
Greetings,
Maxime.
Attachment: OpenPGP_signature
?