GNU bug report logs - #66397
[PATCH] Fix and update python-tortoise-orm.

Previous Next

Package: guix-patches;

Reported by: paul <goodoldpaul <at> autistici.org>

Date: Sat, 7 Oct 2023 21:19:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66397 in the body.
You can then email your comments to 66397 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#66397; Package guix-patches. (Sat, 07 Oct 2023 21:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to paul <goodoldpaul <at> autistici.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 07 Oct 2023 21:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: paul <goodoldpaul <at> autistici.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] Fix and update python-tortoise-orm.
Date: Sat, 7 Oct 2023 23:17:49 +0200
Hello Guixers,

python-tortoise-orm is broken on master since it depends on 
aiosqlite<0.18 . This patchset fixes it and updates it to the latest 
version.


Thank you for your time and effort,


giacomo





Information forwarded to guix-patches <at> gnu.org:
bug#66397; Package guix-patches. (Sat, 07 Oct 2023 21:41:02 GMT) Full text and rfc822 format available.

Message #8 received at 66397 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 66397 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 1/3] gnu: Fix python-tortoise-orm's sanity-check.
Date: Sat,  7 Oct 2023 23:39:36 +0200
* gnu/packages/databases.scm (python-aiosqlite-0.17): New variable;
(python-tortoise-orm)[propagated-inputs]: use it.
---
 gnu/packages/databases.scm | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index b5077583c3..f458af2e1a 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3087,7 +3087,7 @@ (define-public python-tortoise-orm
     (arguments '(#:tests? #f))
     (propagated-inputs
      (list python-aiomysql
-           python-aiosqlite
+           python-aiosqlite-0.17
            python-asyncmy
            python-asyncpg
            python-ciso8601
@@ -3777,6 +3777,34 @@ (define-public python-aiosqlite
 managers for automatically closing connections.")
     (license license:expat)))
 
+(define-public python-aiosqlite-0.17
+  (package
+    (inherit python-aiosqlite)
+    (version "0.17.0")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/omnilib/aiosqlite")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name (package-name python-aiosqlite)
+                                        version))
+              (sha256
+               (base32
+                "1agh7b9g7rgryvb8flph85i8m80ai1rinpljxzlsrs0s0y616qgg"))))
+    (build-system pyproject-build-system)
+    (arguments
+     '(#:phases (modify-phases %standard-phases
+                  (replace 'check
+                    (lambda* (#:key tests? #:allow-other-keys)
+                      (if tests?
+                          (invoke "python" "-m" "unittest" "aiosqlite.tests")
+                          (format #t "test suite not run~%"))
+                      #t)))))
+    (propagated-inputs
+     (list python-typing-extensions))
+    (native-inputs
+     (list python-flit-core python-aiounittest))))
+
 (define-public python-databases
   (package
     (name "python-databases")

base-commit: 00a28bc435606dc98925fbae1ebe314881f35c90
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#66397; Package guix-patches. (Sat, 07 Oct 2023 21:41:02 GMT) Full text and rfc822 format available.

Message #11 received at 66397 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 66397 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 3/3] gnu: python-tortoise-orm: Update to 0.20.0.
Date: Sat,  7 Oct 2023 23:39:38 +0200
* gnu/packages/databases.scm (python-tortoise-orm): Update to 0.20.0;
[source]: switch to git-fetched origin;
[build-system]: switch to pyproject-build-system;
[native-inputs]: add poetry.
---
 gnu/packages/databases.scm | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 3e86f34510..b23b58f54f 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3076,17 +3076,22 @@ (define-public python-aiomysql
 (define-public python-tortoise-orm
   (package
     (name "python-tortoise-orm")
-    (version "0.19.1")
+    (version "0.20.0")
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "tortoise-orm" version))
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/tortoise/tortoise-orm")
+             (commit version)))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "17yk71dlx5ai98i6ivqgsplkwivdxackz9jfn6z42bpcdgbpiwhg"))))
-    (build-system python-build-system)
+        (base32 "19rgyvs2y9gn27x71y7djdz6rb6bszgvprv55q1hr4266wy6g999"))))
+    (build-system pyproject-build-system)
     ;; The test suite relies on asynctest, which is abandoned and doesn't
     ;; support Python >= 3.8.
     (arguments '(#:tests? #f))
+    (native-inputs
+     (list poetry))
     (propagated-inputs
      (list python-aiomysql
            python-aiosqlite-0.17
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#66397; Package guix-patches. (Sat, 07 Oct 2023 21:41:03 GMT) Full text and rfc822 format available.

Message #14 received at 66397 <at> debbugs.gnu.org (full text, mbox):

From: Giacomo Leidi <goodoldpaul <at> autistici.org>
To: 66397 <at> debbugs.gnu.org
Cc: Giacomo Leidi <goodoldpaul <at> autistici.org>
Subject: [PATCH 2/3] gnu: python-pypika-tortoise: Update to 0.1.6.
Date: Sat,  7 Oct 2023 23:39:37 +0200
* gnu/packages/databases.scm (python-pypika-tortoise): Update to 0.1.6;
[build-system]: switch to pyproject-build-system;
[native-inputs]: add poetry.
---
 gnu/packages/databases.scm | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f458af2e1a..3e86f34510 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -2972,14 +2972,16 @@ (define-public python-peewee
 (define-public python-pypika-tortoise
   (package
     (name "python-pypika-tortoise")
-    (version "0.1.5")
+    (version "0.1.6")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "pypika-tortoise" version))
        (sha256
-        (base32 "0j20574s2yrq8d7fav3816vj1nfpihkm2mj8jzh2ank4zixp8brf"))))
-    (build-system python-build-system)
+        (base32 "0dmzpsnlqjjz0vm0r9xjk69xfsm235bpnk3jccr8ww4s8y7qc0nq"))))
+    (build-system pyproject-build-system)
+    (native-inputs
+     (list poetry))
     (home-page "https://github.com/tortoise/pypika-tortoise")
     (synopsis "Pypika fork for tortoise-orm")
     (description "Pypika-tortoise is a fork of pypika which has been
-- 
2.41.0





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Mon, 23 Oct 2023 22:03:02 GMT) Full text and rfc822 format available.

Notification sent to paul <goodoldpaul <at> autistici.org>:
bug acknowledged by developer. (Mon, 23 Oct 2023 22:03:02 GMT) Full text and rfc822 format available.

Message #19 received at 66397-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: paul <goodoldpaul <at> autistici.org>
Cc: 66397-done <at> debbugs.gnu.org
Subject: Re: [bug#66397] [PATCH] Fix and update python-tortoise-orm.
Date: Tue, 24 Oct 2023 00:01:33 +0200
Hi,

paul <goodoldpaul <at> autistici.org> skribis:

> python-tortoise-orm is broken on master since it depends on
> aiosqlite<0.18 . This patchset fixes it and updates it to the latest
> version.

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 21 Nov 2023 12:24:17 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 269 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.