Skip to content

Commit

Permalink
Retrieve package version dynamically (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Mar 7, 2022
1 parent fb13b46 commit aded321
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
4 changes: 3 additions & 1 deletion backend/streams_explorer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
"""Streams Explorer."""
__version__ = "1.5.0"
import importlib.metadata

__version__ = importlib.metadata.version(__name__)

0 comments on commit aded321

Please sign in to comment.