1 from __future__ import annotations

2

3 from ._version import get_versions

4

5__ALL__ = ['version', '__version__', 'full_version', 'git_revision', 'release']

6

7 vinfo: dict[str, str] = get_versions()

8 version = vinfo["version"]

9__version__ = vinfo.get("closest-tag", vinfo["version"])

10 full_version = vinfo['version']

11 git_revision = vinfo['full-revisionid']

12 release = 'dev0' not in version and '+' not in version

13 short_version = vinfo['version'].split("+")[0]

14

15 del get_versions, vinfo