[med-svn] [Git][med-team/nipype][master] fix FTBFS, wip...
Alexandre Detiste (@detiste-guest)
gitlab at salsa.debian.org
Fri Aug 30 20:42:50 BST 2024
Alexandre Detiste pushed to branch master at Debian Med / nipype
Commits:
6ef3867e by Alexandre Detiste at 2024-08-30T21:40:17+02:00
fix FTBFS, wip...
- - - - -
2 changed files:
- + debian/patches/remove-dead-code.patch
- debian/patches/series
Changes:
=====================================
debian/patches/remove-dead-code.patch
=====================================
@@ -0,0 +1,52 @@
+Subject: remove dead code that import removed numpy.testing.dec
+
+--- a/nipype/testing/decorators.py
++++ b/nipype/testing/decorators.py
+@@ -4,7 +4,6 @@
+ """
+ Extend numpy's decorators to use nipype's gui and data labels.
+ """
+-from numpy.testing import dec
+
+ from nibabel.data import DataError
+
+@@ -70,29 +69,3 @@
+ # For tests that need further review
+
+
+-def needs_review(msg):
+- """Skip a test that needs further review.
+-
+- Parameters
+- ----------
+- msg : string
+- msg regarding the review that needs to be done
+- """
+-
+- def skip_func(func):
+- return dec.skipif(True, msg)(func)
+-
+- return skip_func
+-
+-
+-# Easier version of the numpy knownfailure
+-def knownfailure(f):
+- return dec.knownfailureif(True)(f)
+-
+-
+-def if_datasource(ds, msg):
+- try:
+- ds.get_filename()
+- except DataError:
+- return dec.skipif(True, msg)
+- return lambda f: f
+--- a/nipype/testing/__init__.py
++++ b/nipype/testing/__init__.py
+@@ -19,7 +19,6 @@
+ from . import decorators
+ from .utils import package_check, TempFATFS
+
+-skipif = decorators.dec.skipif
+
+
+ def example_data(infile="functional.nii"):
=====================================
debian/patches/series
=====================================
@@ -9,3 +9,4 @@ sphinx.patch
fix-transpose.patch
reproducible-build.patch
fix-privacy-breaches.patch
+remove-dead-code.patch
View it on GitLab: https://salsa.debian.org/med-team/nipype/-/commit/6ef3867e1c5804a0e3d72d5bd75073e9d43bc778
--
View it on GitLab: https://salsa.debian.org/med-team/nipype/-/commit/6ef3867e1c5804a0e3d72d5bd75073e9d43bc778
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/20240830/49641e9a/attachment-0001.htm>
More information about the debian-med-commit
mailing list