Skip to content

Commit

Permalink
modify setup.py to reference requirements.txt (#83)
Browse files Browse the repository at this point in the history
* modify setup.py to reference requirements.txt - related to issue #69

* remove redundant `here` path

* address quote & req comments
  • Loading branch information
jburos committed Jul 20, 2016
1 parent 71e0082 commit 44a0059
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

from __future__ import print_function
import os
from os import path
from codecs import open
from setuptools import setup
import versioneer

Expand All @@ -37,6 +39,12 @@
print("Failed to convert %s to reStructuredText", readme_filename)
pass

# get the dependencies and installs
with open(path.join(current_directory, "requirements.txt"), encoding='utf-8') as f:
all_reqs = f.read().split('\n')

install_requires = [req.strip() for req in all_reqs if 'git+' not in req]
dependency_links = [req.strip().replace('git+','') for req in all_reqs if 'git+' in req]

if __name__ == "__main__":
setup(
Expand All @@ -57,23 +65,8 @@
"Programming Language :: Python",
"Topic :: Scientific/Engineering :: Bio-Informatics",
],
install_requires=[
"pandas>=0.15",
"seaborn>=0.7.0",
"scipy>=0.17.0",
"topiary>=0.0.20",
"mhctools>=0.2.3",
"varcode>=0.4.12",
"pyensembl>=0.8.12",
"six>=1.10.0",
"lifelines>=0.9.1.0",
"scikit-learn>=0.17.1",
"vcf-annotate-polyphen>=0.1.2",
"patsy>=0.4.1"
],
dependency_links=[
"git+git://github.com/hammerlab/isovar",
],
install_requires=install_requires,
dependency_links=dependency_links,
long_description=readme,
packages=["cohorts"],
)
)

0 comments on commit 44a0059

Please sign in to comment.