File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 1+ # Auto-generated by tools/update_requirements.py
12click >= 6.6.0
23networkx >= 1.9
34nibabel >= 2.1.0
4- numpy >= 1.9.0 ; python_version < "3.7"
5+ numpy >= 1.12 ; python_version < "3.7"
56numpy >= 1.15.3 ; python_version >= "3.7"
67packaging
78prov >= 1.5.2
8- neurdflib
99pydot >= 1.2.3
1010pydotplus
1111python-dateutil >= 2.2
@@ -14,3 +14,4 @@ simplejson>=3.8.0
1414traits >= 4.6 ,!= 5.0
1515filelock >= 3.0.0
1616etelemetry
17+ neurdflib
Original file line number Diff line number Diff line change 1+ #!/usr/bin/env python3
2+ import sys
3+ from runpy import run_path
4+ from pathlib import Path
5+
6+ repo_root = Path (__file__ ).parent .parent
7+ info_file = repo_root / "nipype" / "info.py"
8+ reqs = repo_root / "requirements.txt"
9+ min_reqs = repo_root / "min-requirements.txt"
10+
11+ info = run_path (info_file )
12+ requirements = info ["REQUIRES" ]
13+
14+ script_name = Path (__file__ ).relative_to (repo_root )
15+
16+ lines = [f"# Auto-generated by { script_name } " , "" ]
17+
18+ # Write requirements
19+ lines [1 :- 1 ] = requirements
20+ reqs .write_text ("\n " .join (lines ))
You can’t perform that action at this time.
0 commit comments