/
setup.py
61 lines (53 loc) · 2.29 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
#!/usr/bin/env python
# -----------------------------------------------------------------------------
# Copyright (c) 2013, The Deblur Development Team.
#
# Distributed under the terms of the BSD 3-clause License.
#
# The full license is in the file LICENSE, distributed with this software.
# -----------------------------------------------------------------------------
from setuptools import setup
from glob import glob
import re
import ast
# version parsing from __init__ pulled from Flask's setup.py
# https://github.com/mitsuhiko/flask/blob/master/setup.py
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('deblur/__init__.py', 'rb') as f:
hit = _version_re.search(f.read().decode('utf-8')).group(1)
__version__ = str(ast.literal_eval(hit))
classes = """
Development Status :: 4 - Beta
License :: OSI Approved :: BSD License
Topic :: Scientific/Engineering :: Bio-Informatics
Topic :: Software Development :: Libraries :: Application Frameworks
Topic :: Software Development :: Libraries :: Python Modules
Programming Language :: Python
Programming Language :: Python :: 3.5
Programming Language :: Python :: Implementation :: CPython
Operating System :: POSIX :: Linux
Operating System :: MacOS :: MacOS X
"""
long_description = ("Deblur: a greedy deconvolution algorithm based on known "
"read error profiles")
classifiers = [s.strip() for s in classes.split('\n') if s]
setup(name='deblur',
version=__version__,
long_description=long_description,
license="BSD",
description='Deblur',
author="Deblur development team",
author_email="amnonim@gmail.com",
url='https://github.com/biocore/deblur',
test_suite='nose.collector',
packages=['deblur', 'deblur.support_files', 'deblur.test'],
package_data={'deblur.support_files': ['artifacts.fa', '88_otus.fasta']},
scripts=glob('scripts/*'),
extras_require={'test': ["nose >= 0.10.1", "pep8"],
'doc': ["Sphinx >= 1.2.2", "sphinx-bootstrap-theme"]},
install_requires=['click >= 6', 'numpy >= 1.7',
'scikit-bio >= 0.5.0, < 0.6.0',
'biom-format >= 2.1.3, < 2.2.0',
'h5py >= 2.2.0', 'scipy >= 0.15.1'],
classifiers=classifiers
)