Skip to content

Add support for Python 3.15 - #268

Merged
stefankoegl merged 1 commit into
masterfrom
claude/python-3.15
Nov 11, 2026
Merged

stefankoegl merged 1 commit into
masterfrom
claude/python-3.15

Conversation

@stefankoegl

Copy link
Copy Markdown
Owner
  • CI: add 3.15 to the test matrix
  • setup.py: add the Programming Language :: Python :: 3.15 classifier

The code needs no change.

One addition to the workflow

The test job's setup-python step now sets allow-prereleases: true. From the sandbox I could not confirm that a final 3.15.0 is available to setup-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::DeprecationWarning
  • python property_tests.py: 26 tests pass
  • python ext_tests.py tests.js: 87 tests pass
  • python -m build succeeds

Not 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:

  • On 3.15.0b4, Hypothesis's native module did not import until I copied it to the file name that beta expects. This looks like a beta-only naming difference rather than a problem in this project, but the 3.15 CI job is where it would show up if not.
  • argparse.FileType, which jsonpatch_cli.py uses for its inputs, raises a PendingDeprecationWarning on 3.15 (as on 3.14). The tests pass because it is not a DeprecationWarning yet.

Generated by Claude Code

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
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — claude/python-3.15 into master

@stefankoegl
stefankoegl merged commit 7be7113 into master Nov 11, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants