web/hdalab/__init__.py
author ymh <ymh.work@gmail.com>
Fri, 27 Jan 2012 18:18:13 +0100
changeset 114 c59383cc9940
child 137 a2d4635a6b27
permissions -rw-r--r--
migrate categories extraction to hdalab
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
114
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
# -*- coding: utf-8 -*-
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
VERSION = (0, 1, 0, "final", 0)
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
def get_version():
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
    version = '%s.%s' % (VERSION[0], VERSION[1])
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
    if VERSION[2]:
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     8
        version = '%s.%s' % (version, VERSION[2])
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
     9
    if VERSION[3:] == ('alpha', 0):
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    10
        version = '%s pre-alpha' % version
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    11
    else:
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    12
        if VERSION[3] != 'final':
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    13
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    14
    return version
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    15
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    16
c59383cc9940 migrate categories extraction to hdalab
ymh <ymh.work@gmail.com>
parents:
diff changeset
    17
__version__ = get_version()