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

NumPy 2.0 compatibility #2153

Open
4 of 6 tasks
wpbonelli opened this issue Apr 15, 2024 · 2 comments
Open
4 of 6 tasks

NumPy 2.0 compatibility #2153

wpbonelli opened this issue Apr 15, 2024 · 2 comments
Milestone

Comments

@wpbonelli
Copy link
Contributor

wpbonelli commented Apr 15, 2024

Opening this (somewhat belatedly) to track support for NumPy 2.0, due out soon. The maintainers recommend downstream projects make a compatible release before 2.0 drops. We have already made some progress updating API usages. The biggest consideration is our runtime dependencies on projects which depend on numpy (checks indicate whether the project has released 2.0 support)

Core requirements (pandas and mpl) are already covered. If 2.0 is imminent before all our optional dependencies support it, we will need to decide whether to release immediately or wait, but it sounds like at least a month remaining, so with luck it won't come to that.

Tasks:

@wpbonelli wpbonelli added this to the 3.7.0 milestone Apr 15, 2024
@wpbonelli
Copy link
Contributor Author

Per the latest announcement numpy 2.0 will come out in 3.5 weeks. Flopy 3.7 is planned tomorrow to coincide with MF6.5.0, but optional dependencies have not all released np2 support. I see two paths:

  • Release numpy2 support with 3.7.0, and warn that optional dependencies are not guaranteed to be compatible yet. Installs will work fine for the core flopy package, but may break for the optional dependencies if the user has np2+, as will features using them (e.g. netcdf export).
  • Keep numpy pinned <2 for 3.7.0, and plan to release numpy2 support with 3.7.1+ in the next few weeks, if/when netcdf4-python does. Installs will continue to work in the meantime, but we may end up here again if a netcdf release is not forthcoming, in which case I'm not sure anything further can be done to avoid potential breakage

@jdhughes-usgs
Copy link
Contributor

@wpbonelli I think we should pin to <2 for 3.7.0 and do another release later

@wpbonelli wpbonelli modified the milestones: 3.7.0, 3.7.1 May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants