/
common.py
61 lines (51 loc) · 1.97 KB
/
common.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
descr = """
Odes is a scikit toolkit for scipy to add extra ode solvers.
Specifically it interfaces the Sundials solvers cvode, cvodes, ida and idas.
It this way it provides extra modern ode and dae solvers you can use,
extending the capabilities offered in scipy.integrade.ode.
LICENSE: the license of odes is the same as scipy, new BSD.
"""
DISTNAME = 'scikits.odes'
DESCRIPTION = 'A python module for ordinary differential equation and'+\
' differential algebraic equation solvers'
LONG_DESCRIPTION = descr
MAINTAINER = 'maintainer of odes is B. Malengier'
MAINTAINER_EMAIL = 'benny.malengier@gmail.org'
URL = 'https://github.com/bmcage/odes'
LICENSE = 'new BSD'
DOWNLOAD_URL = URL
INSTALL_REQUIRES = ['scipy']
BUILD_REQUIRES = ['numpy', 'cython<3.0.0a8'] # This is need for older pip
MAJOR = 2
MINOR = 7
MICRO = 0
DEV = False
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: BSD License',
'Topic :: Scientific/Engineering',
'Programming Language :: Python :: 3',
"Programming Language :: Python :: 3 :: Only",
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
]
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + '.dev0'
else:
return build_verstring()
def write_version(fname):
f = open(fname, "w")
f.writelines("version = '%s'\n" % build_verstring())
f.writelines("dev =%s\n" % DEV)
f.writelines("full_version = '%s'\n" % build_fverstring())
f.close()
VERSION = build_fverstring()