src/hdalab/__init__.py
author ymh <ymh.work@gmail.com>
Thu, 12 Apr 2018 01:59:24 +0200
branchdocumentation
changeset 694 46da276fbb1b
parent 693 09e00f38d177
child 700 fe94d8572c18
permissions -rw-r--r--
small doc corrections

# -*- coding: utf-8 -*-
"""
Module contenant l'applicatiion Django HDALab.
"""
from __future__ import absolute_import

VERSION = (3, 2, 1, "final", 0)


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

default_app_config = 'hdalab.apps.HdalabAppConfig'