GNU bug report logs - #50481
[PATCH 0/3] Update python-rdflib.

Previous Next

Package: guix-patches;

Reported by: Arun Isaac <arunisaac <at> systemreboot.net>

Date: Wed, 8 Sep 2021 19:34:02 UTC

Severity: normal

Tags: patch

Done: Arun Isaac <arunisaac <at> systemreboot.net>

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 50481 in the body.
You can then email your comments to 50481 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#50481; Package guix-patches. (Wed, 08 Sep 2021 19:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Arun Isaac <arunisaac <at> systemreboot.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 08 Sep 2021 19:34:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: guix-patches <at> gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 0/3] Update python-rdflib.
Date: Thu,  9 Sep 2021 01:03:18 +0530
Hi,

This patchset adds python-berkeleydb and updates python-rdflib to the latest
version. python-rdflib no longer supports python2. So, I have also removed the
python2-rdflib package.

Regards,
Arun

Arun Isaac (3):
  gnu: Add python-berkeleydb.
  gnu: python-rdflib: Update to 6.0.0.
  gnu: python2-rdflib: Remove package.

 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++
 gnu/packages/rdf.scm        | 56 ++++++++++++++++++++++---------------
 2 files changed, 74 insertions(+), 23 deletions(-)

-- 
2.33.0





Information forwarded to guix-patches <at> gnu.org:
bug#50481; Package guix-patches. (Wed, 08 Sep 2021 19:43:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 50481 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 1/3] gnu: Add python-berkeleydb.
Date: Thu,  9 Sep 2021 01:12:09 +0530
* gnu/packages/python-xyz.scm (python-berkeleydb): New variable.
---
 gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7c70829de9..a7020b7615 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26556,3 +26556,44 @@ files and directories and adds a datestamp in standard ISO 8601+ format
 YYYY-MM-DD at the beginning of the file or directory name.")
       (home-page "https://github.com/novoid/date2name")
       (license license:gpl3+))))
