forked from ukhsa-collaboration/PHEnix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
54 lines (48 loc) · 1.65 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
#!/usr/bin/env python
'''
:Date: 7 Apr, 2016
:Author: Alex Jironkin
'''
from distutils.core import setup
import os
import sys
import pip
from pip.req import parse_requirements
def get_version():
version_file = os.path.join(os.path.abspath(os.path.dirname(__file__)), "VERSION")
version = "N/A"
if os.path.exists(version_file):
try:
with open(version_file) as fp:
version = fp.next().strip()
except IOError:
pass
return version
# At the time of writing there is an open issue on pip > 6.0
# Where session is required parameter. Breaks backwards compatibility.
if int(pip.__version__.split(".")[0]) >= 6:
install_reqs = parse_requirements('requirements.txt', session=False)
else:
install_reqs = parse_requirements('requirements.txt')
install_requires = [str(ir.req) for ir in install_reqs]
setup(name='PHEnix',
version=get_version(),
description='Public Health England(UK) SNP calling pipeline tools.',
author='Public Health England',
author_email='[email protected]',
url='http://phoenix.readthedocs.org/en/latest/index.html',
package=['phe',
'phe.mapping',
'phe.variant',
'phe.variant_filters',
"phe.metadata",
"phe.annotations"],
scripts=['scripts/run_snp_pipeline.py',
"scripts/filter_vcf.py",
"scripts/prepare_reference.py",
"scripts/vcf2fasta.py",
"scripts/phenix.py",
"scripts/vcf2distancematrix.py",
"scripts/vcf2json.py"],
install_requires=install_requires
)