Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "labops"
version = "0.9.1"
dynamic = ["version"]
description = "YAML Based homeLAB"
readme = "README.md"
requires-python = ">=3.12"
Expand All @@ -25,6 +25,11 @@ Issues = "https://github.com/FreezeManny/labops/issues"
requires = ["hatchling"]
build-backend = "hatchling.build"

# The version lives in src/__about__.py so that release bumps never touch
# uv.lock; see the comment there.
[tool.hatch.version]
path = "src/__about__.py"

[tool.hatch.build.targets.wheel]
packages = ["src", "models", "labops_cli.py"]

Expand Down
6 changes: 2 additions & 4 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,9 @@
"package-name": "labops",
"release-type": "python",
"extra-files": [
"pyproject.toml",
{
"type": "toml",
"path": "uv.lock",
"jsonpath": "$.package[?(@.name=='labops')].version"
"type": "generic",
"path": "src/__about__.py"
}
]
}
Expand Down
6 changes: 6 additions & 0 deletions src/__about__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# The single source of truth for the version, deliberately kept out of
# pyproject.toml. uv records a version for the root package in uv.lock only when
# pyproject states one statically, so a release bump there left the lock stale
# and `uv sync --locked` failed on every release PR. With a dynamic version the
# lock carries no version at all and the bump cannot desynchronise it.
__version__ = "0.9.1" # x-release-please-version
1 change: 0 additions & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.