server/ammicosrv/__init__.py
author rougeronj
Thu, 11 Jun 2015 16:23:34 +0200
changeset 174 fd166770bcee
parent 158 8b4c073a7c2c
child 181 6a27a4d81629
permissions -rw-r--r--
increment version

VERSION = (0, 1, 0, "alpha", 2)

VERSION_STR = u".".join(map(lambda i:"%02d" % (i,), VERSION[:2]))


def get_version():
    version = '%s.%s' % (VERSION[0], VERSION[1])
    if VERSION[2]:
        version = '%s.%s' % (version, VERSION[2])
    if VERSION[3] == 'alpha':
        version = '%s-alpha.%s' % (version, VERSION[4])
    else:
        if VERSION[3] != 'final':
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
    return version

__version__ = get_version()