Mercurial > repos > rliterman > csp2
annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/lib/python3.8/site-packages/numpy/version.py @ 69:33d812a61356
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 17:55:14 -0400 |
parents | |
children |
rev | line source |
---|---|
jpayne@69 | 1 from __future__ import annotations |
jpayne@69 | 2 |
jpayne@69 | 3 from ._version import get_versions |
jpayne@69 | 4 |
jpayne@69 | 5 __ALL__ = ['version', '__version__', 'full_version', 'git_revision', 'release'] |
jpayne@69 | 6 |
jpayne@69 | 7 vinfo: dict[str, str] = get_versions() |
jpayne@69 | 8 version = vinfo["version"] |
jpayne@69 | 9 __version__ = vinfo.get("closest-tag", vinfo["version"]) |
jpayne@69 | 10 full_version = vinfo['version'] |
jpayne@69 | 11 git_revision = vinfo['full-revisionid'] |
jpayne@69 | 12 release = 'dev0' not in version and '+' not in version |
jpayne@69 | 13 short_version = vinfo['version'].split("+")[0] |
jpayne@69 | 14 |
jpayne@69 | 15 del get_versions, vinfo |