Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Commit

Permalink
Fixing setup and reqs.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
perone committed Jul 10, 2018
1 parent fd06a26 commit 046b2ff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
7 changes: 7 additions & 0 deletions sct_dbtool/requirements.txt
@@ -0,0 +1,7 @@
setuptools>=0.6c11
docopt>=0.6.2
requests>=2.19.1
tqdm>=4.23.0
jinja2>=2.10
nibabel>=2.3.0
sphinx>=1.7.2
17 changes: 7 additions & 10 deletions sct_dbtool/setup.py
Expand Up @@ -2,15 +2,12 @@
import sct_dbtool


install_requirements = [
'setuptools>=0.6c11',
'docopt>=0.6.2',
'requests>=2.19.1',
'tqdm>=4.23.0',
'jinja2>=2.10',
'nibabel>=2.3.0',
'sphinx>=1.7.2',
]
def parse_requirements(filename):
lineiter = (line.strip() for line in open(filename))
return [line for line in lineiter if line and not line.startswith("#")]


install_reqs = parse_requirements("requirements.txt")

setup(
name='sct_dbtool',
Expand All @@ -29,7 +26,7 @@
},
zip_safe=False,
include_package_data=True,
install_requires=install_requirements,
install_requires=install_reqs,
classifiers=[
'Development Status :: 4 - Beta',
'License :: OSI Approved :: Apache Software License',
Expand Down

0 comments on commit 046b2ff

Please sign in to comment.