GNU bug report logs - #74580
[PATCH 00/14] [python-team]

Previous Next

Package: guix-patches;

Reported by: Nicolas Graves <ngraves <at> ngraves.fr>

Date: Thu, 28 Nov 2024 07:48:02 UTC

Severity: normal

Tags: patch

Done: Sharlatan Hellseher <sharlatanus <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


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

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 74580 <at> debbugs.gnu.org
Cc: Nicolas Graves <ngraves <at> ngraves.fr>
Subject: [PATCH 07/14] gnu: python-fsspec: Update to 2024.10.0.
Date: Thu, 28 Nov 2024 08:52:19 +0100
* gnu/packages/python-xyz.scm (python-fsspec): Update to 2024.10.0.
[arguments]<#:phases>: Rewrite phase 'fix-version. Add phase
'install-version.
<#:test-flags>: Ignore the sole failing test.
[native-inputs]: Add python-hatchling. Remove python-setuptools and
python-wheel.
---
 gnu/packages/python-xyz.scm | 35 ++++++++++++++++++++++-------------
 1 file changed, 22 insertions(+), 13 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 03c62ff26b..cf0d423a95 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -29367,7 +29367,7 @@ (define-public python-partd
 (define-public python-fsspec
   (package
     (name "python-fsspec")
-    (version "2023.5.0")
+    (version "2024.10.0")
     (source
      (origin
        (method git-fetch)
@@ -29376,8 +29376,7 @@ (define-public python-fsspec
              (commit version)))
        (file-name (git-file-name name version))
        (sha256
-        (base32
-         "0c0brw5s4330rj0yjcrqi56hanvaahn43854jai70qzqg1qvyl88"))))
+        (base32 "0fba2wsf0z80y2x60rag5h393vn0ln7s0fbmvvl1cwjw30pgl9qb"))))
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -29385,21 +29384,31 @@ (define-public python-fsspec
       #~(modify-phases %standard-phases
           (add-after 'unpack 'fix-version
             (lambda _
-              (substitute* "fsspec/__init__.py"
-                (("__version__ = .*")
-                 (string-append "__version__ = \"" #$version "\"")))
-              (substitute* "setup.py"
-                (("versioneer.get_version\\(\\)")
-                 (string-append "\"" #$version "\""))))))
+              (call-with-output-file "fsspec/_version.py"
+                (lambda (port)
+                  (display (string-append "__version__ = \"" #$version "\"")
+                           port)))
+              (substitute* "pyproject.toml"
+                (("\\[tool\\.hatch\\.build\\.hooks\\.vcs\\]")
+                 "")
+                (("^dynamic = \\[\"version\"\\]")
+                 (string-append "version = \"" #$version "\"\n")))))
+          (add-after 'install 'install-version
+            (lambda _
+              (install-file
+               "fsspec/_version.py"
+               (dirname (car (find-files #$output "gui\\.py")))))))
       #:test-flags
       '(list
-        ;; requires internet access
-        "--ignore=fsspec/implementations/tests/test_dbfs.py")))
+        ;; XXX: Unclear why this test fail.
+        "-k" "not test_processes")))
     (propagated-inputs
      (list python-aiohttp python-libarchive-c python-requests python-tqdm))
     (native-inputs
-     (list python-pytest python-pytest-mock python-numpy python-setuptools
-           python-wheel))
+     (list python-hatchling
+           python-pytest
+           python-pytest-mock
+           python-numpy))
     (home-page "https://github.com/intake/filesystem_spec")
     (synopsis "File-system specification")
     (description "The purpose of this package is to produce a template or
-- 
2.46.0





This bug report was last modified 165 days ago.

Previous Next


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