Skip to content

Commit

Permalink
Parse setup requirements from requirements.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
AuguB committed Dec 8, 2023
1 parent 8036dc6 commit e9cdf40
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
13 changes: 13 additions & 0 deletions requirements.txt
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
25 changes: 10 additions & 15 deletions setup.py
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',
Expand All @@ -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)

0 comments on commit e9cdf40

Please sign in to comment.