__init__.py 832 B

123456789101112131415161718192021222324252627282930
  1. """
  2. Maintains version of wagtailcrx.
  3. 4th element is for pre-releases. Leave blank for stable releases.
  4. X.Y.ZaN # Alpha release
  5. X.Y.ZbN # Beta release
  6. X.Y.ZrcN # Release Candidate
  7. X.Y.Z # Final release
  8. 5th element is for dev/post releases. Leave blank for stable releases.
  9. X.Y.Z.devN # Development release
  10. X.Y.Z.postN # Post release (e.g. docs changes but no actual code changes)
  11. See: https://www.python.org/dev/peps/pep-0440/
  12. """
  13. release = ["0", "25", "0", "", "dev0"]
  14. def _get_version() -> str:
  15. v = "{0}.{1}.{2}".format(release[0], release[1], release[2])
  16. if release[3]:
  17. v = "{0}{1}".format(v, release[3])
  18. if release[4]:
  19. v = "{0}.{1}".format(v, release[4])
  20. return v
  21. __version__ = _get_version()
  22. __shortversion__ = "{0}.{1}".format(release[0], release[1])