author | ymh <ymh.work@gmail.com> |
Fri, 18 Sep 2015 13:04:51 +0200 | |
changeset 152 | 4914a246ae46 |
parent 147 | 51e129ee6086 |
child 158 | b5fc6f8ffeb3 |
permissions | -rw-r--r-- |
147
51e129ee6086
new cas client version + correct firstname and lastname handling + new version
ymh <ymh.work@gmail.com>
parents:
145
diff
changeset
|
1 |
VERSION = (0, 0, 22, "final", 0) |
3 | 2 |
|
3 |
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) |
|
4 |
||
5 |
||
6 |
def get_version(): |
|
7 |
version = '%s.%s' % (VERSION[0], VERSION[1]) |
|
8 |
if VERSION[2]: |
|
9 |
version = '%s.%s' % (version, VERSION[2]) |
|
10 |
if VERSION[3] == 'alpha': |
|
11 |
version = '%s-alpha.%s' % (version, VERSION[4]) |
|
12 |
else: |
|
13 |
if VERSION[3] != 'final': |
|
14 |
version = '%s %s %s' % (version, VERSION[3], VERSION[4]) |
|
15 |
return version |
|
16 |
||
17 |
__version__ = get_version() |