build: let uv track git version changes; copy full checkout in Docker

Add uv cache-keys for the commit and tags so the editable install is
refreshed when the git state changes, and copy the complete checkout
(with .git) into the builder so setuptools-scm sees a clean worktree.
Previously the partial copy made git describe report a dirty tree and
tagged Docker builds got a development version suffix.
This commit is contained in:
2026-10-22 04:05:31 +00:00
parent 5db454f8c8
commit 63c5497a83
3 changed files with 13 additions and 12 deletions
+7
View File
@@ -25,3 +25,10 @@ version_file = "src/xmcp/_version.py"
[tool.setuptools_scm.tag]
prefix = "release/"
[tool.uv]
# setuptools-scm derives the version from git; make uv notice commit/tag changes.
cache-keys = [
{ file = "pyproject.toml" },
{ git = { commit = true, tags = true } },
]