[med-svn] [Git][med-team/nibabel][master] 7 commits: scipy-1.16.patch: new: fix tests with scipy 1.16.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Fri Oct 24 20:24:39 BST 2025



Étienne Mollier pushed to branch master at Debian Med / nibabel


Commits:
54a7841e by Étienne Mollier at 2025-10-24T21:19:17+02:00
scipy-1.16.patch: new: fix tests with scipy 1.16.

Closes: #1109953

- - - - -
b8eede75 by Étienne Mollier at 2025-10-24T21:19:50+02:00
d/patches/*: normalize Last-Update timestamp.

- - - - -
f6468b00 by Étienne Mollier at 2025-10-24T21:21:21+02:00
d/watch: convert to v5 Github template.

- - - - -
4a9a16d4 by Étienne Mollier at 2025-10-24T21:22:36+02:00
scipy-1.16.patch: dep3 header.

Gbp-Dch: ignore

- - - - -
9505de41 by Étienne Mollier at 2025-10-24T21:23:19+02:00
d/control: drop redundant Rules-Requires-Root: no.

- - - - -
880650b1 by Étienne Mollier at 2025-10-24T21:23:38+02:00
d/control: declare compliance to standards version 4.7.2.

- - - - -
0bcfa7bb by Étienne Mollier at 2025-10-24T21:24:08+02:00
d/changelog: ready for upload to unstable.

- - - - -


8 changed files:

- debian/changelog
- debian/control
- debian/patches/deb_localmathjax
- debian/patches/deb_notexext
- debian/patches/python3.10.patch
- + debian/patches/scipy-1.16.patch
- debian/patches/series
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+nibabel (5.3.2-3) unstable; urgency=medium
+
+  * scipy-1.16.patch: new: fix tests with scipy 1.16. (Closes: #1109953)
+  * d/patches/*: normalize Last-Update timestamp.
+  * d/watch: convert to v5 Github template.
+  * d/control: drop redundant Rules-Requires-Root: no.
+  * d/control: declare compliance to standards version 4.7.2.
+
+ -- Étienne Mollier <emollier at debian.org>  Fri, 24 Oct 2025 21:23:58 +0200
+
 nibabel (5.3.2-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -23,11 +23,10 @@ Build-Depends: debhelper-compat (= 13),
                python3-numpydoc,
                python3-pytest <!nocheck>,
                python3-pytest-httpserver <!nocheck>
-Standards-Version: 4.7.0
+Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/nibabel
 Vcs-Git: https://salsa.debian.org/med-team/nibabel.git
 Homepage: https://nipy.org/nibabel/
-Rules-Requires-Root: no
 
 Package: python3-nibabel
 Architecture: all


=====================================
debian/patches/deb_localmathjax
=====================================
@@ -1,5 +1,5 @@
 Author: Yaroslav O. Halchenko
-Last-Update: 2015-11-02 11:35:58 -0500
+Last-Update: 2015-11-02
 Description: Use Debian packaged MathJax
 
 --- a/doc/source/conf.py


=====================================
debian/patches/deb_notexext
=====================================
@@ -1,5 +1,5 @@
 Author: Yaroslav O. Halchenko
-Last-Update: 2016-07-28 22:47:34 -0400
+Last-Update: 2016-07-28
 Description:  Do not fail if there is no texext extension for sphinx
 
 --- a/doc/source/conf.py


=====================================
debian/patches/python3.10.patch
=====================================
@@ -2,7 +2,7 @@ Description: Fix Python3.10 issue
  The 'str' type is expected to always be encoded utf-8, so it is not possible to
  decode an from any other encodings anymore.
 Author: Étienne Mollier <emollier at emlwks999.eu>
-Last-Update: Wed, 22 Dec 2021 23:11:18 +0100
+Last-Update: 2021-12-22
 Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868229#65
 
 --- a/nibabel/cmdline/dicomfs.py


=====================================
debian/patches/scipy-1.16.patch
=====================================
@@ -0,0 +1,29 @@
+Description: fix test failures with scipy 1.16.
+Author: Étienne Mollier <emollier at debian.org>
+Bug: https://github.com/nipy/nibabel/issues/1428
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1109953
+Last-Update: 2025-10-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- nibabel.orig/nibabel/tests/test_processing.py
++++ nibabel/nibabel/tests/test_processing.py
+@@ -169,8 +169,7 @@
+     exp_out[1:, :, :] = data[1, :, :]
+     assert_almost_equal(out.dataobj, exp_out)
+     out = resample_from_to(img, trans_p_25_img)
+-    with pytest.warns(UserWarning):  # Suppress scipy warning
+-        exp_out = spnd.affine_transform(data, [1, 1, 1], [-0.25, 0, 0], order=3)
++    exp_out = spnd.affine_transform(data, [1, 1, 1], [-0.25, 0, 0], order=3)
+     assert_almost_equal(out.dataobj, exp_out)
+     # Test cval
+     out = resample_from_to(img, trans_img, cval=99)
+@@ -275,8 +274,7 @@
+     assert_array_equal(out_img.dataobj, np.flipud(data))
+     # Subsample voxels
+     out_img = resample_to_output(Nifti1Image(data, np.diag([4, 5, 6, 1])))
+-    with pytest.warns(UserWarning):  # Suppress scipy warning
+-        exp_out = spnd.affine_transform(data, [1 / 4, 1 / 5, 1 / 6], output_shape=(5, 11, 19))
++    exp_out = spnd.affine_transform(data, [1 / 4, 1 / 5, 1 / 6], output_shape=(5, 11, 19))
+     assert_array_equal(out_img.dataobj, exp_out)
+     # Unsubsample with voxel sizes
+     out_img = resample_to_output(Nifti1Image(data, np.diag([4, 5, 6, 1])), [4, 5, 6])


=====================================
debian/patches/series
=====================================
@@ -5,3 +5,4 @@ python3.10.patch
 skip-test-removalschedule.patch
 skip-armel-test-nan2zero.patch
 pr1383.patch
+scipy-1.16.patch


=====================================
debian/watch
=====================================
@@ -1,4 +1,5 @@
-# Compulsory line, this is a version 3 file
-version=4
-opts=filenamemangle=s/.+\/v?(.*)\.tar\.gz/nibabel-$1.tar.gz/ \
-  https://github.com/nipy/nibabel/tags .*/v?(\d[\d\.]+)\.tar\.gz
+Version: 5
+
+Template: Github
+Owner: nipy
+Project: nibabel



View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/71c68e928fc54eb66fbfaf8a0791ce557ff2861d...0bcfa7bb9f11377273b35d118abaff7d3a70fdbf

-- 
View it on GitLab: https://salsa.debian.org/med-team/nibabel/-/compare/71c68e928fc54eb66fbfaf8a0791ce557ff2861d...0bcfa7bb9f11377273b35d118abaff7d3a70fdbf
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/20251024/ee87af57/attachment-0001.htm>


More information about the debian-med-commit mailing list