mirror of https://github.com/celery/kombu.git
kombu.VERSION is now a namedtuple
This commit is contained in:
parent
f38cec6034
commit
b8fda33a0f
|
@ -1,8 +1,14 @@
|
||||||
"""Messaging library for Python"""
|
"""Messaging library for Python"""
|
||||||
from __future__ import absolute_import
|
from __future__ import absolute_import
|
||||||
|
|
||||||
VERSION = (3, 0, 5)
|
from collections import namedtuple
|
||||||
__version__ = '.'.join(map(str, VERSION[0:3])) + ''.join(VERSION[3:])
|
|
||||||
|
version_info_t = namedtuple(
|
||||||
|
'version_info_t', ('major', 'minor', 'micro', 'releaselevel', 'serial'),
|
||||||
|
)
|
||||||
|
|
||||||
|
VERSION = version_info_t(3, 0, 5, '', '')
|
||||||
|
__version__ = '{0.major}.{0.minor}.{0.micro}{0.releaselevel}'.format(VERSION)
|
||||||
__author__ = 'Ask Solem'
|
__author__ = 'Ask Solem'
|
||||||
__contact__ = 'ask@celeryproject.org'
|
__contact__ = 'ask@celeryproject.org'
|
||||||
__homepage__ = 'http://kombu.readthedocs.org'
|
__homepage__ = 'http://kombu.readthedocs.org'
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -20,7 +20,7 @@ from distutils.command.install import INSTALL_SCHEMES
|
||||||
# -- Parse meta
|
# -- Parse meta
|
||||||
import re
|
import re
|
||||||
re_meta = re.compile(r'__(\w+?)__\s*=\s*(.*)')
|
re_meta = re.compile(r'__(\w+?)__\s*=\s*(.*)')
|
||||||
re_vers = re.compile(r'VERSION\s*=\s*\((.*?)\)')
|
re_vers = re.compile(r'VERSION\s*=.*?\((.*?)\)')
|
||||||
re_doc = re.compile(r'^"""(.+?)"""')
|
re_doc = re.compile(r'^"""(.+?)"""')
|
||||||
rq = lambda s: s.strip("\"'")
|
rq = lambda s: s.strip("\"'")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue