From 6ac504d687c25c08256f716e9b4e0a597f107c80 Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Tue, 1 Jul 2025 12:52:14 +0200 Subject: [PATCH] :bug: use dynamic version to display version. - could be added to logfiles --- pyproject.toml | 3 ++- src/vuegen/__init__.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index cff7df2..d63accc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,8 @@ authors = ["MoNA group"] license = "MIT" readme = "README.md" repository = "https://github.com/Multiomics-Analytics-Group/vuegen" -version = "0.1.0" +# just a placeholder for dynamic versions, see https://pypi.org/project/poetry-dynamic-versioning/ +version = "0.0.0" [tool.poetry.dependencies] python = ">=3.9,<3.9.7 || >3.9.7,<4.0" diff --git a/src/vuegen/__init__.py b/src/vuegen/__init__.py index 3e1f602..2419227 100644 --- a/src/vuegen/__init__.py +++ b/src/vuegen/__init__.py @@ -3,4 +3,6 @@ and Streamlit web applications. Users simply provide a directory with output files and VueGen compiles them into a structured report.""" -__version__ = "1.0.0" +from importlib import metadata + +__version__ = metadata.version("vuegen")