Skip to content

Enable testing with Python 3.15 - #32202

Merged
tacaswell merged 2 commits into
matplotlib:mainfrom
QuLogic:py315
Oct 21, 2026
Merged

tacaswell merged 2 commits into
matplotlib:mainfrom
QuLogic:py315

Conversation

@QuLogic

@QuLogic QuLogic commented Aug 12, 2026

Copy link
Copy Markdown
Member

PR summary

Since Python 3.15 has now had its first release candidate, the wheel ABI is stable, and we can start to see wheels being deployed. So we should be able to enable testing as well.

AI Disclosure

None

PR quality check

  • Use an expressive title, e.g. "Fix title font property precedence"
  • New and changed code is tested
  • [n/a] Plotting related features are demonstrated in an example
  • [n/a] New features and API changes have release notes
  • Documentation complies with general and docstring guidelines

@QuLogic

QuLogic commented Aug 15, 2026

Copy link
Copy Markdown
Member Author

Very strange that so many things are hanging here; I cannot reproduce this locally with whatever toolkits I can install.

@scottshambaugh

Copy link
Copy Markdown
Contributor

Heads up that python 3.15rc3 is released now, with full release set for October 9.

https://www.python.org/downloads/release/python-3150rc3/

@scottshambaugh

Copy link
Copy Markdown
Contributor

3.15 is out now

@tacaswell
tacaswell marked this pull request as ready for review October 12, 2026 02:43
@tacaswell tacaswell closed this Oct 12, 2026
@tacaswell tacaswell reopened this Oct 12, 2026
@tacaswell

Copy link
Copy Markdown
Member

power-cycled to re-run CI.

@QuLogic

QuLogic commented Oct 14, 2026

Copy link
Copy Markdown
Member Author

Still seems to be timing out with Tk backend tests, and still I can't reproduce it locally.

@timhoffm

Copy link
Copy Markdown
Member

There are also timeouts for

  • lib/matplotlib/tests/test_backends_interactive.py::test_lazy_auto_backend_selection
  • lib/matplotlib/tests/test_backends_interactive.py::test_qt_missing

maybe it’s not a Tk-specific issue but more generally a subprocess topic. I’d try to deactivate parallel test execution to exclude any race conditions.

@QuLogic

QuLogic commented Oct 15, 2026

Copy link
Copy Markdown
Member Author

We can try, but both could still be hanging trying to auto-select Tk. The subprocess tests in, e.g., test_rcparams.py seem okay.

@QuLogic
QuLogic force-pushed the py315 branch 2 times, most recently from d31cccb to 4335d4d Compare October 16, 2026 00:25
Comment thread .github/workflows/tests.yml Outdated
@QuLogic QuLogic mentioned this pull request Oct 16, 2026
2 tasks done
@QuLogic
QuLogic force-pushed the py315 branch 4 times, most recently from 9cfcb58 to 4a10f88 Compare October 20, 2026 03:44
Since Python 3.15 has now had its first release candidate, the wheel ABI
is stable, and we can start to see wheels being deployed. So we should be
able to enable testing as well.
We can re-enable these once the packages have tested wheels available,
and Tk doesn't freeze.
@QuLogic

QuLogic commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

The final Python 3.15 release seemed to have fixed the code coverage brokenness, so I tried again with Tk, but it's still hanging, so I'm leaving that out again.

@timhoffm timhoffm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Let's get 3.15 in now. We should investigate the Tk issues in a follow-up.

@tacaswell
tacaswell merged commit 98dd035 into matplotlib:main Oct 21, 2026
44 checks passed
@QuLogic
QuLogic deleted the py315 branch October 21, 2026 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI: testing CI configuration and testing Maintenance

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants