From 1f82bacb6ba49d948c94740d9a4da9777a2bb460 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Fri, 24 Jul 2026 08:41:19 +0100 Subject: [PATCH] add uv cache keys to project template --- src/templates/pyproject.toml.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/templates/pyproject.toml.j2 b/src/templates/pyproject.toml.j2 index 5f051ef51..8b9335768 100644 --- a/src/templates/pyproject.toml.j2 +++ b/src/templates/pyproject.toml.j2 @@ -35,3 +35,13 @@ exclude = [ "**/*.pyo" ] {% endif -%} + +[tool.uv] +cache-keys = [ + { file = "pyproject.toml" }, + { file = "Cargo.toml" }, + { file = "Cargo.lock" }, + { file = "**/*.rs" }, + { env = "MATURIN_PEP517_ARGS" }, + { env = "RUSTFLAGS" } +]