Andreas Tille pushed to branch master at Debian Med / changeo
Commits: 02e38edb by Andreas Tille at 2026-11-16T08:57:43+01:00 Use importlib.resources from the standard library - - - - - 3 changed files: - debian/changelog - + debian/patches/fix_importlib_resources.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +changeo (1.3.5-2) UNRELEASED; urgency=medium + + * Team upload. + * Use importlib.resources from the standard library + + -- Andreas Tille <[email protected]> Mon, 16 Nov 2026 08:57:27 +0100 + changeo (1.3.5-1) unstable; urgency=medium * Team upload. ===================================== debian/patches/fix_importlib_resources.patch ===================================== @@ -0,0 +1,24 @@ +Author: Andreas Tille <[email protected]> +Last-Update: 2026-11-15 +Description: Use importlib.resources from the standard library + changeo/Distance.py imports open_text from the third-party + importlib_resources backport. The backport is not a dependency of the + Debian package, so DefineClones.py (and every other script importing + changeo.Distance) fails with + "ModuleNotFoundError: No module named 'importlib_resources'", + which breaks the autopkgtest. + . + importlib.resources has provided open_text since Python 3.7, so the + backport is unnecessary. Import from the standard library instead. + +--- a/changeo/Distance.py ++++ b/changeo/Distance.py +@@ -9,7 +9,7 @@ __author__ = 'Jason Anthony Vander Heide + import numpy as np + import pandas as pd + from itertools import combinations, product, zip_longest +-from importlib_resources import open_text ++from importlib.resources import open_text + from scipy.cluster.hierarchy import fcluster, linkage + from scipy.spatial.distance import squareform + ===================================== debian/patches/series ===================================== @@ -1 +1,2 @@ rm-setuptools.patch +fix_importlib_resources.patch View it on GitLab: https://salsa.debian.org/med-team/changeo/-/commit/02e38edb7568935e2096c2ee77ce41b34ca4fc62 -- View it on GitLab: https://salsa.debian.org/med-team/changeo/-/commit/02e38edb7568935e2096c2ee77ce41b34ca4fc62 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
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
