test-woodpecker-python/src/test_woodpecker_ci/__init__.py
phil caedb1fe52
Some checks failed
ci/woodpecker/tag/test Pipeline failed
ci/woodpecker/tag/build unknown status
Use dynamic version
2025-06-25 13:49:47 +02:00

10 lines
344 B
Python

import importlib.metadata
try:
from dunamai import Version, Style
__version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True)
except ImportError:
# __name__ can be used if the package name is the same
# as the directory. Otherwise, specify it explicitely.
__version__ = importlib.metadata.version(__name__)