[med-svn] [Git][med-team/circlator][master] patch-out undeclared use of pkg_resources
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Sun Feb 16 21:24:13 GMT 2025
Alexandre Detiste pushed to branch master at Debian Med / circlator
Commits:
e338e1d6 by Alexandre Detiste at 2025-02-16T22:23:59+01:00
patch-out undeclared use of pkg_resources
- - - - -
2 changed files:
- + debian/patches/remove-undeclared-pkg-resources.patch
- debian/patches/series
Changes:
=====================================
debian/patches/remove-undeclared-pkg-resources.patch
=====================================
@@ -0,0 +1,12 @@
+--- a/circlator/__init__.py
++++ b/circlator/__init__.py
+@@ -1,7 +1,7 @@
+-from pkg_resources import get_distribution
++from importlib.metadata import version
+
+ try:
+- __version__ = get_distribution('circlator').version
++ __version__ = version('circlator')
+ except:
+ __version__ = 'local'
+
=====================================
debian/patches/series
=====================================
@@ -3,3 +3,4 @@ switch-to-pytest.patch
split_canu_tests
remove-distutils.patch
python3.12-syntax.patch
+remove-undeclared-pkg-resources.patch
View it on GitLab: https://salsa.debian.org/med-team/circlator/-/commit/e338e1d69c76aa5a2214e5ddbe10d327d07fa472
--
View it on GitLab: https://salsa.debian.org/med-team/circlator/-/commit/e338e1d69c76aa5a2214e5ddbe10d327d07fa472
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/debian-med-commit/attachments/20250216/1b211b7f/attachment-0001.htm>
More information about the debian-med-commit
mailing list