From 90ed50975b237b1b3cf3a7f9fc95fc2cb0f4d26a Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Mon, 5 May 2025 15:48:39 -0500 Subject: [PATCH] Set `cache-keys` for sane `uv run` rebuilds (#39) --- pyproject.toml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index b023c84..d6241b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,6 +7,15 @@ authors = [{ name = "Astral Software Inc.", email = "hey@astral.sh" }] requires-python = ">=3.8" dependencies = [] +[tool.uv] +cache-keys = [ + { file = "pyproject.toml" }, + { file = "dist-workspace.toml" }, + { file = "ruff/Cargo.toml" }, + { file = "ruff/Cargo.lock" }, + { file = "**/*.rs" } +] + [build-system] requires = ["maturin>=1.0,<2.0"] build-backend = "maturin"