drop support for Python 3.8#6128
Open
alex wants to merge 1 commit into
Open
Conversation
Follows the same approach as the Python 3.7 drop (PyO3#5912): - bump minimum supported CPython version to 3.9 - remove the abi3-py38 feature; abi3-py39 is now the lowest - remove Py_3_9 cfg gates (now always true) and code that only existed for 3.8, including the backports.zoneinfo fallback and the pre-3.9 buffer protocol / dict / weakref workarounds - update CI matrices, noxfile, packaging metadata, and docs Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
Fixes #4581.
Drops support for Python 3.8, which reached end-of-life in October 2024. Follows the same approach as the Python 3.7 drop in #5912.
pyo3-build-config,pyo3-ffibuild script and package metadata).abi3-py38feature;abi3-py39is now the lowest stable-ABI target.Py_3_9cfg gates (now always true) and deletes code that only existed for 3.8, including:backports.zoneinfofallback inPyTzInfo::timezone(and the corresponding CI install step)tp_dictoffset/tp_weaklistoffsetfixups increate_type_object.rsassert_dict_supported/assert_weakref_supportedcompile-time assertions and theirabi3_dict/abi3_weakrefUI tests, sincedictandweakrefare always available from abi3-py39PyCFunction_New/NewExexterns,Py*_ClearFreeList,PyImport_Cleanup,tp_print, pre-3.9PyObject_IS_GC/PyObject_CheckBufferfallbacks, etc.)abi3-py39),requires-pythonin the variouspyproject.tomls, and documentation.🤖 Generated with Claude Code