Repository navigation
chore: drop Python 3.10 support - #336
Merged
Merged
Conversation
Python 3.10 reached its end of life on 2026-10-01. Every package now requires Python 3.11 or newer, and nothing tests on or installs on 3.10. - requires-python is >=3.11 in citry, citry-core, citry-lsp, citry-ui, pygments-citry, and the root project; the 3.10 classifiers are gone. uv.lock, the build-constraint pins (no tomli entry), and the eight example locks are refreshed. - CI: the test, examples, diagnostic, and publish smoke matrices start at 3.11. The Linux cell that runs the Python render path and the macOS smoke pair move from 3.10 to 3.11. The citry-core builders keep the abi3-py310 feature (moving it belongs with the PyO3 upgrade) but build with a 3.11 interpreter, and the Windows and macOS ABI3 smoke tests start at 3.11. - The tomli fallbacks are removed: scripts, validators, verifiers, release_links, the examples tooling, and citry's i18n package loader import tomllib directly. citry no longer depends on tomli. - The distribution verifiers and Citry UI's wheel qualification expect Requires-Python >=3.11. - Docs, package READMEs, and example READMEs list 3.11 through 3.14; the compatibility page says 3.15 is not supported yet. - Changelog entries in all five packages. Using 3.11-only syntax and APIs, and the comments that explain 3.10 workarounds, are left to #331; ruff's target-version stays py310 for that reason. Python 3.15 waits for the PyO3 upgrade. Part of #177. Co-Authored-By: Claude Opus 5.5 <[email protected]>
With Python 3.10 dropped, the citry_core_py feature becomes abi3-py311 (pointing at pyo3/abi3-py311, which PyO3 0.27 already offers), so the GIL-enabled CPython wheels are tagged cp311-abi3 instead of cp310-abi3. The publish and test workflows select the renamed feature and glob the new wheel names, and the release verifier, the toolchain validator, their tests, and docs/codebase.md follow. The example and benchmark uv.lock files that pin published cp310-abi3 citry-core wheels stay as they are; they refresh after a cp311-abi3 release is on PyPI. `cargo check -p citry_core_py --features abi3-py311` passes. Part of #177. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Member
Author
|
Local evidence update: the full non-cargo gate now passes on this branch (ddd7537), using a
This was run on Python 3.14 on macOS, so the PR CI matrix is still the check for 3.11 through 3.13 and the other platforms. |
This was referenced Oct 24, 2026
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.
Part of #177 (it does not close it: Python 3.15 waits for the PyO3 upgrade). Using 3.11-only syntax and APIs is left to #331.
Python 3.10 reached its end of life on 2026-10-01. Every package now requires Python 3.11 or newer.
Commit 1: drop 3.10
requires-python = ">=3.11, <4.0"in citry, citry-core, citry-lsp, citry-ui, pygments-citry, and the root project. The 3.10 classifiers are removed.uv.lock, the build-constraint pins (thetomlientry is gone), and the eight example locks are refreshed. The lock diffs only remove 3.10-only packages:exceptiongroup,tomli,backports-asyncio-runner, and the 3.10rpds-pyentry.release_links, the examples tooling, and citry's i18n package loader importtomllibdirectly. citry no longer depends ontomli.Requires-Python >=3.11.docs/codebase.md, and two design docs list 3.11 through 3.14.target-versionis pinned topy310. Ruff would otherwise followrequires-python, and the 3.11 lint and syntax changes belong to Use Python 3.11 features now that 3.10 is dropped #331.Commit 2: abi3-py311
At the maintainer's request (file list from the PyO3 lane), the
citry_core_pyfeature becomesabi3-py311, pointing atpyo3/abi3-py311, which PyO3 0.27 already provides. The GIL-enabled CPython wheels are now taggedcp311-abi3. maturin takes the tag from the lowestabi3-pyXYfeature, so the tag follows the rename.The workflows,
verify_citry_core_distribution.py, thetoolchainvalidator, their tests, anddocs/codebase.mdare updated to match.cargo check -p citry_core_py --features abi3-py311andcargo fmt --checkpass locally.Left for #331
These comments now describe 3.10 workarounds that no longer apply:
citry_ui/quality/scenarios.py:11citry/_caller_warnings.py:23_vue/direct_capture.py:351_vue/leaf_program.py:3145citry_ui/components/_attrs.py:10,19(thenoqa)These pieces of code only matter on 3.10:
get_int_max_str_digitsfallback incitry/util/html.py:206typing_extensionscomment indocs_site/examples/recursion/component.py:11, which readers see on a docs pagefeature_version=(3, 10)indocs_site/_internal/live_code.py:151PythonVersion::PY310incrates/citry_template_formatter/src/python.rs:63,72Post-release step
The example and benchmark
uv.lockfiles that pin publishedcp310-abi3citry-core wheels stay as they are. Relock them once acp311-abi3citry-core is on PyPI.For release prep (not changed here)
packages/py/citry_lsp/README.mdsays citry-lsp requires Citry 0.6.0, while its changelog says 0.7.0. The pyproject still sayscitry>=0.6.0; that minimum moves in the release PR.Evidence
scripts/check.py --profile fastphase except pytest passed locally: uv lock, ruff, ruff format, mypy and mypy--platform linux, pyright, the Node checks, the protocol checks, and the validators.citry_corepredates fix: decode static template references once, as Vue does #330's Rust change, so the full local pytest run fails on "unknown compiler identity" for reasons unrelated to this change. PR CI buildscitry_corefresh and is the real check for pytest, the cargo phases, and the Python version matrix. I will post a local pytest result here once a fresh build is available.🤖 Generated with Claude Code