Skip to content

MNT: Update requirements.txt post-1.4 #3153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ env:
CI_SKIP_TEST=1
- INSTALL_DEB_DEPENDECIES=true
NIPYPE_EXTRAS="doc,tests,nipy,profiler"
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS"
EXTRA_PIP_FLAGS="--pre $EXTRA_PIP_FLAGS --find-links $PRE_WHEELS --upgrade"
CI_SKIP_TEST=1

matrix:
Expand Down
17 changes: 7 additions & 10 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
# Auto-generated by tools/update_requirements.py
click>=6.6.0
configparser
funcsigs
future>=0.16.0
networkx>=1.9
nibabel>=2.1.0
numpy>=1.9.0
numpy>=1.12 ; python_version < "3.7"
numpy>=1.15.3 ; python_version >= "3.7"
packaging
pathlib2
prov>=1.5.2
lxml<4.4.0 ; python_version == "3.4"
neurdflib
pydot>=1.2.3
pydotplus
python-dateutil>=2.2
scipy>=0.14
simplejson>=3.8.0
traits>=4.6
filelock>= 3.0.0
etelemetry
traits>=4.6,!=5.0
filelock>=3.0.0
etelemetry
neurdflib
18 changes: 18 additions & 0 deletions tools/update_requirements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env python3
from runpy import run_path
from pathlib import Path

repo_root = Path(__file__).parent.parent
info_file = repo_root / "nipype" / "info.py"
reqs = repo_root / "requirements.txt"

info = run_path(info_file)
requirements = info["REQUIRES"]

script_name = Path(__file__).relative_to(repo_root)

lines = [f"# Auto-generated by {script_name}", ""]

# Write requirements
lines[1:-1] = requirements
reqs.write_text("\n".join(lines))