Skip to content

Commit

Permalink
modify setup.py to reference requirements.txt - related to issue #69
Browse files Browse the repository at this point in the history
  • Loading branch information
jburos committed Jul 20, 2016
1 parent 71e0082 commit 673e594
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@

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

here = path.abspath(path.dirname(__file__))
current_directory = os.path.dirname(__file__)
readme_filename = "README.md"
readme_path = os.path.join(current_directory, readme_filename)
Expand All @@ -37,6 +40,12 @@
print("Failed to convert %s to reStructuredText", readme_filename)
pass

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

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

if __name__ == "__main__":
setup(
Expand All @@ -57,23 +66,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 673e594

Please sign in to comment.