Start testing Python 3.15#21439
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
| #include <Python.h> | ||
| #include <stdbool.h> | ||
| #include <stdint.h> | ||
| #include <Python.h> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Found a few more instances, so decided to create a separate PR after all. #21446
This comment has been minimized.
This comment has been minimized.
| "Programming Language :: Python :: 3.12", | ||
| "Programming Language :: Python :: 3.13", | ||
| "Programming Language :: Python :: 3.14", | ||
| "Programming Language :: Python :: 3.15", |
There was a problem hiding this comment.
For 3.14 we added the classifier during the beta as well, once all tests passed. See #19199.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Lazy imports do actually work already. At least with the "old" parser. See #20978 for more on that.
I'd be ok with removing the classifier for now if that's blocking the merge for you. We can always add it later as long as we don't forget to.
|
According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅ |
|
Cool, I filed #21447 |
The first beta for Python 3.15 was released yesterday. Start running CI tests for it.