version.py 371 B

123456789101112
  1. from ._version import get_versions
  2. __ALL__ = ['version', 'full_version', 'git_revision', 'release']
  3. vinfo = get_versions()
  4. version: str = vinfo["version"]
  5. full_version: str = vinfo['version']
  6. git_revision: str = vinfo['full-revisionid']
  7. release = 'dev0' not in version and '+' not in version
  8. short_version: str = vinfo['version'].split("+")[0]
  9. del get_versions, vinfo