+
+(define-public python-berkeleydb
+  (package
+    (name "python-berkeleydb")
+    (version "18.1.4")
+    (source
+     (origin
+       ;; We use the upstream repository, as the tests are not included in the
+       ;; PyPI releases.
+       (method hg-fetch)
+       (uri (hg-reference
+             (url "https://hg.jcea.es/pybsddb/")
+             (changeset version)))
+       (file-name (string-append name "-" version "-checkout"))
+       (sha256
+        (base32
+         "0xj0l73ns6xph5pmysna7g4rdla1alvh2s2k2crhwv8yghjmnjqi"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'unpack 'suppress-license-warning
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "BERKELEYDB_DIR" (assoc-ref inputs "bdb"))
+             (setenv "YES_I_HAVE_THE_RIGHT_TO_USE_THIS_BERKELEY_DB_VERSION" "1")))
+         (replace 'check
+           (lambda* (#:key tests? #:allow-other-keys)
+             (when tests?
+               (invoke "./test.py" "-v")))))))
+    (inputs
+     `(("bdb" ,bdb)))
+    (home-page "https://www.jcea.es/programacion/pybsddb.htm")
+    (synopsis "Python bindings for Oracle Berkeley DB")
+    (description "This package provides a nearly complete wrapping of the
+Oracle/Sleepycat C API for the Database Environment, Database, Cursor, Log
+Cursor, Sequence and Transaction objects, and each of these is exposed as a
+Python type in the berkeleydb.db module.  The database objects can use various
+access methods: btree, hash, recno, queue and heap.  Oracle Berkeley DB
+distributed transactions, Oracle Berkeley DB Replication Manager and Oracle
+Berkeley DB Base Replication are supported.")
+    (license license:bsd-3)))
-- 
2.33.0





Information forwarded to guix-patches <at> gnu.org:
bug#50481; Package guix-patches. (Wed, 08 Sep 2021 19:43:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 50481 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 3/3] gnu: python2-rdflib: Remove package.
Date: Thu,  9 Sep 2021 01:12:11 +0530
* gnu/packages/rdf.scm (python2-rdflib): Delete variable.
---
 gnu/packages/rdf.scm | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm
index d09c28402a..95b4ec72be 100644
--- a/gnu/packages/rdf.scm
+++ b/gnu/packages/rdf.scm
@@ -383,9 +383,6 @@ powerful language for representing information.")
     (license (license:non-copyleft "file://LICENSE"
                                    "See LICENSE in the distribution."))))
 
-(define-public python2-rdflib
-  (package-with-python2 python-rdflib))
-
 (define-public python-rdflib-jsonld
   (package
     (name "python-rdflib-jsonld")
-- 
2.33.0





Information forwarded to guix-patches <at> gnu.org:
bug#50481; Package guix-patches. (Wed, 08 Sep 2021 19:43:02 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: 50481 <at> debbugs.gnu.org
Cc: Arun Isaac <arunisaac <at> systemreboot.net>
Subject: [PATCH 2/3] gnu: python-rdflib: Update to 6.0.0.
Date: Thu,  9 Sep 2021 01:12:10 +0530
* gnu/packages/rdf.scm (python-rdflib): Update to 6.0.0.
[arguments]: Replace check phase. Enable tests.
[native-inputs]: Add python-black, python-coverage,
python-doctest-ignore-unicode, python-flake8, python-networkx and
python-nose-timer.
[propagated-inputs]: Add python-berkeleydb.
---
 gnu/packages/rdf.scm | 53 +++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 20 deletions(-)

diff --git a/gnu/packages/rdf.scm b/gnu/packages/rdf.scm
index fb84d8053d..d09c28402a 100644
--- a/gnu/packages/rdf.scm
+++ b/gnu/packages/rdf.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2020 Pjotr Prins <pjotr.guix <at> thebird.nl>
 ;;; Copyright © 2020 Efraim Flashner <efraim <at> flashner.co.il>
 ;;; Copyright © 2020 pukkamustard <pukkamustard <at> posteo.net>
+;;; Copyright © 2021 Arun Isaac <arunisaac <at> systemreboot.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -337,31 +338,43 @@ ideal (e.g. in LV2 implementations or embedded applications).")
 (define-public python-rdflib
   (package
     (name "python-rdflib")
-    (version "4.2.2")
+    (version "6.0.0")
     (source
-      (origin
-        (method url-fetch)
-        (uri (pypi-uri "rdflib" version))
-        (sha256
-         (base32
-          "0398c714znnhaa2x7v51b269hk20iz073knq2mvmqp2ma92z27fs"))))
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "rdflib" version))
+       (sha256
+        (base32
+         "0ycqczf33irq0ai6wpg4vxd9xwlpq3c41hsy411xvx16xdbxgr3w"))))
     (build-system python-build-system)
     (arguments
-     '(;; FIXME: Three test failures. Should be fixed next release.
-       #:tests? #f))
-       ;; #:phases
-       ;; (modify-phases %standard-phases
-       ;;   (replace 'check
-       ;;     (lambda _
-       ;;       ;; Run tests from the build directory so python3 only
-       ;;       ;; sees the installed 2to3 version.
-       ;;       (invoke "nosetests" "--where=./build/src"))))))
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key outputs tests? #:allow-other-keys)
+             (when tests?
+               ;; Make installed package available for running the tests.
+               (setenv "PATH" (string-append (assoc-ref outputs "out")
+                                             "/bin:" (getenv "PATH")))
+               (invoke "nosetests"
+                       ;; Exclude tests that require network access.
+                       "--exclude" "^test_sparql_service$"
+                       "--exclude" "^testGuessFormatForParse$"
+                       "--exclude" "^test_onedotone$"
+                       "--exclude" "^rdflib$")))))))
     (native-inputs
-     `(("python-nose" ,python-nose)))
+     `(("python-black" ,python-black)
+       ("python-coverage" ,python-coverage)
+       ("python-doctest-ignore-unicode" ,python-doctest-ignore-unicode)
+       ("python-flake8" ,python-flake8)
+       ("python-networkx" ,python-networkx)
+       ("python-nose" ,python-nose)
+       ("python-nose-timer" ,python-nose-timer)))
     (propagated-inputs
-      `(("python-html5lib" ,python-html5lib)
-        ("python-isodate" ,python-isodate)
-        ("python-pyparsing" ,python-pyparsing)))
+     `(("python-berkeleydb" ,python-berkeleydb)
+       ("python-html5lib" ,python-html5lib)
+       ("python-isodate" ,python-isodate)
+       ("python-pyparsing" ,python-pyparsing)))
     (home-page "https://github.com/RDFLib/rdflib")
     (synopsis "Python RDF library")
     (description
-- 
2.33.0





Information forwarded to guix-patches <at> gnu.org:
bug#50481; Package guix-patches. (Tue, 21 Sep 2021 12:55:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Arun Isaac <arunisaac <at> systemreboot.net>
Cc: 50481 <at> debbugs.gnu.org
Subject: Re: bug#50481: [PATCH 0/3] Update python-rdflib.
Date: Tue, 21 Sep 2021 14:54:35 +0200
Hi,

Arun Isaac <arunisaac <at> systemreboot.net> skribis:

>   gnu: Add python-berkeleydb.
>   gnu: python-rdflib: Update to 6.0.0.
>   gnu: python2-rdflib: Remove package.

As long as dependents still build (which I haven’t tested), LGTM!

Thanks,
Ludo’.




Information forwarded to guix-patches <at> gnu.org:
bug#50481; Package guix-patches. (Wed, 22 Sep 2021 20:26:01 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 50481 <at> debbugs.gnu.org
Subject: Re: bug#50481: [PATCH 0/3] Update python-rdflib.
Date: Thu, 23 Sep 2021 01:55:19 +0530
[Message part 1 (text/plain, inline)]
Hi Ludo,

>>   gnu: python-rdflib: Update to 6.0.0.
>
> As long as dependents still build (which I haven’t tested), LGTM!

Thanks for the reminder! It looks like this upgrade breaks cwltool,
python-prov, python-rdflib-jsonld and python-schema-salad. I am fixing
them now.

Regards,
Arun
[signature.asc (application/pgp-signature, inline)]

Reply sent to Arun Isaac <arunisaac <at> systemreboot.net>:
You have taken responsibility. (Tue, 15 Feb 2022 07:43:01 GMT) Full text and rfc822 format available.

Notification sent to Arun Isaac <arunisaac <at> systemreboot.net>:
bug acknowledged by developer. (Tue, 15 Feb 2022 07:43:01 GMT) Full text and rfc822 format available.

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

From: Arun Isaac <arunisaac <at> systemreboot.net>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: 50481-done <at> debbugs.gnu.org
Subject: Re: [bug#50481] [PATCH 0/3] Update python-rdflib.
Date: Tue, 15 Feb 2022 13:12:04 +0530
[Message part 1 (text/plain, inline)]
Hi Ludo,

It looks like Marius updated python-rdflib in
2a4c271e614d069423519af4be5511a0c25156f1. So, I'm closing this issue.

Regards,
Arun
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 15 Mar 2022 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 40 days ago.

Previous Next


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