Skip to content
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

deps: support numpy 2.0 #2391

Merged
merged 3 commits into from
Jun 26, 2024
Merged

deps: support numpy 2.0 #2391

merged 3 commits into from
Jun 26, 2024

Conversation

mloubout
Copy link
Contributor

No description provided.

@mloubout mloubout added dependencies Pull requests that update a dependency file installation labels Jun 20, 2024
Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.78%. Comparing base (16746b6) to head (c56da1e).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2391   +/-   ##
=======================================
  Coverage   86.77%   86.78%           
=======================================
  Files         234      234           
  Lines       44265    44271    +6     
  Branches     8183     8184    +1     
=======================================
+ Hits        38410    38419    +9     
+ Misses       5140     5137    -3     
  Partials      715      715           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

setup.py Show resolved Hide resolved
@mloubout mloubout force-pushed the numpy2 branch 2 times, most recently from bb3cbc8 to f7c7d5c Compare June 22, 2024 01:23
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

conftest.py Outdated
@@ -453,3 +455,10 @@ def check_array(array, exp_halo, exp_shape, rotate=False):

assert tuple(array.halo) == exp_halo
assert tuple(shape) == tuple(exp_shape)


# Make Ipython use str for numpy dtypes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, is that necessary for numpy 2?


# Due to api changes in numpy 2.0, it requires sympy 1.12.1 at the minimum
# Check if sympy is installed and enforce numpy version accordingly.
# If sympy isn't installed, endforce sympy>=1.12.1 and numpy>=2.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"enforce"

Copy link
Contributor

@FabioLuporini FabioLuporini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uncontroversial, thanks

@mloubout mloubout force-pushed the numpy2 branch 2 times, most recently from b906ee0 to 5df90ea Compare June 25, 2024 14:52
@mloubout mloubout merged commit e37d6ff into master Jun 26, 2024
30 of 31 checks passed
@mloubout mloubout deleted the numpy2 branch June 26, 2024 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file installation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants