Skip to content

Commit 42b1239

Browse files
authored
Merge pull request #2961 from oesteban/maint/reorder-deps
MAINT: Sort dependencies alphabetically
2 parents b1eb3ee + 772d0c8 commit 42b1239

File tree

3 files changed

+53
-49
lines changed

3 files changed

+53
-49
lines changed

nipype/info.py

+24-21
Original file line numberDiff line numberDiff line change
@@ -135,48 +135,51 @@ def get_nipype_gitversion():
135135
VERSION = __version__
136136
PROVIDES = ['nipype']
137137
REQUIRES = [
138-
'nibabel>=%s' % NIBABEL_MIN_VERSION,
139-
'networkx>=%s,<=%s ; python_version < "3.0"' % (NETWORKX_MIN_VERSION, NETWORKX_MAX_VERSION_27),
138+
'click>=%s' % CLICK_MIN_VERSION,
139+
'configparser; python_version <= "3.4"',
140+
'funcsigs',
141+
'future>=%s' % FUTURE_MIN_VERSION,
142+
'futures; python_version == "2.7"',
140143
'networkx>=%s ; python_version >= "3.0"' % NETWORKX_MIN_VERSION,
141-
'numpy>=%s,!=%s ; python_version == "2.7"' % (NUMPY_MIN_VERSION, NUMPY_BAD_VERSION_27),
144+
'networkx>=%s,<=%s ; python_version < "3.0"' % (NETWORKX_MIN_VERSION, NETWORKX_MAX_VERSION_27),
145+
'nibabel>=%s' % NIBABEL_MIN_VERSION,
142146
'numpy>=%s ; python_version > "3.0" and python_version < "3.7"' % NUMPY_MIN_VERSION,
143147
'numpy>=%s ; python_version >= "3.7"' % NUMPY_MIN_VERSION_37,
148+
'numpy>=%s,!=%s ; python_version == "2.7"' % (NUMPY_MIN_VERSION, NUMPY_BAD_VERSION_27),
149+
'packaging',
150+
'pathlib2; python_version <= "3.4"',
151+
'prov>=%s' % PROV_VERSION,
152+
'pydot>=%s' % PYDOT_MIN_VERSION,
153+
'pydotplus',
144154
'python-dateutil>=%s' % DATEUTIL_MIN_VERSION,
145155
'scipy>=%s' % SCIPY_MIN_VERSION,
146-
'traits>=%s,!=5.0' % TRAITS_MIN_VERSION,
147-
'future>=%s' % FUTURE_MIN_VERSION,
148156
'simplejson>=%s' % SIMPLEJSON_MIN_VERSION,
149-
'prov>=%s' % PROV_VERSION,
150-
'neurdflib',
151-
'click>=%s' % CLICK_MIN_VERSION,
152-
'funcsigs',
153-
'pydotplus',
154-
'pydot>=%s' % PYDOT_MIN_VERSION,
155-
'packaging',
156-
'futures; python_version == "2.7"',
157-
'configparser; python_version <= "3.4"',
158-
'pathlib2; python_version <= "3.4"',
157+
'traits>=%s,!=5.0' % TRAITS_MIN_VERSION,
159158
]
160159

160+
# neurdflib has to come after prov
161+
# https://github.com/nipy/nipype/pull/2961#issuecomment-512035484
162+
REQUIRES += ['neurdflib']
163+
161164
TESTS_REQUIRES = [
165+
'codecov',
166+
'coverage<5',
162167
'mock',
163168
'pytest',
164169
'pytest-cov',
165-
'codecov',
166170
'pytest-env',
167-
'coverage<5'
168171
]
169172

170173
EXTRA_REQUIRES = {
171174
'doc': ['Sphinx>=1.4', 'numpydoc', 'matplotlib', 'pydotplus', 'pydot>=1.2.3'],
172-
'tests': TESTS_REQUIRES,
173-
'specs': ['yapf'],
175+
'duecredit': ['duecredit'],
174176
'nipy': ['nitime', 'nilearn<0.5.0', 'dipy', 'nipy', 'matplotlib'],
175177
'profiler': ['psutil>=5.0'],
176-
'duecredit': ['duecredit'],
177-
'xvfbwrapper': ['xvfbwrapper'],
178178
'pybids': ['pybids>=0.7.0'],
179+
'specs': ['yapf'],
179180
'ssh': ['paramiko'],
181+
'tests': TESTS_REQUIRES,
182+
'xvfbwrapper': ['xvfbwrapper'],
180183
# 'mesh': ['mayavi'] # Enable when it works
181184
}
182185

requirements.txt

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
numpy>=1.9.0
2-
scipy>=0.14
1+
click>=6.6.0
2+
configparser
3+
funcsigs
4+
future>=0.16.0
35
networkx>=1.9
4-
traits>=4.6
5-
python-dateutil>=2.2
66
nibabel>=2.1.0
7-
future>=0.16.0
8-
simplejson>=3.8.0
7+
numpy>=1.9.0
8+
packaging
9+
pathlib2
910
prov>=1.5.2
1011
neurdflib
11-
click>=6.6.0
12-
funcsigs
13-
configparser
14-
pathlib2
15-
pydotplus
1612
pydot>=1.2.3
17-
packaging
13+
pydotplus
14+
python-dateutil>=2.2
15+
scipy>=0.14
16+
simplejson>=3.8.0
17+
traits>=4.6

rtd_requirements.txt

+17-16
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1-
numpy>=1.9.0
2-
scipy>=0.14
3-
networkx>=1.9
4-
traits>=4.6
5-
python-dateutil>=2.2
6-
nibabel>=2.1.0
7-
future>=0.16.0
8-
simplejson>=3.8.0
9-
prov==1.5.0
10-
funcsigs
111
configparser
12-
pytest>=3.0
13-
mock
14-
pydotplus
15-
pydot>=1.2.3
16-
psutil
2+
funcsigs
3+
future>=0.16.0
174
matplotlib
18-
packaging
5+
mock
6+
networkx>=1.9
7+
nibabel>=2.1.0
8+
numpy>=1.9.0
199
numpydoc
10+
packaging
11+
prov>=1.5.2
12+
neurdflib
13+
psutil
14+
pydot>=1.2.3
15+
pydotplus
16+
pytest>=3.0
17+
python-dateutil>=2.2
18+
scipy>=0.14
19+
simplejson>=3.8.0
20+
traits>=4.6

0 commit comments

Comments
 (0)