src/hdalab/__init__.py
author rougeronj
Mon, 16 Mar 2015 11:05:24 +0100
changeset 542 a4085fc63d21
parent 538 ef8bc1204620
child 543 126397b447c9
permissions -rw-r--r--
Merge with ea9250df2eb799b670caab815566d728bdb23a1a

# -*- coding: utf-8 -*-
from __future__ import absolute_import

VERSION = (3, 0, 0, "rc", 4)


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

try:
    from .celery import app as celery_app
except:
    pass