Use dynamic version
Some checks failed
ci/woodpecker/tag/test Pipeline failed
ci/woodpecker/tag/build unknown status

This commit is contained in:
phil 2025-06-25 13:49:47 +02:00
parent d4dcbac8d9
commit caedb1fe52

View file

@ -0,0 +1,10 @@
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__)