diff --git a/mhcflurry/package_metadata.py b/mhcflurry/package_metadata.py index 559a6d7a70ee86e0088a72442e45ca21ac00ae16..36e61c641d912318fc6e395d4913c21c77c544ff 100644 --- a/mhcflurry/package_metadata.py +++ b/mhcflurry/package_metadata.py @@ -1,2 +1,2 @@ -__version__ = "0.0.8" +__version__ = "0.1.0" diff --git a/setup.py b/setup.py index 07adad407a940d14046cf4eb03e04bc1ac30f516..1571028c3d1d9af752101020f6395d04ebdc8a57 100644 --- a/setup.py +++ b/setup.py @@ -15,9 +15,14 @@ import os import logging import re +import sys from setuptools import setup +# normally we would import six.PY2 but can't yet assume that six +# is installed here +PY2 = sys.version_info < (3, 0) + readme_dir = os.path.dirname(__file__) readme_filename = os.path.join(readme_dir, 'README.md') @@ -43,6 +48,25 @@ with open('mhcflurry/package_metadata.py', 'r') as f: re.MULTILINE).group(1) if __name__ == '__main__': + required_packages = [ + 'numpy>=1.11', + 'pandas>=0.13.1', + 'appdirs', + 'theano>=0.8.2', + 'keras==1.1.0', + 'fancyimpute>=0.0.12', + 'scikit-learn', + 'h5py', + 'typechecks', + 'pepdata', + 'bottle', + 'six', + ] + if PY2: + # concurrent.futures is a standard library in Py3 but Py2 + # requires this backport + required_packages.append('futures') + setup( name='mhcflurry', version=version, @@ -71,21 +95,7 @@ if __name__ == '__main__': package_data={ 'mhcflurry': ['downloads.yml'], }, - install_requires=[ - 'numpy>=1.11', - 'pandas>=0.13.1', - 'appdirs', - 'theano>=0.8.2', - 'keras==1.1.0', - 'fancyimpute>=0.0.12', - 'scikit-learn', - 'h5py', - 'typechecks', - 'pepdata', - 'futures', - 'bottle', - 'six', - ], + install_requires=required_packages, long_description=readme, packages=['mhcflurry', 'mhcflurry.class1_allele_specific'], )