web/ldt/__init__.py
author wakimd
Tue, 16 Nov 2010 14:15:07 +0100
changeset 9 22ab430e9b64
parent 1 3a30d255c235
permissions -rw-r--r--
Corrections on models and general structure
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     1
VERSION = (0, 2, 0, "final", 0)
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     2
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     3
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     4
def get_version():
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     5
    version = '%s.%s' % (VERSION[0], VERSION[1])
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     6
    if VERSION[2]:
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     7
        version = '%s.%s' % (version, VERSION[2])
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     8
    if VERSION[3:] == ('alpha', 0):
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
     9
        version = '%s pre-alpha' % version
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    10
    else:
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    11
        if VERSION[3] != 'final':
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    12
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    13
    return version
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    14
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    15
3a30d255c235 First version of API with tests
wakimd
parents:
diff changeset
    16
__version__ = get_version()