-
Notifications
You must be signed in to change notification settings - Fork 17
/
setup.py
68 lines (60 loc) · 1.93 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
61
62
63
64
65
66
67
68
import os
import sys
from setuptools import setup
# version checking derived from https://github.com/levlaz/circleci.py/blob/master/setup.py
from setuptools.command.install import install
VERSION = '0.17.2'
TAG_ENV_VAR = 'GITHUB_REF_NAME'
with open("README.md", "r") as fh:
long_description = fh.read()
class VerifyVersionCommand(install):
"""Custom command to verify that the git tag matches our version"""
description = 'verify that the git tag matches our version'
def run(self):
tag = os.getenv(TAG_ENV_VAR)
if tag != VERSION:
info = "Git tag: {0} does not match the version of this app: {1}".format(
tag, VERSION
)
sys.exit(info)
setup(
name='calrissian',
version=VERSION,
author='Dan Leehr',
author_email='[email protected]',
description='CWL runner for Kubernetes',
install_requires=[
'urllib3==1.26.18',
'kubernetes==28.1.0',
'cwltool==3.1.20231114134824',
'tenacity==8.2.3',
'importlib-metadata==6.8.0',
'msgpack==1.0.7',
'typing-extensions==4.8.0',
'freezegun==1.2.2',
],
test_suite='nose2.collector.collector',
tests_require=['nose2'],
entry_points={
'console_scripts': [
'calrissian = calrissian.main:main'
]
},
license='MIT',
long_description=long_description,
long_description_content_type='text/markdown',
url='https://github.com/Duke-GCB/calrissian',
packages=['calrissian',],
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 3',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Topic :: Scientific/Engineering :: Bio-Informatics',
'Topic :: System :: Distributed Computing',
],
cmdclass={
'verify': VerifyVersionCommand,
},
)