forked from opencobra/cobrapy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
93 lines (85 loc) · 2.91 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# -*- coding: utf-8 -*-
from __future__ import absolute_import
from warnings import warn
from sys import argv, version_info
from setuptools import setup, find_packages
if version_info[:2] == (3, 4):
warn("Support for Python 3.4 was dropped by pandas. Since cobrapy is a "
"pure Python package you can still install it but will have to "
"carefully manage your own pandas and numpy versions. We no longer "
"include it in our automatic testing.")
setup_kwargs = dict()
setup_requirements = []
# prevent pytest-runner from being installed on every invocation
if {'pytest', 'test', 'ptr'}.intersection(argv):
setup_requirements.append("pytest-runner")
extras = {
'array': ["scipy"],
'sbml': ["python-libsbml", "lxml"]
}
extras["all"] = sorted(list(extras))
try:
with open('README.rst') as handle:
readme = handle.read()
with open('INSTALL.rst') as handle:
install = handle.read()
setup_kwargs["long_description"] = readme + "\n\n" + install
except IOError:
setup_kwargs["long_description"] = ''
setup(
name="cobra",
version="0.10.1",
packages=find_packages(),
setup_requires=setup_requirements,
install_requires=[
"six",
"future",
"swiglpk",
"ruamel.yaml<0.15",
"numpy>=1.6",
"pandas>=0.17.0",
"optlang>=1.2.5",
"tabulate"
],
tests_require=[
"jsonschema > 2.5",
"pytest",
"pytest-benchmark"
],
extras_require=extras,
package_data={
'': [
'test/data/*',
'mlab/matlab_scripts/*m'
]
},
author="The cobrapy core team",
author_email="[email protected]",
description="COBRApy is a package for constraints-based modeling of "
"biological networks",
license="LGPL/GPL v2+",
keywords=("metabolism biology linear programming optimization flux"
" balance analysis fba"),
url="https://opencobra.github.io/cobrapy",
test_suite="cobra.test.suite",
download_url='https://pypi.python.org/pypi/cobra',
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GNU Lesser General Public License v2'
' or later (LGPLv2+)',
'License :: OSI Approved :: GNU General Public License v2'
' or later (GPLv2+)',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
'Topic :: Scientific/Engineering :: Bio-Informatics'
],
platforms="GNU/Linux, Mac OS X >= 10.7, Microsoft Windows >= 7",
**setup_kwargs
)