version.py 380 B

123456789101112131415
  1. """Version number
  2. """
  3. from __future__ import division, absolute_import, print_function
  4. version = '1.00'
  5. release = False
  6. if not release:
  7. from . import core
  8. from . import extras
  9. revision = [core.__revision__.split(':')[-1][:-1].strip(),
  10. extras.__revision__.split(':')[-1][:-1].strip(),]
  11. version += '.dev%04i' % max([int(rev) for rev in revision])