-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathsetup.py
47 lines (37 loc) · 1.42 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
import os
from setuptools import setup, find_packages
# allow setup.py to be run from any path
os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
version = open(os.path.join(os.path.abspath(os.path.dirname(__file__)), 'bin', 'cmat', 'VERSION')).read().strip()
def get_requires():
requires = []
with open("requirements.txt", "rt") as req_file:
for line in req_file:
requires.append(line.rstrip())
return requires
# More classifiers to be added (https://pypi.org/classifiers/ - e.g. Operating System)
classifiers = [
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3"
]
# Extract the markdown description. Supported by PyPi in its native format
with open("README.md", "r") as fh:
long_description = fh.read()
setup(name='cmat',
version=version,
author_email='[email protected]',
url='https://github.com/EBIvariation/CMAT',
packages=find_packages(),
install_requires=get_requires(),
package_data={
'cmat': ['OT_SCHEMA_VERSION', 'pipelines/*']
},
description='ClinVar Mapping and Annotation Toolkit',
long_description=long_description,
long_description_content_type="text/markdown",
tests_require=get_requires(),
setup_requires=get_requires(),
test_suite='tests',
classifiers=classifiers
)