Repository navigation
Drop support for Python 3.10 (EOL) - #682
Merged
mihaimaruseac merged 2 commits intoOct 19, 2026
Merged
Conversation
Python 3.10 reaches end of life in October 2026. Raise requires-python to >=3.11, remove the 3.10 classifier, and drop 3.10 from the hatch test and bench matrices and the unit and integration test workflows. Refs sigstore#602 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Wu <infinitebaboons@gmail.com>
With Python 3.11 as the minimum supported version, `typing.Self` is always available, so import it directly instead of falling back to `typing_extensions` behind a `sys.version_info` check. Use `datetime.UTC` and drop comments that referred to 3.10 and 3.11. `typing_extensions` stays a dependency because `override` is only in `typing` from Python 3.12. Refs sigstore#602 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Michael Wu <infinitebaboons@gmail.com>
Contributor
|
Unit tests are failing, and it doesn't seem anomalous. Once those are investigated and fixed, we can approve |
mihaimaruseac
approved these changes
Oct 19, 2026
Member
|
The unit test failures on Windows are on me, I merged #681 thinking that this was jut a flake on Windows. I'll try to send a fix, or @Support-itecz maybe can take a look? |
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.10 reaches end of life in October 2026 (PEP 619), so this drops support for it and makes Python 3.11 the minimum supported version.
Closes #602
Metadata and CI
requires-pythonraised to>=3.11and the 3.10 classifier removed.hatch-testandbenchmatrices and from theunit_tests.ymlandintegration.ymlworkflow matrices.### RemovedinCHANGELOG.md.Code cleanup
typing.Selfis always available on 3.11, so thesys.version_infocheck with atyping_extensionsfallback is replaced withfrom typing import Self(7 modules insrc/, 1 test).datetime.timezone.utcchanged todatetime.UTCinsign_certificate.py.hashing.pythat referred to 3.10 and 3.11 updated.typing_extensionsstays a dependency becauseoverrideis only intypingfrom 3.12.Ruff infers its target version from
requires-python, so the cleanup is needed forhatch fmt --checkto pass after the bump (UP035/UP036/UP017).Note for maintainers: if the branch protection rules list the
Signing with Python 3.10 on ...jobs as required checks, they will need to be removed from the repository settings, as those jobs no longer run.Testing
hatch fmt --check: passeshatch run type:check: no errorshatch teston 3.11, 3.12, 3.13 and 3.14: 218 passed on eachRequires-Python: >=3.11Checklist
🤖 Generated with Claude Code