Repository navigation
py(chore[floor]): Require Python 3.11 - #158
Merged
Merged
Conversation
why: Python 3.10 reached end of life in October 2026. requires-python, the 3.10 classifier, mypy and ruff targets, and the 3.10 backport markers all still described a floor nobody supports. `uv lock` collapses the 3.10-only forks, and `ruff check --fix` applies one rewrite the repo's existing UP rules select (datetime.UTC). what: - pyproject.toml: requires-python >=3.11, drop the 3.10 classifier, mypy python_version and ruff target-version to 3.11, drop the typing-extensions markers for python_version < '3.11' (nothing imports typing_extensions), drop the scripts-only py311 override. - uv.lock: re-resolved with `uv lock` alone. Only 3.10-only forks left (aiofile 3.8.8, sphinx 8.1.3, tomli, watchdog 6.0.0 and similar); no package in the >=3.11 fork moved. - docs/_ext/widgets/mcp_install.py: datetime.timezone.utc -> UTC. - scripts/mcp_swap.py, .tool-versions: drop Python 3.10. Test plan: - ruff check and format --check, mypy (. and .github/scripts), .github/scripts tests, py.test -n auto (953 passed, 6 skipped), `just build-docs`, `uv build`.
why: The README, install page, troubleshooting page, compatibility table and CONTRIBUTING still named Python 3.10 after the floor moved. what: - README.md, docs/installation.md, docs/topics/troubleshooting.md: Python 3.11+. - docs/reference/compatibility.md: drop the 3.10 row. - .github/CONTRIBUTING.md: the CI scripts no longer differ from the library's floor. - CHANGES: add a breaking-change entry.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #158 +/- ##
=======================================
Coverage 87.03% 87.03%
=======================================
Files 47 47
Lines 3964 3964
Branches 601 601
=======================================
Hits 3450 3450
Misses 354 354
Partials 160 160 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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
Raise the Python floor from 3.10 to 3.11. Python 3.10 reached end of life
in October 2026. No release is cut.
Changes
requires-python = ">=3.11,<4.0"; drop the 3.10 classifier; mypy andruff target 3.11; drop the
python_version < '3.11'typing-extensionsmarkers and the scripts-only py311 override.
uv.lockre-resolved withuv lockalone: the 3.10-only forks vanishand no package in the
>=3.11fork moves.soupsievekeeps its 2.10entry for Python before 3.11.5, which is a separate fork.
ruff check --fixwith the existing rules:datetime.UTCindocs/_ext/widgets/mcp_install.py.CONTRIBUTING and a
CHANGESbreaking-change entry state 3.11.Test plan
ruff check,ruff format --check,mypy .,mypy --python-version 3.11 .github/scriptspytest .github/scripts/test_tmux_build.py --reruns=0py.test -n auto: 953 passed, 6 skippedjust build-docs,uv build