[Git][debian-gis-team/universal-pathlib][master] 2 commits: New 0005-relative-imports.patch
Antonio Valentino (@antonio.valentino)
gitlab at salsa.debian.org
Wed Aug 5 20:53:03 BST 2026
Antonio Valentino pushed to branch master at Debian GIS Project / universal-pathlib
Commits:
996b5113 by Antonio Valentino at 2026-08-05T18:15:26+00:00
New 0005-relative-imports.patch
- - - - -
e3348ca2 by Antonio Valentino at 2026-08-05T19:52:47+00:00
Fix test setup
- - - - -
4 changed files:
- debian/changelog
- + debian/patches/0005-relative-imports.patch
- debian/patches/series
- debian/rules
Changes:
=====================================
debian/changelog
=====================================
@@ -8,6 +8,7 @@ universal-pathlib (0.3.10-3) unstable; urgency=medium
* debian/patches:
- Update 0003-Mark-network-tests.patch.
- New 0004-xfail.patch (Closes: #1143435).
+ - New 0005-relative-imports.patch.
* New python3-universal-pathlib.lintian-overrides.
-- Antonio Valentino <antonio.valentino at tiscali.it> Wed, 05 Aug 2026 17:43:24 +0000
=====================================
debian/patches/0005-relative-imports.patch
=====================================
@@ -0,0 +1,44 @@
+From: Antonio Valentino <antonio.valentino at tiscali.it>
+Date: Wed, 5 Aug 2026 18:12:58 +0000
+Subject: relative-imports
+
+User relative imports in the tests sub-package
+
+Forwarded: not-needed
+---
+ upath/tests/cases.py | 3 ++-
+ upath/tests/implementations/test_ftp.py | 4 ++--
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/upath/tests/cases.py b/upath/tests/cases.py
+index 22587fa..366c27e 100644
+--- a/upath/tests/cases.py
++++ b/upath/tests/cases.py
+@@ -17,9 +17,10 @@ from upath import UnsupportedOperation
+ from upath import UPath
+ from upath._protocol import get_upath_protocol
+ from upath._stat import UPathStatResult
+-from upath.tests.utils import posixify
+ from upath.types import StatResultType
+
++from .utils import posixify
++
+
+ class JoinablePathTests:
+ """Tests for JoinablePath interface.
+diff --git a/upath/tests/implementations/test_ftp.py b/upath/tests/implementations/test_ftp.py
+index b7edc7c..c896d62 100644
+--- a/upath/tests/implementations/test_ftp.py
++++ b/upath/tests/implementations/test_ftp.py
+@@ -2,9 +2,9 @@ import pytest
+
+ from upath import UPath
+ from upath.implementations.ftp import FTPPath
+-from upath.tests.cases import BaseTests
+-from upath.tests.utils import skip_on_windows
+
++from ..cases import BaseTests
++from ..utils import skip_on_windows
+ from ..utils import OverrideMeta
+ from ..utils import extends_base
+ from ..utils import overrides_base
=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@
0002-Better-detection-of-tests-requiring-s3fs.patch
0003-Mark-network-tests.patch
0004-xfail.patch
+0005-relative-imports.patch
=====================================
debian/rules
=====================================
@@ -3,9 +3,9 @@
export CI=TRUE
export PYBUILD_NAME=upath
-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
+export PYBUILD_BEFORE_TEST=cp -r {dir}/upath/tests {build_dir}
+export PYBUILD_TEST_ARGS=-m "not network" tests
+export PYBUILD_AFTER_TEST=$(RM) -r {build_dir}/tests
%:
dh $@ --buildsystem=pybuild
View it on GitLab: https://salsa.debian.org/debian-gis-team/universal-pathlib/-/compare/c4969f99055244144597992245e3c14555e0ecd6...e3348ca220bf4edce276e8d9abbe03b46d6c5f54
--
View it on GitLab: https://salsa.debian.org/debian-gis-team/universal-pathlib/-/compare/c4969f99055244144597992245e3c14555e0ecd6...e3348ca220bf4edce276e8d9abbe03b46d6c5f54
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/a307a46f/attachment-0001.htm>
More information about the Pkg-grass-devel
mailing list