Étienne Mollier pushed to branch master at Debian Med / nibabel
Commits: 7876241b by Étienne Mollier at 2025-12-04T21:14:42+01:00 python3.14.patch: fix failures with python3.14. Closes: #1121007 - - - - - ae6db23d by Étienne Mollier at 2025-12-04T21:15:39+01:00 d/changelog: ready for upload to unstable. - - - - - 3 changed files: - debian/changelog - + debian/patches/python3.14.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +nibabel (5.3.2-4) unstable; urgency=medium + + * python3.14.patch: fix failures with python3.14. (Closes: #1121007) + + -- Étienne Mollier <[email protected]> Thu, 04 Dec 2025 21:15:31 +0100 + nibabel (5.3.2-3) unstable; urgency=medium * scipy-1.16.patch: new: fix tests with scipy 1.16. (Closes: #1109953) ===================================== debian/patches/python3.14.patch ===================================== @@ -0,0 +1,35 @@ +Description: fix test failures with python3.14. + Adapt to functools.partial becoming a method descriptor in Python 3.14 + . + There is a second part for the patch, making adjustments to the + argument parser invocation, following changes to argparse with the new + interpreter version. +Author: Ben Beasley +Origin: upstream, https://github.com/nipy/nibabel/pull/1391 +Bug: https://github.com/nipy/nibabel/issues/1390 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1121007 +Reviewed-by: Étienne Mollier <[email protected]> +Last-Update: 2025-12-04 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- nibabel.orig/nibabel/tests/test_deprecator.py ++++ nibabel/nibabel/tests/test_deprecator.py +@@ -161,7 +161,7 @@ + class TestDeprecatorMaker: + """Test deprecator class creation with custom warnings and errors""" + +- dep_maker = partial(Deprecator, cmp_func) ++ dep_maker = staticmethod(partial(Deprecator, cmp_func)) + + def test_deprecator_maker(self): + dec = self.dep_maker(warn_class=UserWarning) +--- nibabel.orig/nibabel/cmdline/roi.py ++++ nibabel/nibabel/cmdline/roi.py +@@ -44,6 +44,7 @@ + if args is None: + args = sys.argv[1:] + parser = argparse.ArgumentParser( ++ prog=os.path.basename(sys.argv[0]), + description='Crop images to a region of interest', + epilog='If a start or stop value is omitted, the start or end of the axis is assumed.', + ) ===================================== debian/patches/series ===================================== @@ -6,3 +6,4 @@ skip-test-removalschedule.patch skip-armel-test-nan2zero.patch pr1383.patch scipy-1.16.patch +python3.14.patch View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/0bcfa7bb9f11377273b35d118abaff7d3a70fdbf...ae6db23dd800e821bb04050d35317a5fe4563e86 -- View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/0bcfa7bb9f11377273b35d118abaff7d3a70fdbf...ae6db23dd800e821bb04050d35317a5fe4563e86 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
