src/egonomy/__init__.py
author cavaliet
Thu, 27 Jun 2013 17:17:04 +0200
changeset 185 5f265e870a8d
parent 153 a6777893243d
child 194 2b5ca2fb4002
permissions -rw-r--r--
remove useless data and update integ main.js
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
153
a6777893243d debug search form and css and fragment buttons
cavaliet
parents: 151
diff changeset
     1
VERSION = (0, 6, 1, "final", 1)
36
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     2
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     3
VERSION_STR = unicode(".".join(map(lambda i:"%02d" % (i,), VERSION[:2])))
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     4
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     5
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     6
def get_version():
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     7
    version = '%s.%s' % (VERSION[0], VERSION[1])
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     8
    if VERSION[2]:
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
     9
        version = '%s.%s' % (version, VERSION[2])
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    10
    if VERSION[3:] == ('alpha', 0):
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    11
        version = '%s pre-alpha' % version
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    12
    else:
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    13
        if VERSION[3] != 'final':
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    14
            version = '%s %s %s' % (version, VERSION[3], VERSION[4])
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    15
    return version
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    16
daa526d27044 correct data import (on tags)
ymh <ymh.work@gmail.com>
parents: 4
diff changeset
    17
__version__ = get_version()