Fix __version__
This commit is contained in:
parent
4e9313f0c6
commit
1150bc160a
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ try:
|
|||
from dunamai import Version, Style
|
||||
|
||||
__version__ = Version.from_git().serialize(style=Style.SemVer, dirty=True)
|
||||
except ImportError:
|
||||
except (ImportError, RuntimeError):
|
||||
# __name__ can be used if the package name is the same
|
||||
# as the directory. Otherwise, specify it explicitely.
|
||||
__version__ = importlib.metadata.version(__name__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue