[Git][debian-gis-team/universal-pathlib][master] 5 commits: Copy the test folder to the build directory

Antonio Valentino (@antonio.valentino) gitlab at salsa.debian.org
Wed Aug 5 18:53:02 BST 2026



Antonio Valentino pushed to branch master at Debian GIS Project / universal-pathlib


Commits:
2eecc01f by Antonio Valentino at 2026-08-05T16:28:39+00:00
Copy the test folder to the build directory

- - - - -
de61b9b2 by Antonio Valentino at 2026-08-05T16:36:37+00:00
Update dependencies

- - - - -
ef3addd7 by Antonio Valentino at 2026-08-05T17:43:20+00:00
New 0004-xfail.patch

- - - - -
74093ad0 by Antonio Valentino at 2026-08-05T17:49:55+00:00
New python3-universal-pathlib.lintian-overrides

- - - - -
c4969f99 by Antonio Valentino at 2026-08-05T17:49:55+00:00
Set distribution to unstable

- - - - -


7 changed files:

- debian/changelog
- debian/control
- debian/patches/0003-Mark-network-tests.patch
- + debian/patches/0004-xfail.patch
- debian/patches/series
- + debian/python3-universal-pathlib.lintian-overrides
- debian/rules


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,17 @@
+universal-pathlib (0.3.10-3) unstable; urgency=medium
+
+  * debian/rules:
+    - Copy the test folder to the build directory.
+  * debian/control:
+    - Add dependencies on python3-packaging and
+      python3-pydantic-settings.
+  * debian/patches:
+    - Update 0003-Mark-network-tests.patch.
+    - New 0004-xfail.patch (Closes: #1143435).
+  * New python3-universal-pathlib.lintian-overrides.
+
+ -- Antonio Valentino <antonio.valentino at tiscali.it>  Wed, 05 Aug 2026 17:43:24 +0000
+
 universal-pathlib (0.3.10-2) unstable; urgency=medium
 
   [ Bas Couwenberg ]


=====================================
debian/control
=====================================
@@ -12,8 +12,10 @@ Build-Depends: debhelper-compat (= 13),
                python3-fsspec,
                python3-huggingface-hub <!nocheck>,
                python3-moto <!nocheck>,
+               python3-packaging <!nocheck>,
                python3-pathlib-abc,
                python3-pydantic <!nocheck>,
+               python3-pydantic-settings <!nocheck>,
                python3-pyftpdlib <!nocheck>,
                python3-pytest <!nocheck>,
                python3-pytest-mock <!nocheck>,


=====================================
debian/patches/0003-Mark-network-tests.patch
=====================================
@@ -6,8 +6,9 @@ Forwarded: https://github.com/fsspec/universal_pathlib/pull/549
 ---
  pyproject.toml                             |  1 +
  upath/tests/implementations/test_github.py | 15 +++++++++------
+ upath/tests/implementations/test_hf.py     |  1 +
  upath/tests/implementations/test_http.py   |  1 +
- 3 files changed, 11 insertions(+), 6 deletions(-)
+ 4 files changed, 12 insertions(+), 6 deletions(-)
 
 diff --git a/pyproject.toml b/pyproject.toml
 index 3e1f650..e2b4d58 100644
@@ -48,6 +49,18 @@ index 5fda42f..4d35d0c 100644
  
  
  def xfail_on_github_connection_error(func):
+diff --git a/upath/tests/implementations/test_hf.py b/upath/tests/implementations/test_hf.py
+index 4b30dbf..6935212 100644
+--- a/upath/tests/implementations/test_hf.py
++++ b/upath/tests/implementations/test_hf.py
+@@ -17,6 +17,7 @@ except ImportError:
+     pytestmark = pytest.mark.skip
+ 
+ 
++ at pytest.mark.network
+ def test_hfpath():
+     path = UPath("hf://HuggingFaceTB/SmolLM2-135M")
+     assert isinstance(path, HfPath)
 diff --git a/upath/tests/implementations/test_http.py b/upath/tests/implementations/test_http.py
 index 66d76e6..aa4957e 100644
 --- a/upath/tests/implementations/test_http.py


=====================================
debian/patches/0004-xfail.patch
=====================================
@@ -0,0 +1,24 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Wed, 5 Aug 2026 17:31:25 +0000
+Subject: xfail
+
+* test_hf.py::TestUPathHf::test_iterdir_parent_iteration:
+  incompatibility of teh test with recent versions of huggingface-hub
+
+Forwarded: https://github.com/fsspec/universal_pathlib/issues/562
+---
+ upath/tests/implementations/test_hf.py | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/upath/tests/implementations/test_hf.py b/upath/tests/implementations/test_hf.py
+index 6935212..ec3d8ee 100644
+--- a/upath/tests/implementations/test_hf.py
++++ b/upath/tests/implementations/test_hf.py
+@@ -51,6 +51,7 @@ class TestUPathHf(
+     def test_is_correct_class(self):
+         assert isinstance(self.path, HfPath)
+ 
++    @pytest.mark.xfail(strict=False, reason="incompatibility with recent versions of huggingface_hub")
+     @overrides_base
+     def test_iterdir_parent_iteration(self):
+         # HfPath does not support listing all available Repositories


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 0001-No-smbclient.patch
 0002-Better-detection-of-tests-requiring-s3fs.patch
 0003-Mark-network-tests.patch
+0004-xfail.patch


=====================================
debian/python3-universal-pathlib.lintian-overrides
=====================================
@@ -0,0 +1,2 @@
+# False positive
+package-contains-documentation-outside-usr-share-doc [usr/lib/python3/*-packages/universal_pathlib-*.*-info/*.txt]


=====================================
debian/rules
=====================================
@@ -3,7 +3,9 @@
 export CI=TRUE
 
 export PYBUILD_NAME=upath
-export PYBUILD_TEST_ARGS=-m "not network" $(CURDIR)/${PYBUILD_NAME}/tests
+export PYBUILD_BEFORE_TEST=cp -r {dir}/upath/tests {build_dir}/$(PYBUILD_NAME)
+export PYBUILD_TEST_ARGS=-m "not network" $(PYBUILD_NAME)/tests
+export PYBUILD_AFTER_TEST=$(RM) -r {build_dir}/$(PYBUILD_NAME)/tests
 
 %:
 	dh $@ --buildsystem=pybuild



View it on GitLab: https://salsa.debian.org/debian-gis-team/universal-pathlib/-/compare/be56dab598771ff5048ad165c032c349372104c9...c4969f99055244144597992245e3c14555e0ecd6

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/universal-pathlib/-/compare/be56dab598771ff5048ad165c032c349372104c9...c4969f99055244144597992245e3c14555e0ecd6
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-grass-devel/attachments/20260805/3ec08f7e/attachment-0001.htm>


More information about the Pkg-grass-devel mailing list