Version harden
Some checks failed
/ test (push) Waiting to run
ci/woodpecker/push/test Pipeline failed

This commit is contained in:
phil 2025-06-28 04:20:38 +02:00
parent 64d564f519
commit 023429e38a

View file

@ -4,7 +4,7 @@ try:
from dunamai import Version, Style from dunamai import Version, Style
__version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True) __version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True)
except ImportError: except (ImportError, RuntimeError):
# __name__ could be used if the package name is the same # __name__ could be used if the package name is the same
# as the directory - not the case here # as the directory - not the case here
# __version__ = importlib.metadata.version(__name__) # __version__ = importlib.metadata.version(__name__)