From 504a907efeb35a9d6981f6cb8cb800b2f129fd03 Mon Sep 17 00:00:00 2001 From: Felix Kaechele Date: Fri, 29 Dec 2023 18:23:09 +0100 Subject: [PATCH] docs: automatically update project version upon release Signed-off-by: Felix Kaechele --- docs/conf.py | 2 +- pyproject.toml | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 9939e40..31a4100 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -9,7 +9,7 @@ project = "Bonaparte" copyright = "2023, Felix Kaechele" author = "Felix Kaechele" -release = "0.1.0" +release = "0.3.0" # -- General configuration --------------------------------------------------- # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration diff --git a/pyproject.toml b/pyproject.toml index 5975171..1baaa08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -49,7 +49,10 @@ pillow = "<10" logging_use_named_masks = true branch = "main" version_toml = ["pyproject.toml:tool.poetry.version"] -version_variables = ["src/bonaparte/__init__.py:__version__"] +version_variables = [ + "src/bonaparte/__init__.py:__version__", + "docs/conf.py:release", +] build_command = "pip install poetry && poetry build" [tool.pytest.ini_options]