Use models namespace

This commit is contained in:
Jensun Ravichandran
2021-04-21 13:30:50 +02:00
parent c8b7ea2e97
commit f4e703abee
3 changed files with 11 additions and 11 deletions

View File

@@ -0,0 +1,8 @@
from importlib.metadata import version, PackageNotFoundError
VERSION_FALLBACK = "uninstalled_version"
try:
__version__ = version(__name__.replace(".", "-"))
except PackageNotFoundError:
__version__ = VERSION_FALLBACK
pass