Skip to content

Commit f9abf87

Browse files
committed
removed built-in pyparsing and added to requirements
1 parent f687414 commit f9abf87

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+114763
-4
lines changed

build/lib/cbmpy/CBCPLEX.py

Lines changed: 2487 additions & 0 deletions
Large diffs are not rendered by default.

build/lib/cbmpy/CBCommon.py

Lines changed: 1103 additions & 0 deletions
Large diffs are not rendered by default.

build/lib/cbmpy/CBConfig.py

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
"""
2+
CBMPy: CBConfig module
3+
======================
4+
PySCeS Constraint Based Modelling (http://cbmpy.sourceforge.net)
5+
Copyright (C) 2009-2022 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>
19+
20+
Author: Brett G. Olivier
21+
Contact email: [email protected]
22+
Last edit: $Author: bgoli $ ($Id: CBConfig.py 711 2020-04-27 14:22:34Z bgoli $)
23+
24+
"""
25+
# gets rid of "invalid variable name" info
26+
# pylint: disable=C0103
27+
# gets rid of "line to long" info
28+
# pylint: disable=C0301
29+
# use with caution: gets rid of module xxx has no member errors (run once enabled)
30+
# pylint: disable=E1101
31+
32+
# preparing for Python 3 port
33+
from __future__ import division, print_function
34+
from __future__ import absolute_import
35+
36+
# from __future__ import unicode_literals
37+
38+
import platform
39+
40+
__VERSION_MAJOR__ = 0
41+
__VERSION_MINOR__ = 8
42+
__VERSION_MICRO__ = 4
43+
44+
__CBCONFIG__ = {
45+
'VERSION_MAJOR': __VERSION_MAJOR__,
46+
'VERSION_MINOR': __VERSION_MINOR__,
47+
'VERSION_MICRO': __VERSION_MICRO__,
48+
'VERSION_STATUS': '',
49+
'VERSION': '{}.{}.{}'.format(
50+
__VERSION_MAJOR__, __VERSION_MINOR__, __VERSION_MICRO__
51+
),
52+
'DEBUG': False,
53+
'SOLVER_PREF': 'CPLEX',
54+
#'SOLVER_PREF': 'GLPK',
55+
'SOLVER_ACTIVE': None,
56+
'REVERSIBLE_SYMBOL': '<==>',
57+
'IRREVERSIBLE_SYMBOL': '-->',
58+
'HAVE_SBML2': False,
59+
'HAVE_SBML3': False,
60+
'CBMPY_DIR': None,
61+
'SYMPY_DENOM_LIMIT': 10 ** 32,
62+
'ENVIRONMENT': '{} {} ({})'.format(
63+
platform.system(), platform.release(), platform.architecture()[0]
64+
),
65+
'MULTICORE_PYTHON_BIN_OVERRIDE': None,
66+
67+
}
68+
69+
70+
def current_version():
71+
"""
72+
Return the current CBMPy version as a string
73+
74+
"""
75+
return '{}.{}.{}'.format(__VERSION_MAJOR__, __VERSION_MINOR__, __VERSION_MICRO__)
76+
77+
78+
def current_version_tuple():
79+
"""
80+
Return the current CBMPy version as a tuple (x, y, z)
81+
82+
"""
83+
return (__VERSION_MAJOR__, __VERSION_MINOR__, __VERSION_MICRO__)

build/lib/cbmpy/CBDataStruct.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
"""
2+
CBMPy: CBDataStruct module
3+
==========================
4+
PySCeS Constraint Based Modelling (http://cbmpy.sourceforge.net)
5+
Copyright (C) 2009-2022 Brett G. Olivier, VU University Amsterdam, Amsterdam, The Netherlands
6+
7+
This program is free software: you can redistribute it and/or modify
8+
it under the terms of the GNU General Public License as published by
9+
the Free Software Foundation, either version 3 of the License, or
10+
(at your option) any later version.
11+
12+
This program is distributed in the hope that it will be useful,
13+
but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15+
GNU General Public License for more details.
16+
17+
You should have received a copy of the GNU General Public License
18+
along with this program. If not, see <http://www.gnu.org/licenses/>
19+
20+
Author: Brett G. Olivier
21+
Contact email: [email protected]
22+
Last edit: $Author: bgoli $ ($Id: CBDataStruct.py 710 2020-04-27 14:22:34Z bgoli $)
23+
24+
"""
25+
26+
# preparing for Python 3 port
27+
from __future__ import division, print_function
28+
from __future__ import absolute_import
29+
30+
# from __future__ import unicode_literals

0 commit comments

Comments
 (0)