src/hdalab/__init__.py
author rougeronj
Thu, 29 Jan 2015 17:23:04 +0100
changeset 435 0116feeb4fa3
parent 429 cb6ca4772e2b
child 448 88b5e6785d47
permissions -rw-r--r--
Close #50 - footer

# -*- coding: utf-8 -*-
VERSION = (3, 0, 0, "alpha", 8)


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


__version__ = get_version()