Skip to content

Commit 6db296b

Browse files
committed
add version.py, cleanup and streamline setup.py
1 parent 248412d commit 6db296b

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

psctb/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
from .analyse import ThermoKin
88
from .utils.model_graph import ModelGraph
99
from .utils.plotting import SimpleData2D
10-
from .utils.plotting import Data2D
10+
from .utils.plotting import Data2D
11+
from .version import __version__

psctb/version.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '0.9.0'

setup.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,28 @@
1717
with open(path.join(here, 'README.rst')) as f:
1818
long_description = f.read()
1919

20+
with open(path.join(here, 'requirements.txt')) as f:
21+
requirements = f.read().splitlines()
22+
23+
with open(path.join(here, 'psctb', 'version.py')) as f:
24+
exec(f.read())
25+
26+
dlurl = 'http://github.com/PySCeS/PyscesToolbox/archive/' + __version__ + '.tar.gz'
27+
2028
packages = find_packages()
2129

2230
setup(
2331
name='PyscesToolbox',
24-
version='0.9.0',
32+
version=__version__,
2533
packages=packages,
2634
url='https://github.com/PySCeS/PyscesToolbox',
27-
download_url='http://github.com/PySCeS/PyscesToolbox/archive/0.9.0.tar.gz',
35+
download_url=dlurl,
2836
license='BSD-3-Clause',
2937
author='Carl Christensen and Johann Rohwer',
3038
author_email='exe0cdc@gmail.com, j.m.rohwer@gmail.com',
3139
description='A set of metabolic model analysis tools for PySCeS.',
3240
long_description=long_description,
33-
install_requires=['IPython>=4.0.0',
34-
'numpy',
35-
'sympy',
36-
'pysces',
37-
'matplotlib',
38-
'numpydoc',
39-
'networkx==1.11',
40-
'ipywidgets==6.0.0',
41-
'widgetsnbextension==2.0.0',
42-
'jupyter-pip',
43-
'pandas'],
41+
install_requires=requirements,
4442
package_data={'d3networkx_psctb': ['widget.js'],
4543
'psctb': ['docs/*']},
4644
keywords=['metabolism','metabolic control analysis','modelling'],

0 commit comments

Comments
 (0)