generated from allenai/python-package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.py
28 lines (23 loc) · 744 Bytes
/
version.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
"""
Asgardpy version
"""
try:
try:
from ._dev_version import version
except Exception:
from ._version import version
except Exception: # pragma: no cover
import warnings
warnings.warn(
"Could not determine version; this indicates a broken installation."
" Install from PyPI or from a local git repository."
" Installing github's autogenerated source release tarballs "
" does not include version information and should be avoided."
)
del warnings
version = "0.0.0"
__version__ = version
# Save the public version for creating Tags for release
from packaging.version import Version
public_version = Version(__version__).public
__public_version__ = public_version