-
Notifications
You must be signed in to change notification settings - Fork 208
/
__init__.py
35 lines (27 loc) · 985 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
"""Celery result backends for Django."""
# :copyright: (c) 2016, Ask Solem.
# All rights reserved.
# :license: BSD (3 Clause), see LICENSE for more details.
import re
from collections import namedtuple
import django
__version__ = '2.3.0'
__author__ = 'Asif Saif Uddin, Ask Solem'
__contact__ = 'auvipy@gmai.com, ask@celeryproject.org'
__homepage__ = 'https://github.com/celery/django-celery-results'
__docformat__ = 'restructuredtext'
# -eof meta-
version_info_t = namedtuple('version_info_t', (
'major', 'minor', 'micro', 'releaselevel', 'serial',
))
# bumpversion can only search for {current_version}
# so we have to parse the version here.
_temp = re.match(
r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups()
VERSION = version_info = version_info_t(
int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '')
del(_temp)
del(re)
__all__ = []
if django.VERSION < (3, 2):
default_app_config = 'django_celery_results.apps.CeleryResultConfig'