Files
aare/python/aare/_version.py
T
2026-09-24 09:09:37 +02:00

9 lines
345 B
Python

# SPDX-License-Identifier: MPL-2.0
# 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()