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
+2 -7
View File
@@ -1,4 +1,3 @@
.gitignore
.venv/
__pycache__/
*.py[cod]
@@ -7,15 +6,11 @@ __pycache__/
.mypy_cache/
.env
.env.*
docker-compose*.yml
Dockerfile
.dockerignore
*.md
!README.md
xmcp.yml
xmcp.example.yml
xmcp.local.yml
# Generated at build time
src/xmcp/_version.py
*.egg-info/
build/
dist/