Skip to content

Conversation

@jarrodmillman
Copy link
Contributor

@jarrodmillman jarrodmillman commented May 31, 2023

This PR fixes np.alltrue and np.product deprecation warnings for NumPy 1.25. It also disables testing on NumPy 1.25 due to changes that need to be more closely examined. If merged, I will create a new PR removing the NumPy upper pin for testing so we can sort through the issue without making the main branch and every new PR fail due to this known issue.

@jarrodmillman jarrodmillman added this to the 0.21 milestone May 31, 2023
@jarrodmillman jarrodmillman added the 🔧 type: Maintenance Refactoring and maintenance of internals label May 31, 2023
@jarrodmillman jarrodmillman marked this pull request as draft May 31, 2023 01:11
@jarrodmillman jarrodmillman force-pushed the numpy-1.25-deprecations branch from 0812663 to 74d533c Compare May 31, 2023 01:19
@jarrodmillman jarrodmillman marked this pull request as ready for review May 31, 2023 01:23
Comment on lines +33 to +34
perl -pi -e 's/numpy>=1.21.1/numpy>=1.21.1,<1.25/g' requirements/default.txt
perl -pi -e 's/numpy>=1.21.1/numpy>=1.21.1,<1.25/g' requirements/build.txt
Copy link
Member

Choose a reason for hiding this comment

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

I think this needs to be removed?

Copy link
Contributor Author

@jarrodmillman jarrodmillman May 31, 2023

Choose a reason for hiding this comment

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

Those lines disable testing on NumPy 1.25. That is the point of 74d533c.

Without that the tests will continue to fail on main and on all PRs from main. The idea is to merge this PR and make a PR to remove those lines and figure out how to fix the remaining errors with NumPy 1.25.

Copy link
Member

@stefanv stefanv left a comment

Choose a reason for hiding this comment

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

Suggested a different spelling of all, otherwise LGTM.

Co-authored-by: Stefan van der Walt <[email protected]>
@jarrodmillman jarrodmillman merged commit 4aa38d1 into scikit-image:main May 31, 2023
@stefanv
Copy link
Member

stefanv commented May 31, 2023

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔧 type: Maintenance Refactoring and maintenance of internals

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants