Repository navigation
Add support for Python 3.15 - #268
Merged
Merged
Conversation
Test on Python 3.15 in CI and declare it in the classifiers. The code needs no change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PewzpjVeke4LTQ7Q88nyu6
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.
3.15to the test matrixsetup.py: add theProgramming Language :: Python :: 3.15classifierThe code needs no change.
One addition to the workflow
The test job's
setup-pythonstep now setsallow-prereleases: true. From the sandbox I could not confirm that a final 3.15.0 is available tosetup-python; the only build I could get was 3.15.0b4. With the option, the job uses a pre-release only when a version has no final release, so it is harmless for the other versions. If 3.15.0 final is out, the line can simply be dropped.Verification
Run locally on CPython 3.15.0b4:
python tests.py: 360 tests pass, also with-W error::DeprecationWarningpython property_tests.py: 26 tests passpython ext_tests.py tests.js: 87 tests passpython -m buildsucceedsNot checked on 3.15: the stub and docs jobs, which CI runs on 3.13 only.
Two things I ran into that are not part of this PR:
argparse.FileType, whichjsonpatch_cli.pyuses for its inputs, raises aPendingDeprecationWarningon 3.15 (as on 3.14). The tests pass because it is not aDeprecationWarningyet.Generated by Claude Code