Skip to content

Start testing Python 3.15#21439

Open
cdce8p wants to merge 6 commits intopython:masterfrom
cdce8p:ci-python-315
Open

Start testing Python 3.15#21439
cdce8p wants to merge 6 commits intopython:masterfrom
cdce8p:ci-python-315

Conversation

@cdce8p
Copy link
Copy Markdown
Collaborator

@cdce8p cdce8p commented May 8, 2026

The first beta for Python 3.15 was released yesterday. Start running CI tests for it.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@cdce8p cdce8p marked this pull request as draft May 8, 2026 14:44
@github-actions

This comment has been minimized.

@cdce8p cdce8p marked this pull request as ready for review May 8, 2026 23:26
Comment on lines +4 to -6
#include <Python.h>
#include <stdbool.h>
#include <stdint.h>
#include <Python.h>
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Some librt tests only compile individual c files. If Python.h isn't included first, these tests would raise ‘_POSIX_C_SOURCE’ redefined warnings on Python 3.15.

See https://bugzilla.redhat.com/show_bug.cgi?id=2416110 for a similar issue
https://docs.python.org/3/c-api/intro.html#include-files

--
No need to backport anything specifically as building librt completely works fine already. It's just if only individual files are compiled.

@github-actions

This comment has been minimized.

Comment thread pyproject.toml
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

For 3.14 we added the classifier during the beta as well, once all tests passed. See #19199.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'm okay with this, but it would be nice to make sure we support some of the headline features like lazy imports before we make a release with this classifier

@cdce8p cdce8p requested a review from hauntsaninja May 8, 2026 23:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Copy link
Copy Markdown
Collaborator

@hauntsaninja hauntsaninja left a comment

Choose a reason for hiding this comment

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

Great, thank you!

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.

2 participants