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

style: fix numpy-deprecation-rules (NPY) #4062

Merged
merged 8 commits into from
Jul 16, 2024
Merged

style: fix numpy-deprecation-rules (NPY) #4062

merged 8 commits into from
Jul 16, 2024

Conversation

ninsbl
Copy link
Member

@ninsbl ninsbl commented Jul 15, 2024

This PR fixes the last remaning issues with numpy-deprecation-rules in ruff, that had been excluded until now.

The changes should ensure compatibility with NumPy 2.0 (see #4058).

@ninsbl ninsbl added CI Continuous integration Python Related code is in Python labels Jul 15, 2024
@ninsbl ninsbl added this to the 8.5.0 milestone Jul 15, 2024
@ninsbl ninsbl requested a review from echoix July 15, 2024 21:24
@github-actions github-actions bot added GUI wxGUI related libraries tests Related to Test Suite labels Jul 15, 2024
@echoix
Copy link
Member

echoix commented Jul 15, 2024

Shouldn't if we use numpy officially in pygrass, shouldn't we have it listed in our dependencies (as we have it transitively from matplotlib).

@echoix
Copy link
Member

echoix commented Jul 15, 2024

And you beat me to it, I was just starting a similar fix only on my phone and CI...

@ninsbl
Copy link
Member Author

ninsbl commented Jul 15, 2024

Shouldn't if we use numpy officially in pygrass, shouldn't we have it listed in our dependencies (as we have it transitively from matplotlib).

I would agree.

echoix
echoix previously approved these changes Jul 15, 2024
@ninsbl ninsbl enabled auto-merge (squash) July 15, 2024 22:24
@ninsbl ninsbl requested a review from echoix July 15, 2024 23:07
@ninsbl ninsbl linked an issue Jul 15, 2024 that may be closed by this pull request
@echoix
Copy link
Member

echoix commented Jul 15, 2024

Where did you see the last two failures that you fixed in the subsequent commits? I didn't find them

@ninsbl
Copy link
Member Author

ninsbl commented Jul 15, 2024

Where did you see the last two failures that you fixed in the subsequent commits? I didn't find them

Here: https://github.com/OSGeo/grass/actions/runs/9947526949/job/27480342764

@ninsbl ninsbl merged commit f0497c5 into OSGeo:main Jul 16, 2024
26 checks passed
@ninsbl ninsbl deleted the ruff_NPY branch July 16, 2024 07:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous integration GUI wxGUI related libraries Python Related code is in Python tests Related to Test Suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feat] Ensure compatibility with NumPy 2.0
2 participants