Repository navigation
build: add Python 3.15 support - #35
Merged
Merged
Conversation
Widen requires-python to <3.16, add the 3.15 classifier and CI matrix entry, and relock so 3.15 wheels are resolved. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
notdodo
force-pushed
the
build/python-3.15
branch
from
November 15, 2026 09:44
06211c6 to
6475770
Compare
Cache `.venv`, `.mypy_cache`, and the uv directory keyed on the Python version and `uv.lock`, and skip dependency installation on a cache hit, matching the former DigintLab/github python-ci workflow. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
notdodo
added a commit
that referenced
this pull request
Nov 15, 2026
## Problem The `.venv` cache added in #35 breaks CI on any PR whose `uv.lock` already has a cache entry (#31 is failing because of it): 1. setup-uv's `python-version` only selects the interpreter. The actual Python download happens during `uv sync`, into `uv-python-dir`, and that directory wasn't cached. 2. On a cache hit, `.venv` was restored but its interpreter wasn't. `uv run` logged `Ignoring existing virtual environment linked to non-existent Python interpreter`, deleted the venv, and recreated it with only the default groups, dropping the `redaction` extra. 3. "Install dependencies" was skipped because of the hit, so `mypy` failed with 11 `import-not-found` errors for presidio. ## Fix - **`cache-python: true` on setup-uv:** the uv-managed interpreter is cached and restored, so the restored `.venv` links to a Python that exists. - **`.venv` and `.mypy_cache` are still cached,** keyed per Python version and `uv.lock`, as upstream did. The `~/.local/.cache/uv` path is dropped because it isn't the uv cache directory under setup-uv, which caches wheels itself. - **`task install` always runs.** On a valid restored venv it's a no-op of about a second. If a restore is ever partial, it repairs the venv, so CI never runs silently without the `redaction` extra. - **Unchanged:** `uv build` and all action versions. ## Validation - actionlint and zizmor 1.32.0 pass. - On GitHub, the first run saves the cache. I'll rerun to confirm the cache hit: the venv should be reused, there should be no "non-existent Python interpreter" warning, and the install step should be near-instant. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








Summary
requires-pythonwidened from>=3.13,<3.15to>=3.13,<3.16; added thePython :: 3.15classifier.uv.lockrelocked; the extra lines are the cp315 wheel entries. No dependency version changes.Validation
redactionextra (spaCy and presidio included):mypystrict is clean, andpytest -m "not e2e" --max-warnings=0passes all 135 tests with no deprecation warnings.task format check testanduv buildpass on the default interpreter.Notes
Unreleasedsection. Whichever merges second needs a one-line rebase.🤖 Generated with Claude Code