16
16
"pydra-afni" ,
17
17
],
18
18
"mriqc" : [
19
+ "nipype2pydra" ,
19
20
"pydra-ants" ,
20
21
"pydra-afni" ,
21
22
"pydra-fsl" ,
22
23
"pydra-mrtrix3 >=3.0.3a0" ,
23
24
"fileformats-medimage-afni-extras" ,
24
25
"fileformats-medimage-mrtrix3-extras" ,
25
26
"fileformats-medimage-fsl-extras" ,
27
+ "statsmodels" ,
28
+ "dipy" ,
29
+ "bids" ,
30
+ "pydra-niworkflows" ,
31
+ "pydra-nireports" ,
32
+ "matplotlib" ,
33
+ "seaborn" ,
34
+ "templateflow" ,
35
+ "nilearn" ,
36
+ # "nibael",
37
+ # "nilearn",
38
+ # "migas >= 0.4.0",
39
+ # "pandas ~=1.0",
40
+ # "pydra >=0.22",
41
+ # "PyYAML",
42
+ # "scikit-learn",
43
+ # "scipy",
44
+ # "statsmodel",
45
+ # "torch",
26
46
],
27
47
}
28
48
@@ -32,7 +52,7 @@ def package_spec(request):
32
52
return EXAMPLE_PKG_GEN_DIR / f"{ request .param } .yaml"
33
53
34
54
35
- @pytest .mark .xfail (reason = "Fails due to missing dependencies on PyPI " )
55
+ @pytest .mark .xfail (reason = "Don't have time to debug at the moment " )
36
56
def test_package_complete (package_spec , cli_runner , tmp_path , tasks_template_args ):
37
57
pkg_name = package_spec .stem
38
58
repo_output = tmp_path / "repo"
@@ -79,19 +99,15 @@ def test_package_complete(package_spec, cli_runner, tmp_path, tasks_template_arg
79
99
80
100
sp .check_call ([sys .executable , "-m" , "venv" , str (venv_path )])
81
101
pip_cmd = [venv_python , "-m" , "pip" , "install" , "-e" , str (pkg_root ) + "[test]" ]
82
- try :
83
- sp .check_call (pip_cmd )
84
- except sp .CalledProcessError :
85
- raise RuntimeError (
86
- f"Failed to install package { pkg_name } with command:\n { ' ' .join (pip_cmd )} "
87
- )
88
- pytest_cmd = [venv_pytest , str (pkg_root )]
89
- try :
90
- pytest_output = sp .check_output (pytest_cmd )
91
- except sp .CalledProcessError :
92
- raise RuntimeError (
93
- f"Tests of generated package '{ pkg_name } ' failed when running:\n { ' ' .join (pytest_cmd )} "
94
- )
95
-
96
- assert "fail" not in pytest_output
97
- assert "error" not in pytest_output
102
+ p = sp .Popen (pip_cmd , stdout = sp .PIPE , stderr = sp .STDOUT )
103
+ pip_output , _ = p .communicate ()
104
+ pip_output = pip_output .decode ("utf-8" )
105
+ assert (
106
+ not p .returncode
107
+ ), f"Failed to install package pydra-{ pkg_name } with command:\n { ' ' .join (pip_cmd )} :\n \n { pip_output } "
108
+ p = sp .Popen ([venv_pytest , str (pkg_root )], stderr = sp .PIPE , stdout = sp .STDOUT )
109
+ pytest_output , _ = p .communicate ()
110
+ pytest_output = pytest_output .decode ("utf-8" )
111
+ assert (
112
+ p .returncode
113
+ ), f"Tests for pydra-{ pkg_name } package (\n { ' ' .join (pip_cmd )} ) failed:\n \n { pytest_output } "
0 commit comments