| Total Complexity | 0 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | Asgardpy version |
||
| 3 | """ |
||
| 4 | |||
| 5 | try: |
||
| 6 | try: |
||
| 7 | from ._dev_version import version |
||
| 8 | except Exception: |
||
| 9 | from ._version import version |
||
| 10 | except Exception: # pragma: no cover |
||
| 11 | import warnings |
||
| 12 | |||
| 13 | warnings.warn( |
||
| 14 | "Could not determine version; this indicates a broken installation." |
||
| 15 | " Install from PyPI or from a local git repository." |
||
| 16 | " Installing github's autogenerated source release tarballs " |
||
| 17 | " does not include version information and should be avoided." |
||
| 18 | ) |
||
| 19 | del warnings |
||
| 20 | version = "0.0.0" |
||
| 21 | |||
| 22 | __version__ = version |
||
| 23 | |||
| 24 | # Save the public version for creating Tags for release |
||
| 25 | from packaging.version import Version |
||
| 26 | |||
| 27 | public_version = Version(__version__).public |
||
| 28 | __public_version__ = public_version |
||
| 29 |