Files
aare/python/aare/_version.py
T
maliakal_d 8e69b498e5
Build on RHEL9 / build (push) Successful in 2m34s
Build on RHEL8 / build (push) Successful in 3m2s
Run tests using data on local RHEL8 / build (push) Successful in 3m45s
Build on local RHEL8 / build (push) Successful in 2m38s
Fix version (#319)
- install VERSION file and copy to build
- fix lookup for VERSION file in case of error
- update documentation for installing python bindings
2026-06-03 12:10:58 +02:00

8 lines
310 B
Python

# This file is used to get the version of the package from the VERSION file
from importlib.metadata import PackageNotFoundError, version
from pathlib import Path
try:
__version__ = version('aare')
except PackageNotFoundError:
__version__ = Path(__file__).parent.joinpath('VERSION').read_text().strip()