src/aixweb/__init__.py
author cavaliet
Wed, 10 Jul 2013 10:44:24 +0200
changeset 82 990647147858
parent 75 ac4e5837ae0b
child 85 bd1c13cad4f5
permissions -rwxr-xr-x
update requirement (mdp 0.1.16) and version number to 0.1.17
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
82
990647147858 update requirement (mdp 0.1.16) and version number to 0.1.17
cavaliet
parents: 75
diff changeset
     1
VERSION = (0, 1, 17, "final", 0)
10
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     2
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     3
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     4
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     5
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     6
def get_version():
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     7
    version = '%s.%s' % (VERSION[0], VERSION[1])
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     8
    if VERSION[2]:
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
     9
        version = '%s.%s' % (version, VERSION[2])
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    10
    if VERSION[3:] == ('alpha', 0):
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    11
        version = '%s pre-alpha' % version
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    12
    else:
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    13
        if VERSION[3] != 'final':
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    14
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    15
    return version
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    16
fb466c64d84c first commit for aixweb django app (with aix custum metadatacomposer templates)
cavaliet
parents:
diff changeset
    17
__version__ = get_version()