Skip to content

feat: drop Python 3.10 support and bump filelock to 4.2.7 - #136

Merged
HC-ONLINE merged 1 commit into
mainfrom
fix/drop-python-310-bump-filelock
Nov 2, 2026
Merged

HC-ONLINE merged 1 commit into
mainfrom
fix/drop-python-310-bump-filelock

Conversation

@HC-ONLINE

Copy link
Copy Markdown
Owner

Summary

Drops Python 3.10 support and bumps filelock to 4.2.7, closing the 13 open Dependabot alerts (#13–#25: 1 high, 9 moderate, 3 low).

Package From -> To Notes
filelock 3.32.6 -> 4.2.7 fixes all 13 alerts (first patched in 4.2.1)
exceptiongroup removed 3.10-only backport
backports-asyncio-runner removed 3.10-only backport

Why Python 3.10 has to go

This was evaluated before committing to the change:

  1. Every filelock release that fixes these alerts requires Python >= 3.11. No 3.10-compatible version (max 4.1.0) fixes 12 of the 13 advisories — uv's best effort with 3.10 kept was a split lock (4.1.0 + 4.2.6), which Dependabot still flags because 4.1.0 sits inside the vulnerable ranges (<= 4.2.0).
  2. Python 3.10 reached EOL on 2026-10-31 — it no longer receives security fixes from the PSF.
  3. No compatibility reason to keep it. The codebase has no sys.version_info shims, no typing_extensions usage in src/, and the Docker image already ships python:3.14-slim. All 3.10 references were support-matrix metadata and docs only.

The filelock vulnerabilities themselves are local multi-user lock-file flaws (symlink/journal planting, claim-directory permissions), and filelock is a dev-only transitive dependency (pre-commit -> virtualenv -> filelock), so this was not urgent — but 3.10's EOL plus the hard version gate made dropping it the clean, permanent fix rather than dismissing the alerts.

Changes

  • pyproject.toml: requires-python = ">=3.11", drop the 3.10 classifier, pyright pythonVersion = "3.11"
  • .github/workflows/ci.yml: matrix now ["3.11", "3.12", "3.13", "3.14"]
  • uv.lock: filelock 4.2.7 (single entry), re-resolved for >=3.11
  • Docs: README badge, docs/INSTALLATION.md, docs/DEVELOPMENT.md, AGENTS.md, bug-report template example

Validation

  • uv lock / uv sync --extra api --extra dev — clean resolution, single filelock entry at 4.2.7
  • uv run ruff check . — all checks pass
  • uv run pyright — 0 errors, 0 warnings (with pythonVersion = 3.11)
  • uv run pytest -m "not slow and not network" — 2110 passed, 3 failed; the 3 are the pre-existing network-fixture failures that reproduce identically on main

Follow-ups

  • Alerts close automatically once this merges to main (Dependabot re-scans uv.lock). No manual dismissal needed — strategy C (dismissals) was deliberately not applied, since B resolves every one of the 13.
  • Local validation ran on Python 3.14; CI will exercise 3.11–3.14 across the matrix.
  • Framed as feat: (per maintainer decision) rather than feat!:, so release-please will cut 2.34.0 instead of a major bump, even though 3.10 users will no longer be able to install new versions.

Python 3.10 reached EOL on 2026-10-31, and every filelock release that
fixes the 13 open Dependabot alerts (filelock lock-file symlink and
permission flaws, first patched in 4.2.1) requires Python >= 3.11.
Dropping 3.10 is therefore what makes those alerts fixable at all:

- pyproject: requires-python >=3.11, drop 3.10 classifier, pyright
  pythonVersion 3.11
- ci.yml: matrix now 3.11-3.14
- docs: README badge, INSTALLATION, DEVELOPMENT, AGENTS.md, bug template
- uv.lock: filelock 3.32.6 -> 4.2.7 (single entry); drops the
  3.10-only backports exceptiongroup and backports-asyncio-runner

Validated with ruff, pyright (0 errors) and pytest: 2110 passed; the 3
failures are the pre-existing network-fixture ones that also fail on
main.
@HC-ONLINE
HC-ONLINE merged commit 73988e4 into main Nov 2, 2026
7 checks passed
@HC-ONLINE
HC-ONLINE deleted the fix/drop-python-310-bump-filelock branch November 6, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant