Repository navigation
build!: drop Python 3.10 support - #360
Conversation
Python 3.10 reaches its end of life in October 2026, and the mkdocstrings release that works with pymdown-extensions 12 (1.0.8) requires Python 3.11. - Require Python 3.11 or later; drop the 3.10 classifier. - Set ruff's target-version and mypy's python_version to 3.11. - Import Self from typing; drop the typing_extensions dependency. - Raise the docs extra's mkdocstrings floor to 1.0.8. - Test on 3.11-3.14 only; the lowest-dependencies job moves to 3.11. - Publish no py3.10 images. BREAKING CHANGE: FOCA no longer supports Python 3.10, no py3.10 images are published, and typing_extensions is no longer a dependency. Closes #347 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideThis breaking change drops Python 3.10 support by requiring Python 3.11+, updating Python-specific tooling and standard-library typing imports, removing the direct typing_extensions dependency, and synchronizing CI, release image matrices, documentation dependencies, and installation guidance. File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Needs a human reviewer. A release built from this change will declare Python 3.11 as the minimum, preventing Python 3.10 users from installing or upgrading to it. Reverting the source cannot change metadata on an already published release, but a follow-up release can restore support.
Python 3.10 support was dropped in #360 without a migration note. Co-Authored-By: Claude Fable 5.1 <[email protected]>
Summary
Python 3.10 reaches its end of life in October 2026. It also blocks local docs builds: mkdocstrings 1.0.6 and older fail with pymdown-extensions 12, and the fixed 1.0.8 requires Python 3.11.
pyproject.toml:requires-python = ">=3.11"; the 3.10 classifier is dropped.target-version = "py311", mypypython_version = "3.11".typing_extensionsdependency is gone (Selfnow comes fromtyping).docsextra requiresmkdocstrings[python]>=1.0.8.checks.yml): tests and the image build run on 3.11-3.14; the lowest-direct-dependencies job moves from 3.10 to 3.11.release.yml): nopy3.10images; the default image stays 3.13.docs/getting-started.md: "Python 3.11 or later".No code needed changing for 3.11 features: ruff reports no new findings with the 3.11 target, and FOCA does not use
tomli.Closes #347
Breaking: FOCA requires Python 3.11 or later; no
py3.10images are published;typing_extensionsis no longer a FOCA dependency (apps that import it must declare it themselves; pydantic still pulls it in).Expected check changes
The checks
Unit tests (Python 3.10, MongoDB 7.0)andUnit tests (Python 3.10, lowest direct dependencies)no longer run; the latter becomesUnit tests (Python 3.11, lowest direct dependencies). Python 3.10 jobs are no longer required checks.How it was verified
ruff check .,ruff format --check .,mypy(68 files): pass.pytestwith MongoDB 7: 1050 passed on Python 3.13 and 3.14.mkdocs build --strict: passes.uv pip install --resolution lowest-direct '.[dev,docs]': install, ruff andmkdocs build --strictpass; all tests that don't need MongoDB pass.Declined review findings
Open questions
None.
🤖 Generated with Claude Code
Summary by Sourcery
Drop Python 3.10 support and update the project, documentation tooling, CI, and release images for Python 3.11 and later.
Enhancements:
Build:
CI:
Deployment:
Documentation: