-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 back support for python 3.9 for numpy 2 compatibility woes #7412
Conversation
c5dd7cc
to
c85c3d2
Compare
i expected some tests to fail, but I did not expect them to catastrophically fail like this on CPython 3.9 |
d8973a3
to
41e271e
Compare
@@ -747,10 +747,11 @@ def test_inverse_all_transforms(tform): | |||
assert_almost_equal(tform.inverse.inverse(SRC), tform(SRC)) | |||
# Test addition with inverse, not implemented for all | |||
if not isinstance( | |||
tform, | |||
EssentialMatrixTransform | |||
| FundamentalMatrixTransform |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
man, this syntax is really strange...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI it seems that this was added by some autofromatting code
@jarrodmillman is there a way for me to disable this kind of syntax reformatting?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #7430.
I think this is ready again for review. While I was very hopeful that NEP29/SPEC0 could be adhered to, I feel like we might need to rethink the general strategy of: "Does numpy continue support the longest" Given the likely release of Numpy2 for Python 3.9, I think we should continue to support it, at least until the major bugs have been caught with it. |
I'm personally not opposed to making a last release to support 3.9. 👍 |
But I'd probably prefer a patch release 0.23.3 with the relevant commits cherry-picked. I'm not sure what you are suggesting as a new version otherwise in
|
There are two options in my mind:
I'm providing the option for 0.23.3 since I think that getting the CIs working for 0.22.X will be hard. The work on the LTS still haunts me. |
It seems highly probable that numpy 2 will release a build for Python 3.9 @rgommers had asked us to add an upper bound to our releases in Jan but it seems that we didn't take action (understanding how pip solves packages is unclear to me even). Instead of releasing 0.22.1 for python 3.9 with metadata updates, i'm curious to see if we can release a new version with python 3.9. The headache of getting CIs working is what I'm hoping to avoid with this startegy xref: https://mail.python.org/archives/list/[email protected]/thread/AHTATJKGUEOILBNUI5IGGZPXJ5FXIRAU/
fb51b6f
to
29d9550
Compare
The CIs are green. Any interest in moving on this? |
I'd like to have @jarrodmillman weigh in. |
it would be good to get a move on this if there is desire. We are quite good at releasing quality packages, I think this will help many build confidence in the python ecosystem if numpy 2 doesn't break their pipelines. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very much in favour of this because:
We are quite good at releasing quality packages, I think this will help many build
confidence in the python ecosystem if numpy 2 doesn't break their pipelines.
👍
But @jarrodmillman is the expert! 🙇
For my own understanding, @hmaarrfk, what does
"Does numpy continue support the longest"
mean? I get the question
"Is numpy the first to drop support for older pythons"
and it would be good to know if that's an absolute "yes."
Co-authored-by: Marianne Corvellec <[email protected]>
should be
|
+1 from me. I will take a closer look at this today (at the Scientific Python Developer Summit!) and get something out soon. |
Does anyone know why we have Line 65 in c206205
? Just noticed: $ pip install -r requirements.txt
Ignoring tomli: markers 'python_version < "3.11"' don't match your environment
(...) while setting up my dev env in Python 3.11.3! |
@mkcor tomli was added to the standard library (as |
Thank you, @neutrinoceros, good to know! I didn't know how to interpret that |
It seems highly probable that numpy 2 will release a build for Python 3.9
@rgommers had asked us to add an upper bound to our releases in Jan but it seems that we didn't take action (understanding how pip solves packages is unclear to me even).
Instead of releasing 0.22.1 for python 3.9 with metadata updates, i'm curious to see if we can release a new version with python 3.9.
The headache of getting CIs working is what I'm hoping to avoid with this startegy
xref: https://mail.python.org/archives/list/[email protected]/thread/AHTATJKGUEOILBNUI5IGGZPXJ5FXIRAU/
xref: #7282 (comment)
Checklist
./doc/examples
for new featuresRelease note
For maintainers and optionally contributors, please refer to the instructions on how to document this PR for the release notes.