diff --git a/.bumpversion.cfg b/.bumpversion.cfg index 8f6134a2..8e56c6db 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -6,7 +6,3 @@ tag = True [bumpversion:file:backend/pyproject.toml] search = version = "{current_version}" replace = version = "{new_version}" - -[bumpversion:file:backend/streams_explorer/__init__.py] -search = __version__ = "{current_version}" -replace = __version__ = "{new_version}" diff --git a/backend/streams_explorer/__init__.py b/backend/streams_explorer/__init__.py index 383e9567..43cb5b6e 100644 --- a/backend/streams_explorer/__init__.py +++ b/backend/streams_explorer/__init__.py @@ -1,2 +1,4 @@ """Streams Explorer.""" -__version__ = "1.5.0" +import importlib.metadata + +__version__ = importlib.metadata.version(__name__)