knoc-plugin-template/src/knoc_plugin_template/__init__.py
phil 7c129cc81b
All checks were successful
/ build (push) Successful in 5s
Inital commit
2025-05-28 17:36:06 +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__)