Bas Couwenberg pushed to branch master at Debian GIS Project / python-deprecated
Commits:
bfc9fd22 by Bas Couwenberg at 2026-09-15T04:44:52-07:00
Add patch to move away from pkg_resources. (closes: #1147895)
- - - - -
449cf8b2 by Bas Couwenberg at 2026-09-15T04:45:06-07:00
Set distribution to unstable.
- - - - -
3 changed files:
- debian/changelog
- + debian/patches/pkg_resources.patch
- + debian/patches/series
Changes:
=====================================
debian/changelog
=====================================
@@ -1,12 +1,14 @@
-python-deprecated (1.3.1-2) UNRELEASED; urgency=medium
+python-deprecated (1.3.1-2) unstable; urgency=medium
* Annotate build dependencies with nocheck.
(closes: #1142769)
* Make pytest output verbose.
* Drop Priority: optional, default since dpkg 1.22.13.
* Bump Standards-Version to 4.7.4, changes: priority.
+ * Add patch to move away from pkg_resources.
+ (closes: #1147895)
- -- Bas Couwenberg <[email protected]> Mon, 15 Dec 2025 21:25:06 +0100
+ -- Bas Couwenberg <[email protected]> Tue, 15 Sep 2026 04:44:54 -0700
python-deprecated (1.3.1-1) unstable; urgency=medium
=====================================
debian/patches/pkg_resources.patch
=====================================
@@ -0,0 +1,36 @@
+Description: Use packaging for version handling.
+ pkg_resources removed in setuptools 82.0.0.
+Author: Bas Couwenberg <[email protected]>
+Forwarded: https://github.com/laurent-laporte-pro/deprecated/pull/101
+
+--- a/tests/test.py
++++ b/tests/test.py
+@@ -1,5 +1,5 @@
+ # coding: utf-8
+-import pkg_resources
++from packaging.version import Version
+
+ import deprecated
+
+@@ -13,15 +13,11 @@ def test_deprecated_has_docstring():
+ def test_deprecated_has_version():
+ # The deprecated package must have a valid version number
+ assert deprecated.__version__ is not None
+- version = pkg_resources.parse_version(deprecated.__version__)
+
+- # .. note::
+- #
+- # The classes ``SetuptoolsVersion`` and ``SetuptoolsLegacyVersion``
+- # are removed since setuptools >= 39.
+- # They are replaced by ``Version`` and ``LegacyVersion`` respectively.
+- #
+- # To check if the version is good, we now use the solution explained
here:
+- # https://github.com/pypa/setuptools/issues/1299
++ try:
++ Version(deprecated.__version__)
++ valid_version = True
++ except packaging.version.InvalidVersion:
++ valid_version = False
+
+- assert 'Legacy' not in version.__class__.__name__
++ assert valid_version is True
=====================================
debian/patches/series
=====================================
@@ -0,0 +1 @@
+pkg_resources.patch
View it on GitLab:
https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/2b3a14e82d01a763b2cfe9bcfefac3cabdc797fe...449cf8b2d38ea1a8dc2c77b28678a635b72927b3
--
View it on GitLab:
https://salsa.debian.org/debian-gis-team/python-deprecated/-/compare/2b3a14e82d01a763b2cfe9bcfefac3cabdc797fe...449cf8b2d38ea1a8dc2c77b28678a635b72927b3
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
_______________________________________________
Pkg-grass-devel mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-grass-devel