-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
25 lines (22 loc) · 868 Bytes
/
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
import io
from os.path import dirname, join
from setuptools import setup
def get_version(relpath):
'''Read version info from a file without importing it'''
for line in io.open(join(dirname(__file__), relpath), encoding='cp437'):
if '__version__' in line:
if '"' in line:
# __version__ = "0.9"
return line.split('"')[1]
elif "'" in line:
return line.split("'")[1]
setup(name='mentos',
version=get_version('mentos/__init__.py'),
description='MENTOS: Maximum entropy approach for estimating metabolite concentrations and fluxes',
url='http://github.com/djinnome/mentos',
author='Jeremy Zucker',
author_email='[email protected]',
install_requires=['pandas','scipy','cvxpy','numpy','cobra','python-libsbml','kitchen'],
license='MIT',
packages=['mentos'],
zip_safe=False)