__init__.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. """Promises, promises, promises."""
  2. from __future__ import absolute_import, unicode_literals
  3. import re
  4. from collections import namedtuple
  5. from .abstract import Thenable
  6. from .promises import promise
  7. from .synchronization import barrier
  8. from .funtools import (
  9. maybe_promise, ensure_promise,
  10. ppartial, preplace, starpromise, transform, wrap,
  11. )
  12. __version__ = '1.1.4'
  13. __author__ = 'Ask Solem'
  14. __contact__ = 'ask@celeryproject.org'
  15. __homepage__ = 'http://github.com/celery/vine'
  16. __docformat__ = 'restructuredtext'
  17. # -eof meta-
  18. version_info_t = namedtuple('version_info_t', (
  19. 'major', 'minor', 'micro', 'releaselevel', 'serial',
  20. ))
  21. # bump version can only search for {current_version}
  22. # so we have to parse the version here.
  23. _temp = re.match(
  24. r'(\d+)\.(\d+).(\d+)(.+)?', __version__).groups()
  25. VERSION = version_info = version_info_t(
  26. int(_temp[0]), int(_temp[1]), int(_temp[2]), _temp[3] or '', '')
  27. del(_temp)
  28. del(re)
  29. __all__ = [
  30. 'Thenable', 'promise', 'barrier',
  31. 'maybe_promise', 'ensure_promise',
  32. 'ppartial', 'preplace', 'starpromise', 'transform', 'wrap',
  33. ]