-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcommon.py
47 lines (38 loc) · 1.22 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
descr = """
stick is a toolbox for textile modelling.
LICENSE: the license is GPLv2 or later.
"""
DISTNAME = 'stick'
DESCRIPTION = 'A python module for textile modelling'
LONG_DESCRIPTION = descr
MAINTAINER = 'maintainer is B. Malengier'
MAINTAINER_EMAIL = '[email protected]'
URL = 'http://cage.ugent.be/~bm/progs.html'
LICENSE = 'GPL v2 or later'
DOWNLOAD_URL = URL
MAJOR = 0
MINOR = 1
MICRO = 0
DEV = True
CLASSIFIERS = [
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: GPLv2 License',
'Topic :: Scientific/Engineering']
def build_verstring():
return '%d.%d.%d' % (MAJOR, MINOR, MICRO)
def build_fverstring():
if DEV:
return build_verstring() + 'dev'
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()
INSTALL_REQUIRE = 'scipy'