forked from ga4gh/ga4gh-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
75 lines (65 loc) · 2.19 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
69
70
71
72
73
74
# Don't import __future__ packages here; they make setup fail
# First, we try to use setuptools. If it's not available locally,
# we fall back on ez_setup.
import tempfile
import os
import fnmatch
import shutil
import scripts.process_schemas as process_schemas
PROTOCOL_VERSION = "0.6.0a9"
try:
from setuptools import setup
except ImportError:
from ez_setup import use_setuptools
use_setuptools()
from setuptools import setup
with open("python/README.pypi.rst") as readmeFile:
long_description = readmeFile.read()
install_requires = []
with open("python/requirements.txt") as requirementsFile:
for line in requirementsFile:
line = line.strip()
if len(line) == 0:
continue
if line[0] == '#':
continue
pinnedVersion = line.split()[0]
install_requires.append(pinnedVersion)
schemasPath = 'src/main/proto/'
process_schemas.createSchemaFiles('python', schemasPath)
process_schemas.main([PROTOCOL_VERSION, 'python'])
setup(
name="ga4gh_schemas",
description="GA4GH API Schemas",
packages=[
"ga4gh",
"ga4gh.schemas",
"ga4gh.schemas.ga4gh",
"ga4gh.schemas.google",
"ga4gh.schemas.google.api"
],
namespace_packages=["ga4gh"],
url="https://github.com/ga4gh/schemas",
use_scm_version={"write_to": "python/ga4gh/schemas/_version.py"},
entry_points={},
package_dir={'': 'python'},
long_description=long_description,
install_requires=install_requires,
license='Apache License 2.0',
include_package_data=True,
zip_safe=True,
author="Global Alliance for Genomics and Health",
author_email="theglobalalliance@genomicsandhealth.org",
classifiers=[
'Development Status :: 3 - Alpha',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Natural Language :: English',
'Programming Language :: Python :: 2.7',
'Topic :: Scientific/Engineering :: Bio-Informatics',
],
keywords=['genomics', 'reference'],
# Use setuptools_scm to set the version number automatically from Git
setup_requires=['setuptools_scm'],
)
shutil.rmtree('package_python', True)