Étienne Mollier pushed to branch master at Debian Med / fastaq
Commits: 79787f75 by Étienne Mollier at 2024-10-16T11:14:17+02:00 remove-pkg_resources.patch: new: implement importlib.metadata. Closes: #1083383 - - - - - 1eb95b17 by Étienne Mollier at 2024-10-16T11:16:08+02:00 Ready for upload to unstable. - - - - - 3 changed files: - debian/changelog - + debian/patches/remove-pkg_resources.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,11 @@ +fastaq (3.17.0-8) unstable; urgency=medium + + * Team upload. + * remove-pkg_resources.patch: new: implement importlib.metadata. + (Closes: #1083383) + + -- Étienne Mollier <[email protected]> Wed, 16 Oct 2024 11:14:26 +0200 + fastaq (3.17.0-7) unstable; urgency=medium * Drop (Build-)Depends: python3-pkg-resources ===================================== debian/patches/remove-pkg_resources.patch ===================================== @@ -0,0 +1,33 @@ +Description: replace deprecated pkg_resources to importlib.metadata + The pkg_resources module is deprecated[1], and obsoleted in the + upcoming Python 3.13. This change replaces the use of pkg_resources to + obtain the module version from egg info files by importlib.metadata[2], + available since Python 3.8. + . + [1]: https://setuptools.pypa.io/en/latest/pkg_resources.html + [2]: https://docs.python.org/3.11/library/importlib.metadata.html#module-importlib.metadata +Author: Étienne Mollier <[email protected]> +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083383 +Forwarded: https://github.com/sanger-pathogens/Fastaq/pull/85 +Last-Update: 2024-10-16 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- fastaq.orig/pyfastaq/__init__.py ++++ fastaq/pyfastaq/__init__.py +@@ -1,9 +1,12 @@ +-from pkg_resources import get_distribution +- + try: +- __version__ = get_distribution('pyfastaq').version ++ from importlib.metadata import Distribution ++ __version__ = Distribution().from_name('pyfastaq').version + except: +- __version__ = 'local' ++ try: ++ from pkg_resources import get_distribution ++ __version__ = get_distribution('pyfastaq').version ++ except: ++ __version__ = 'local' + + + ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ tests +remove-pkg_resources.patch View it on GitLab: https://salsa.debian.org/med-team/fastaq/-/compare/001e1f9f00ad7011ef076bbda807ac8d4291edb8...1eb95b1792d73384cd4422c79c13263caad56eb3 -- View it on GitLab: https://salsa.debian.org/med-team/fastaq/-/compare/001e1f9f00ad7011ef076bbda807ac8d4291edb8...1eb95b1792d73384cd4422c79c13263caad56eb3 You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
