-
-
Notifications
You must be signed in to change notification settings - Fork 10.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
MAINT: Start testing with Python 3.11. #21308
Conversation
There are 3 warnings about numpy/numpy/core/src/multiarray/scalarapi.c Line 709 in 28e624d
The others come from cython.
|
This looks unnecessary 🤔, cached hash value for |
Thanks for getting this going. I think we should throw in a Then this will start failing on the beta releases if we have not cleared up the warnings. Does that make sense? |
... assuming tests pass after we can get a build |
Hmm. Now the compile failed with another cython error, this one has been fixed and will be part of 0.29.29.
I wonder if there is an easy way to get CI to use Cython HEAD from a git commit for the 3.11 run? |
7a62798
to
ac0838e
Compare
Amazing, only one failure on Python 3.11 👍 |
6a5fa8a
to
08569fc
Compare
I could track the |
Looks like it is passing. Could you open an issue for updating to Cython 0.29.29, working around the |
I'd prefer to wait for a Cython release rather than complicate things. There are also Cython versions specified in |
Did you mean 1.24.x (because 1.22 has been released so the branching in May is going to be for 1.23...)? If so, I'd like to ask that if the backports aren't too onerous, it would be nice to start supporting python 3.11 already with a 1.23 point-release (similar to how 1.19.3 added support for python 3.9 and 1.21.3 added support for 3.10) |
That is how we will do it once the first release candidate is out. We will start testing with the first beta, due 2022-05-06. And yes, it is 1.23 that will be branched next month. |
08569fc
to
de457df
Compare
Rebased. |
de457df
to
ee84d50
Compare
@mattip I rebased from the |
ee84d50
to
88197b6
Compare
Now that #21543 is merged, could you rebase this PR? The Python 3.11 CI now might pass without any errors! |
88197b6
to
34b9ac6
Compare
Thanks 👍 , rebased. |
The previous error is now gone, but it seems that Failure summary
|
It's perhaps not surprising that there's new typing attributes in python 3.11:
The test already indicates the dependence on the cpython version ( |
I would suggest putting in a The relevant |
#21605 is merged but rerunning the failed CI job did not clear the error. Maybe a rebase on |
@felixxm Could you rebase this PR? |
34b9ac6
to
3aff21e
Compare
Rebased |
3aff21e
to
1d02d1b
Compare
It works 🚀 🎉 |
Could you get rid of |
The delegation of int() to __trunc__ was deprecated in Python 3.11, see python/cpython@b4bd1e1
1d02d1b
to
f04688d
Compare
Sure if you think it's not worth changing. Removed. |
Thanks @felixxm . |
Could this PR also be backported to the 1.23 maintenance branch? |
@EwoutH It is already marked for backport. |
We're having issues building
numpy
with Python 3.11 in Django tests, so I wanted to help makenumpy
compatible with Python 3.11.