Skip to content

add support for Python 3.15#1454

Open
AlexWaygood wants to merge 1 commit into
Instagram:mainfrom
AlexWaygood:add-315
Open

add support for Python 3.15#1454
AlexWaygood wants to merge 1 commit into
Instagram:mainfrom
AlexWaygood:add-315

Conversation

@AlexWaygood

@AlexWaygood AlexWaygood commented May 29, 2026

Copy link
Copy Markdown

Summary

Add support for running and building LibCST on Python 3.15 and 3.15t.

PyO3 0.28 is needed to build the native extension on 3.15, and requires bumping the minimum Rust version to 1.83. This also updates uv and cibuildwheel for the new prerelease interpreters.

Finally, refresh coverage.py: the previously locked version crashes while tracing tests on 3.15.

Following the precedent set in [#1203, #1331 and #1345, this is a CI-focussed change that does not add support for parsing new Python 3.15 syntax. That would need to be done separately.

Fixes #1445.

Test plan

I ran all tests that I could locally; CI should hopefully confirm whether this looks in good shape!

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 29, 2026
@AlexWaygood AlexWaygood marked this pull request as ready for review May 29, 2026 14:05

@thatch thatch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good (I came up with similar changes independently).

@musicinmybrain

Copy link
Copy Markdown

This would be a good time to go ahead and bump PyO3 to 0.29, which fixes RUSTSEC-2026-0176 and RUSTSEC-2026-0177.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for Python 3.15

3 participants