-
Notifications
You must be signed in to change notification settings - Fork 8
/
setup.py
56 lines (50 loc) · 1.75 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
#!/usr/bin/env python
'''
:Date: 7 Apr, 2016
:Author: Alex Jironkin
'''
from setuptools 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='https://github.com/phe-bioinformatics/PHEnix',
download_url="https://github.com/phe-bioinformatics/PHEnix/archive/1-4-1.tar.gz",
packages=['phe',
'phe.mapping',
'phe.variant',
'phe.variant_filters',
"phe.metadata",
"phe.annotations",
"phe.utils"],
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
)