forked from bmcage/odes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.py
59 lines (49 loc) · 1.79 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
descr = """
Odes is a scikit toolkit for scipy to add some extra ode solvers.
At present it provides 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 = '[email protected]'
URL = 'https://github.com/bmcage/odes'
LICENSE = 'new BSD'
DOWNLOAD_URL = URL
INSTALL_REQUIRES = ['scipy']
MAJOR = 2
MINOR = 3
MICRO = 2
DEV = True
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 :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
]
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()