-
Notifications
You must be signed in to change notification settings - Fork 47
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
Numpy 2.0 compatibility #1420
Numpy 2.0 compatibility #1420
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #1420 +/- ##
===========================================
+ Coverage 82.02% 83.89% +1.86%
===========================================
Files 160 160
Lines 13107 13107
===========================================
+ Hits 10751 10996 +245
+ Misses 2356 2111 -245 ☔ View full report in Codecov by Sentry. |
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.
Nice, thank you!
setup.cfg
Outdated
@@ -47,7 +47,7 @@ keywords = | |||
|
|||
[options] | |||
install_requires = | |||
numpy >= 1.19.1, != 1.24.0 | |||
numpy >= 2.0 |
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.
None of the changes here requires numpy >= 2.0
, right?
@@ -47,7 +47,7 @@ keywords = | |||
|
|||
[options] | |||
install_requires = | |||
numpy >= 1.19.1, != 1.24.0 | |||
numpy >= 1.19.1, != 1.24.0, < 2.0 |
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 think either requiring <2.0 or >=2.0 will be a pain to users, so I'd avoid that here.
The current issue with nlopt can be solved by installing numpy<2.0 specifically in the respective tox env. (Consider opening an nlopt issue regarding numpy2.0 support if there isn't any yet.)
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.
Agreed. Changed it accordingly for now.
Changed through
ruff check path/to/code/ --select NPY201
as explained here