server/ammicosrv/__init__.py
author rougeronj
Wed, 10 Jun 2015 15:45:21 +0200
changeset 158 8b4c073a7c2c
parent 135 27065f8a19d3
child 174 fd166770bcee
permissions -rw-r--r--
increment version

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

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()