[Git][debian-gis-team/pycsw][master] Add patch to use importlib instead of deprecate pkg_resources. (closes: #1125837)

Bas Couwenberg (@sebastic) gitlab at salsa.debian.org
Sun Jan 18 19:08:53 GMT 2026



Bas Couwenberg pushed to branch master at Debian GIS Project / pycsw


Commits:
527b4fdd by Bas Couwenberg at 2026-01-18T20:08:25+01:00
Add patch to use importlib instead of deprecate pkg_resources. (closes: #1125837)

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/importlib.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -5,6 +5,8 @@ pycsw (2.6.2+dfsg-4) UNRELEASED; urgency=medium
   * Annotate build dependencies with nocheck & nodoc.
   * Drop Priority: optional, default since dpkg 1.22.13.
   * Bump Standards-Version to 4.7.3, changes: priority.
+  * Add patch to use importlib instead of deprecate pkg_resources.
+    (closes: #1125837)
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 29 Nov 2025 10:21:59 +0100
 


=====================================
debian/control
=====================================
@@ -18,7 +18,6 @@ Build-Depends: apache2-dev,
                python3-lxml,
                python3-mock <!nocheck>,
                python3-owslib,
-               python3-pkg-resources,
                python3-psycopg2 <!nocheck>,
                python3-pyproj,
                python3-pytest <!nocheck>,
@@ -60,8 +59,7 @@ Description: OGC compliant metadata (Catalogue Service for the Web) server
 
 Package: python3-pycsw
 Architecture: all
-Depends: python3-pkg-resources,
-         python3-pytz,
+Depends: python3-pytz,
          ${python3:Depends},
          ${misc:Depends}
 Description: OGC compliant metadata (Catalogue Service for the Web) server - Python 3


=====================================
debian/patches/importlib.patch
=====================================
@@ -0,0 +1,15 @@
+Description: Use importlib instead of deprecated pkg_resources.
+Author: Bas Couwenberg <sebastic at debian.org>
+Forwarded: not-needed
+
+--- a/pycsw/__init__.py
++++ b/pycsw/__init__.py
+@@ -30,6 +30,6 @@
+ #
+ # =================================================================
+ 
+-import pkg_resources
++from importlib.metadata import version
+ 
+-__version__ = pkg_resources.require("pycsw")[0].version
++__version__ = version("pycsw")


=====================================
debian/patches/series
=====================================
@@ -6,3 +6,4 @@ interpreter-path.patch
 tests_config_path.patch
 apipkg.patch
 legacy-cgi.patch
+importlib.patch



View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/-/commit/527b4fdd1fd0e339381bd80053f22f2264066e80

-- 
View it on GitLab: https://salsa.debian.org/debian-gis-team/pycsw/-/commit/527b4fdd1fd0e339381bd80053f22f2264066e80
You're receiving this email because of your account on salsa.debian.org.


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


More information about the Pkg-grass-devel mailing list