[med-svn] [Git][med-team/nipy][master] 5 commits: bool-type-error.patch: new: fix test failures.

Étienne Mollier (@emollier) gitlab at salsa.debian.org
Fri Oct 24 21:42:16 BST 2025



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


Commits:
707589df by Étienne Mollier at 2025-10-24T22:30:01+02:00
bool-type-error.patch: new: fix test failures.

Closes: #1117755

- - - - -
19279af9 by Étienne Mollier at 2025-10-24T22:32:46+02:00
d/watch: convert to v5 Github template.

- - - - -
4460c769 by Étienne Mollier at 2025-10-24T22:33:18+02:00
d/control: drop redundant Rules-Requires-Root: no.

- - - - -
e204787d by Étienne Mollier at 2025-10-24T22:40:35+02:00
d/rules: enable binaries hardening.

- - - - -
1abc7dfe by Étienne Mollier at 2025-10-24T22:41:42+02:00
d/changelog: ready for upload to unstable.

- - - - -


6 changed files:

- debian/changelog
- debian/control
- + debian/patches/bool-type-error.patch
- debian/patches/series
- debian/rules
- debian/watch


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+nipy (0.6.1-3) unstable; urgency=medium
+
+  * bool-type-error.patch: new: fix test failures. (Closes: #1117755)
+  * d/watch: convert to v5 Github template.
+  * d/control: drop redundant Rules-Requires-Root: no.
+  * d/rules: enable binaries hardening.
+
+ -- Étienne Mollier <emollier at debian.org>  Fri, 24 Oct 2025 22:41:20 +0200
+
 nipy (0.6.1-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -32,7 +32,6 @@ Standards-Version: 4.7.2
 Vcs-Browser: https://salsa.debian.org/med-team/nipy
 Vcs-Git: https://salsa.debian.org/med-team/nipy.git
 Homepage: https://nipy.org/nipy/
-Rules-Requires-Root: no
 
 Package: python3-nipy
 Architecture: all


=====================================
debian/patches/bool-type-error.patch
=====================================
@@ -0,0 +1,37 @@
+Description: cast masks to np.int8.
+ This fixes test failures with numpy 2.3.0.
+Author: Étienne Mollier <emollier at debian.org>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1117755
+Forwarded: https://github.com/nipy/nipy/pull/590
+Last-Update: 2025-10-24
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- nipy.orig/nipy/labs/viz_tools/coord_tools.py
++++ nipy/nipy/labs/viz_tools/coord_tools.py
+@@ -91,7 +91,7 @@
+         map = np.asarray(map)
+     my_map = map.copy()
+     if mask is not None:
+-        slice_x, slice_y, slice_z = ndimage.find_objects(mask)[0]
++        slice_x, slice_y, slice_z = ndimage.find_objects(np.int8(mask))[0]
+         my_map = my_map[slice_x, slice_y, slice_z]
+         mask = mask[slice_x, slice_y, slice_z]
+         my_map *= mask
+@@ -104,7 +104,7 @@
+                                     np.abs(my_map[my_map !=0]).ravel(), 80)
+     mask = np.abs(my_map) > activation_threshold-1.e-15
+     mask = largest_cc(mask)
+-    slice_x, slice_y, slice_z = ndimage.find_objects(mask)[0]
++    slice_x, slice_y, slice_z = ndimage.find_objects(np.int8(mask))[0]
+     my_map = my_map[slice_x, slice_y, slice_z]
+     mask = mask[slice_x, slice_y, slice_z]
+     my_map *= mask
+@@ -132,7 +132,7 @@
+         The affine should be diagonal or diagonal-permuted.
+     """
+     (xmin, xmax), (ymin, ymax), (zmin, zmax) = get_bounds(mask.shape, affine)
+-    slices = ndimage.find_objects(mask)
++    slices = ndimage.find_objects(np.int8(mask))
+     if len(slices) == 0:
+         warnings.warn("empty mask", stacklevel=2)
+     else:


=====================================
debian/patches/series
=====================================
@@ -1,2 +1,3 @@
 local-mathjax.patch
 0002-FIX-Remove-deprecated-Numpy-C-API-macros.patch
+bool-type-error.patch


=====================================
debian/rules
=====================================
@@ -7,7 +7,7 @@ include /usr/share/dpkg/default.mk
 
 PYVER = $(shell py3versions -vd)
 export PYBUILD_NAME = nipy
-
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 export NIPY_EXTERNAL_LAPACK=1
 
 # stop matplotlib from thinking it should display plots


=====================================
debian/watch
=====================================
@@ -1,3 +1,6 @@
-version=4
-opts="uversionmangle=s/rc/~rc/, filenamemangle=s%(?:.*?)?(\d[\d.]*)\.tar\.gz%@PACKAGE at -$1.tar.gz%" \
-  https://github.com/nipy/nipy//tags (?:.*?/)?v?@ANY_VERSION@\.tar\.gz
+Version: 5
+
+Template: Github
+Owner: nipy
+Project: nipy
+Uversionmangle: s/rc/~rc/



View it on GitLab: https://salsa.debian.org/med-team/nipy/-/compare/4c689bd06f5144866f26177def7bd8e3de37511a...1abc7dfe7ef115df217c47f504d4ec9a44d2a9e3

-- 
View it on GitLab: https://salsa.debian.org/med-team/nipy/-/compare/4c689bd06f5144866f26177def7bd8e3de37511a...1abc7dfe7ef115df217c47f504d4ec9a44d2a9e3
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/bc5a54f8/attachment-0001.htm>


More information about the debian-med-commit mailing list