Skip to content

Commit 73f657f

Browse files
committed
REF: Require Pandas for tests
Ref #3290 (comment)
1 parent 19078a4 commit 73f657f

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

nipype/info.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,12 @@ def get_nipype_gitversion():
9999
"""
100100

101101
# versions
102-
NIBABEL_MIN_VERSION = "3.0"
103-
NETWORKX_MIN_VERSION = "2.5"
104-
NUMPY_MIN_VERSION = "1.21"
105-
SCIPY_MIN_VERSION = "1.8"
106-
TRAITS_MIN_VERSION = "6.2"
102+
NIBABEL_MIN_VERSION = "2.1.0"
103+
NETWORKX_MIN_VERSION = "2.0"
104+
NUMPY_MIN_VERSION = "1.17"
105+
NUMPY_MAX_VERSION = "2.0"
106+
SCIPY_MIN_VERSION = "0.14"
107+
TRAITS_MIN_VERSION = "4.6"
107108
DATEUTIL_MIN_VERSION = "2.2"
108109
SIMPLEJSON_MIN_VERSION = "3.8.0"
109110
PROV_MIN_VERSION = "1.5.2"
@@ -153,6 +154,7 @@ def get_nipype_gitversion():
153154

154155
TESTS_REQUIRES = [
155156
"coverage >= 5.2.1",
157+
"pandas > 1.5.0, <= 2.0",
156158
"pytest >= 6",
157159
"pytest-cov >=2.11",
158160
"pytest-env",

nipype/pipeline/plugins/tests/test_callback.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
import nipype.interfaces.utility as niu
99
import nipype.pipeline.engine as pe
1010

11-
try:
12-
import pandas
13-
14-
has_pandas = True
15-
except ImportError:
16-
has_pandas = False
17-
1811

1912
def func():
2013
return
@@ -71,7 +64,6 @@ def test_callback_exception(tmpdir, plugin, stop_on_first_crash):
7164

7265

7366
@pytest.mark.parametrize("plugin", ["Linear", "MultiProc", "LegacyMultiProc"])
74-
@pytest.mark.skipif(not has_pandas, reason="Test requires pandas")
7567
def test_callback_gantt(tmp_path: Path, plugin: str) -> None:
7668
import logging
7769

0 commit comments

Comments
 (0)