| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
from setuptools import setup |
| 11 |
from glob import glob |
| 12 |
import re |
| 13 |
import ast |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
_version_re = re.compile(r'__version__\s+=\s+(.*)') |
| 18 |
|
| 19 |
with open('deblur/__init__.py', 'rb') as f: |
| 20 |
hit = _version_re.search(f.read().decode('utf-8')).group(1) |
| 21 |
__version__ = str(ast.literal_eval(hit)) |
| 22 |
|
| 23 |
|
| 24 |
classes = """ |
| 25 |
Development Status :: 4 - Beta |
| 26 |
License :: OSI Approved :: BSD License |
| 27 |
Topic :: Scientific/Engineering :: Bio-Informatics |
| 28 |
Topic :: Software Development :: Libraries :: Application Frameworks |
| 29 |
Topic :: Software Development :: Libraries :: Python Modules |
| 30 |
Programming Language :: Python |
| 31 |
Programming Language :: Python :: 3.8 |
| 32 |
Programming Language :: Python :: Implementation :: CPython |
| 33 |
Operating System :: POSIX :: Linux |
| 34 |
Operating System :: MacOS :: MacOS X |
| 35 |
""" |
| 36 |
|
| 37 |
long_description = ("Deblur: a greedy deconvolution algorithm based on known " |
| 38 |
"read error profiles") |
| 39 |
|
| 40 |
classifiers = [s.strip() for s in classes.split('\n') if s] |
| 41 |
|
| 42 |
setup(name='deblur', |
| 43 |
version=__version__, |
| 44 |
long_description=long_description, |
| 45 |
license="BSD", |
| 46 |
description='Deblur', |
| 47 |
author="Deblur development team", |
| 48 |
author_email="[email protected]", |
| 49 |
url='https://github.com/biocore/deblur', |
| 50 |
test_suite='nose.collector', |
| 51 |
packages=['deblur', 'deblur.support_files', 'deblur.test'], |
| 52 |
package_data={'deblur.support_files': ['artifacts.fa', '88_otus.fasta']}, |
| 53 |
scripts=glob('scripts/*'), |
| 54 |
extras_require={'test': ["nose >= 0.10.1", "pep8"], |
| 55 |
'doc': ["Sphinx >= 1.2.2", "sphinx-bootstrap-theme"]}, |
| 56 |
install_requires=['click', 'numpy >= 1.7', |
| 57 |
'scikit-bio >= 0.5.0, < 0.6.0', |
| 58 |
'biom-format >= 2.1.3, < 2.2.0', |
| 59 |
'h5py >= 2.2.0', 'scipy >= 0.15.1'], |
| 60 |
classifiers=classifiers |
| 61 |
) |