forked from ga4gh/ga4gh-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
67 lines (59 loc) · 2.04 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
import re
import sys
from ez_setup import use_setuptools
MIN_SETUPTOOLS_VERSION = "0.7"
use_setuptools(version=MIN_SETUPTOOLS_VERSION)
from setuptools import setup
# Following the recommendations of PEP 396 we parse the version number
# out of the module.
def parseVersion(moduleFile):
"""
Parses the version string from the specified file.
This implementation is ugly, but there doesn't seem to be a good way
to do this in general at the moment.
"""
f = open(moduleFile)
s = f.read()
f.close()
match = re.findall("__version__ = '([^']+)'", s)
return match[0]
f = open("README.txt")
ga4ghReadme = f.read()
f.close()
ga4ghVersion = parseVersion("ga4gh/__init__.py")
# Flask must come after all other requirements that have "flask" as a prefix
# due to a setuptools bug.
requirements = ["avro", "Flask-API", "flask-cors", "flask", "humanize",
"pysam", "requests", "wormtable"]
setup(
name="ga4gh",
version=ga4ghVersion,
description="A reference implementation of the ga4gh API",
license='Apache License 2.0',
long_description=ga4ghReadme,
packages=["ga4gh", "ga4gh.datamodel"],
zip_safe=False,
author="Global Alliance for Genomics and Health",
author_email="[email protected]",
url="https://github.com/ga4gh/server",
entry_points={
'console_scripts': [
'ga4gh_client=ga4gh.cli:client_main',
'ga4gh_server=ga4gh.cli:server_main',
'ga2vcf=ga4gh.cli:ga2vcf_main',
'ga2sam=ga4gh.cli:ga2sam_main',
]
},
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
# We should add other versions that we can confirm pass the tests
# (2.6?)
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
keywords='genomics reference',
install_requires=requirements,
)