Skip to content

Commit 39012c5

Browse files
authored
Merge pull request #3153 from effigies/fix/requirements
MNT: Update requirements.txt post-1.4
2 parents 7dd3b37 + 496299e commit 39012c5

File tree

3 files changed

+26
-11
lines changed

3 files changed

+26
-11
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ env:
2828
CI_SKIP_TEST=1
2929
- INSTALL_DEB_DEPENDECIES=true
3030
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
31-
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
31+
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS --upgrade"
3232
CI_SKIP_TEST=1
3333

3434
matrix:

requirements.txt

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
1+
# Auto-generated by tools/update_requirements.py
12
click>=6.6.0
2-
configparser
3-
funcsigs
4-
future>=0.16.0
53
networkx>=1.9
64
nibabel>=2.1.0
7-
numpy>=1.9.0
5+
numpy>=1.12 ; python_version < "3.7"
6+
numpy>=1.15.3 ; python_version >= "3.7"
87
packaging
9-
pathlib2
108
prov>=1.5.2
11-
lxml<4.4.0 ; python_version == "3.4"
12-
neurdflib
139
pydot>=1.2.3
1410
pydotplus
1511
python-dateutil>=2.2
1612
scipy>=0.14
1713
simplejson>=3.8.0
18-
traits>=4.6
19-
filelock>= 3.0.0
20-
etelemetry
14+
traits>=4.6,!=5.0
15+
filelock>=3.0.0
16+
etelemetry
17+
neurdflib

tools/update_requirements.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env python3
2+
from runpy import run_path
3+
from pathlib import Path
4+
5+
repo_root = Path(__file__).parent.parent
6+
info_file = repo_root / "nipype" / "info.py"
7+
reqs = repo_root / "requirements.txt"
8+
9+
info = run_path(info_file)
10+
requirements = info["REQUIRES"]
11+
12+
script_name = Path(__file__).relative_to(repo_root)
13+
14+
lines = [f"# Auto-generated by {script_name}", ""]
15+
16+
# Write requirements
17+
lines[1:-1] = requirements
18+
reqs.write_text("\n".join(lines))

0 commit comments

Comments
 (0)