-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
60 lines (52 loc) · 2.06 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import os
from setuptools import setup, find_packages
from setuptools.command.build_py import build_py
with open("README.md", "rt") as fh:
long_description = fh.read()
with open("requirements.txt", "rt") as fh:
install_requires = fh.read().strip().split("\n")
class CoverageCommand(build_py):
"""Run all unittests and generate a coverage report."""
def run(self):
os.system("python3.7 -m coverage run ./setup.py test "
"&& python3.7 -m coverage html --include=src/*.py "
"&& open htmlcov/index.html")
class PublishCommand(build_py):
"""Publish package to PyPI"""
def run(self):
os.system("rm -rf dist")
os.system("python3.7 setup.py sdist"
"&& python3.7 setup.py bdist_wheel"
"&& python3.7 -m twine upload dist/*whl dist/*gz")
setup(
name='step_pipeline',
version="0.2.7",
description="Pipeline library that simplifies creation of pipelines that run on top of hail Batch and other compute enviornments",
install_requires=install_requires,
cmdclass={
'coverage': CoverageCommand,
'publish': PublishCommand,
},
long_description_content_type="text/markdown",
long_description=long_description,
packages=find_packages(where="./"),
package_dir={'': './'},
include_package_data=True,
python_requires=">=3.7",
license="MIT",
keywords='pipelines, workflows, hail, Batch, cromwell, Terra, dsub, SGE',
url='https://github.com/broadinstitute/step_pipeline',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Natural Language :: English',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
],
test_suite="tests",
)