-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse setup requirements from requirements.txt
- Loading branch information
Showing
2 changed files
with
23 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
argparse | ||
nibabel>=2.5.1 | ||
six | ||
scikit-learn | ||
bspline | ||
matplotlib | ||
numpy | ||
scipy>=1.3.2 | ||
pandas>=0.25.3 | ||
torch>=1.1.0 | ||
sphinx-tabs | ||
pymc>=5.1.0 | ||
arviz==0.13.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,14 @@ | ||
from setuptools import setup, find_packages | ||
|
||
|
||
def parse_requirements(filename): | ||
"""Load requirements from a pip requirements file.""" | ||
with open(filename, 'r') as f: | ||
lineiter = (line.strip() for line in f) | ||
return [line for line in lineiter if line and not line.startswith("#")] | ||
|
||
requirements = parse_requirements('requirements.txt') | ||
|
||
setup(name='pcntoolkit', | ||
version='0.29', | ||
description='Predictive Clinical Neuroscience toolkit', | ||
|
@@ -8,19 +17,5 @@ | |
author_email='[email protected]', | ||
license='GNU GPLv3', | ||
packages=find_packages(), | ||
install_requires=[ | ||
'argparse', | ||
'nibabel>=2.5.1', | ||
'six', | ||
'scikit-learn', | ||
'bspline', | ||
'matplotlib', | ||
'numpy', | ||
'scipy>=1.3.2', | ||
'pandas>=0.25.3', | ||
'torch>=1.1.0', | ||
'sphinx-tabs', | ||
'pymc>=5.1.0', | ||
'arviz==0.13.0' | ||
], | ||
install_requires=requirements, | ||
zip_safe=False) |