Skip to content

Commit d240591

Browse files
committed
ci: keep static __version__ in __init__.py, update upon release
1 parent f721c24 commit d240591

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ score = "no"
6868

6969
[tool.semantic_release]
7070
version_toml = ["pyproject.toml:project.version"]
71+
version_variables = ["src/pdfbaker/__init__.py:__version__"]
7172
branch = "main"
7273
build_command = """
7374
uv lock

src/pdfbaker/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
"""pdfbaker - Create PDF documents from YAML-configured SVG templates."""
22

3-
from importlib.metadata import version
4-
5-
__version__ = version("pdfbaker")
3+
__version__ = "0.8.13"
64
__all__ = ["__version__"]

0 commit comments

Comments
 (0)