-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
77 lines (66 loc) · 3.11 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# ----------------------------------------------------------------------------
# Copyright (c) 2019, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ----------------------------------------------------------------------------
#!/usr/bin/env python
from distutils.core import setup
from setuptools import find_packages
import sys
import re
import ast
from glob import glob
# version parsing from __init__ pulled from Flask's setup.py
# https://github.com/mitsuhiko/flask/blob/master/setup.py
# python version control from Flask's setup.py
# https://github.com/mitsuhiko/flask/blob/master/setup.py
CURRENT_PYTHON = sys.version_info[:2]
REQUIRED_PYTHON = (3, 6)
# This check and everything above must remain compatible with Python 2.7.
if CURRENT_PYTHON > REQUIRED_PYTHON or CURRENT_PYTHON < REQUIRED_PYTHON:
sys.stderr.write("""
==========================
Unsupported Python version
==========================
This version of TADA requires Python {}.{}, but you're trying to
install it on Python {}.{}.
""".format(*(REQUIRED_PYTHON + CURRENT_PYTHON)))
sys.exit(1)
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open('q2_feature_engineering/__init__.py', 'rb') as f:
hit = _version_re.search(f.read().decode('utf-8')).group(1)
__version__ = str(ast.literal_eval(hit))
long_description = ("TADA: phylogenetic augmentation of microbiome samples enhances phenotype classification")
setup(name='q2-feature-engineering',
version=__version__,
long_description=long_description,
license='BSD-3-Clause',
description='Qiime2 plugin to facilitate feature extraction for metagenomic analyses.',
python_requires='>={}.{}'.format(*REQUIRED_PYTHON),
author = 'Erfan Sayyari, Ban Kawas, Siavash Mirarab',
author_email = '[email protected]',
url='https://github.com/tada-alg/TADA/',
packages=find_packages(),
install_requires=["dendropy>=4.0.0", "numpy>=1.14.0", "biom-format>=2.1.5","imbalanced-learn>=0.4.3",
"scikit-learn>=0.19.1",
"scipy>=1.0.0","pandas>=0.22.0", "treeswift", "niemads"],
scripts=glob("q2_feature_engineering/scripts/*"),
package_data={'q2_feature_engineering': ['citations.bib'],
'': ['data']},
entry_points={
'qiime2.plugins':
['q2-feature-engineering=q2_feature_engineering.plugin_setup:plugin']
},
classifiers=["Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
("License :: OSI approved:: Berkeley Source Distribution"
"License (BSD)"),
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Topic :: Scientific/Engineering :: Bio-Informatics"])