-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python 3.12 #12361
Add Python 3.12 #12361
Conversation
Package dependency hell:
|
I wouldn't do it on the pip-pre job but instead bump a different job. One of the
That sounds reasonable. We want to test oldest and newest at a minimum. Beyond that having some coverage is desirable but I don't think full Python version coverage is required. |
OK, I bumped the three conda-based jobs. However, conceptually it would make a lot of sense to also use the latest Python for pip-pre IMO. |
I agree, ideally we can make that switch soon. But the complications added by NumPy 2.0 make it too difficult, and testing against NumPy 2.0 is important -- it has been a pain, but it has also found all sorts of stuff for us and upstream packages to fix and change over the last 6 months or so. |
Looks like |
(Or maybe it's just numba-on-windows-3.12 -- you could try putting that one back to whatever version it was before and see if the Linux and macOS jobs work!) |
Numba 0.59, which hasn't been released yet, will support Python 3.12 (numba/numba#9246). |
0.59RC1 is available on PyPI, so maybe use that with pip-pre? |
One solution would be to change just one job (conda linux?) to use 3.12 and before the setup-miniconda or whatever we use nowadays, modify |
I thought pip-pre was the job with the incompat due to NumPy 2.0.0.dev0+Py3.12, no? It's unlikely that that RC is NumPy2.0 compatible in any case (and I do think we want to keep testing NumPy 2.0 in the pre job if possible). Another option since they're already on RC is just to wait a week or two or whatever, then bump a conda job (or a few as done here). |
Yes, but the incompatibility was because of SciPy. You're probably right that Numba won't support NumPy 2, but who knows, maybe they have already made their code compatible. So it's probably best to wait a couple of days. |
@cbrnr can I push a commit to try my idea of editing |
Yes, sure! |
Okay enabling auto-merge, but will need to manually adjust CI reqs in branch protection rules once it comes back green. I'll try to remember to check back in a bit but if someone sees everything green feel free to ping me |
Thanks @cbrnr ! |
Thank you @larsoner, you did all the work! |
Co-authored-by: Eric Larson <[email protected]>
I've replaced Python 3.11 with Python 3.12 in our
pip-pre
test onubuntu-latest
.Which versions do we want to test explicitly? Currently (with this change), we're testing 3.9 (ubuntu-latest/minimal, macos-latest/mamba, ubuntu-20.04/old), 3.10 (ubuntu-latest/conda, windows-latest/mamba), and 3.12.