src/hdalab/__init__.py
author rougeronj
Mon, 16 Mar 2015 11:04:41 +0100
changeset 541 05ed94112e9e
parent 532 b1222084eb6b
child 538 ef8bc1204620
permissions -rw-r--r--
add icons (instead of unicode) for publish/unpublish a project

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

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


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