| author | ymh <ymh.work@gmail.com> |
| Thu, 11 Oct 2012 19:59:25 +0200 | |
| changeset 21 | 746c02cf58a4 |
| parent 1 | 08f6e99af174 |
| child 24 | 2c4197305e42 |
| permissions | -rwxr-xr-x |
| 21 | 1 |
VERSION = (0, 2, 0, "final", 0) |
|
1
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
4 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
def get_version(): |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
version = '%s.%s' % (VERSION[0], VERSION[1]) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
if VERSION[2]: |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
version = '%s.%s' % (version, VERSION[2]) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
10 |
if VERSION[3:] == ('alpha', 0): |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
version = '%s pre-alpha' % version |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
else: |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
13 |
if VERSION[3] != 'final': |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
version = '%s %s %s' % (version, VERSION[3], VERSION[4]) |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
15 |
return version |
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
16 |
|
|
08f6e99af174
prepare the installation of the ldt platform
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
17 |
__version__ = get_version() |