diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..48c25aa --- /dev/null +++ b/setup.py @@ -0,0 +1,46 @@ +#!/usr/bin/env python3 +import os +import sys + +import setuptools.command.egg_info as egg_info_cmd +from setuptools import setup + +SETUP_DIR = os.path.dirname(__file__) +README = os.path.join(SETUP_DIR, "README.md") + +try: + import gittaggers + + tagger = gittaggers.EggInfoFromGit +except ImportError: + tagger = egg_info_cmd.egg_info + +install_requires = ["arvados-python-client", "schema-salad"] + +needs_pytest = {"pytest", "test", "ptr"}.intersection(sys.argv) +pytest_runner = ["pytest < 6", "pytest-runner < 5"] if needs_pytest else [] + +setup( + name="bh20-seq-uploader", + version="1.0", + description="Biohackathon sequence uploader", + long_description=open(README).read(), + long_description_content_type="text/x-rst", + author="Peter Amstutz", + author_email="peter.amstutz@curii.com", + license="Apache 2.0", + packages=["bh20sequploader", "bh20seqanalyzer"], + package_data={"bh20sequploader": ["bh20seq-schema.yml"]}, + install_requires=install_requires, + setup_requires=[] + pytest_runner, + tests_require=["pytest<5"], + entry_points={ + "console_scripts": [ + "bh20-seq-uploader=bh20sequploader.main:main", + "bh20-seq-analyzer=bh20seqanalyzer.main:main" + ] + }, + zip_safe=True, + cmdclass={"egg_info": tagger}, + python_requires=">=3.5, <4", +) |