Skip to content

Commit

Permalink
docs: automatically update project version upon release
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Kaechele <felix@kaechele.ca>
  • Loading branch information
kaechele committed Dec 29, 2023
1 parent 53f644f commit 504a907
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 504a907

Please sign in to comment.