forked from umich-brcf-bioinf/Connor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
58 lines (51 loc) · 2.26 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
from __future__ import print_function
import os
import platform
import sys
from setuptools import find_packages, setup
import connor
_REQUIRED_PYTHON_VERSION = (2, 7)
def check_python_version():
if sys.version_info < _REQUIRED_PYTHON_VERSION:
msg_format = '''
Problem: Python v{0}.{1} or above is required but you are using v{2}.
Please install a supported version of Python and try again.\
'''
message = msg_format.format(_REQUIRED_PYTHON_VERSION[0],
_REQUIRED_PYTHON_VERSION[1],
platform.python_version())
print(message, file=sys.stderr)
sys.exit(1)
def read(*paths):
"""Build a file path from *paths* and return the contents."""
with open(os.path.join(*paths), 'r') as filename:
return filename.read()
check_python_version()
setup(name='Connor',
version = connor.__version__,
description=('Command-line tool to deduplicate reads in bam files based '
'on custom inline barcoding.'),
long_description=(read('README.rst') + '\n\n' +
read('doc/CHANGELOG.rst') + '\n\n' +
read('doc/AUTHORS.rst')),
url='https://github.com/umich-brcf-bioinf/Connor',
author='University of Michigan Bioinformatics Core',
author_email='[email protected]',
license='Apache',
packages=find_packages(exclude=['test*']),
classifiers=['Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: Apache Software License',
'Operating System :: Unix',
'Operating System :: MacOS',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Scientific/Engineering :: Bio-Informatics'],
keywords='bioinformatic exome-seq DNA-seq BAM',
setup_requires=['cython'],
install_requires=['pysam>=0.8.4', 'sortedcontainers>=1.5.3'],
entry_points={'console_scripts': ['connor=connor.connor:main']},
test_suite='nose.collector',
tests_require=['nose', 'pysam', 'testfixtures'],
zip_safe=False)