Drop Python 3.9 (EOL); require patched pytest 9.x (v2.4.0) - #71
Merged
Conversation
Python 3.9 reached end-of-life on 2025-10-05 and no longer receives CPython security fixes. pytest 9.x already dropped it, which left the 3.9 test environment stuck on pytest 8.4.2 — the version flagged by GHSA-6w46-j5rx-g56g (tmpdir handling), with no fix available for 3.9. Raise the floor to Python 3.10 so every supported runtime resolves to patched pytest 9.x, clearing the advisory. Bump requires-python and the trove classifier, drop 3.9 from the CI matrix and the min-deps job, pin pytest>=9.0.3, and bump the version to 2.4.0. Co-Authored-By: Claude Opus 4.8 <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
Python 3.9 reached end-of-life on 2025-10-05 and no longer receives CPython security fixes. pytest 9.x already dropped 3.9, which left the 3.9 test environment pinned to pytest 8.4.2 — the version flagged by GHSA-6w46-j5rx-g56g (vulnerable tmpdir handling), with no fix available for 3.9 (the patch, 9.0.3, requires Python ≥3.10).
Raising the floor to Python 3.10 makes every supported runtime resolve to patched pytest 9.x, removing the vulnerable pin from
uv.lockand clearing the Dependabot alert.Changes
requires-python = ">=3.10"and dropped thePython :: 3.9trove classifier.3.9from the CI test matrix and switched themin depsjob's floor interpreter to 3.10.pytest>=9.0.3in the dev group (replacing the temporary per-version marker workaround);uv.locknow resolves a single patched pytest 9.1.1 instead of the 8.4.2 / 9.1.1 split.Verification
--resolution lowest-direct(SQLAlchemy 2.0.0 floor): 90 passing.pytest==8.4.2pin no longer appears inuv.lock.Resolves the open Dependabot alert (GHSA-6w46-j5rx-g56g).
🤖 Generated with Claude Code