-
Notifications
You must be signed in to change notification settings - Fork 39
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
BUG: Not NumPy 2.0 compatible #325
Comments
Numpy 2.0 is not out! There is a release candidate version for testing but the stable one isn't published yet. See https://pypi.org/project/numpy/#history. |
Correct it's not out but the most recent advice from the linked thread is:
|
Sure. Do you want to send a PR to add that to our testing? PS: I'm from a time when building stable releases with unstable Software was unwise. However, nowadays all major libraries only releases unstable RCs and requests others to ignore that fact and work with it. |
Looks like you do already test against 2.0: cftime/.github/workflows/tests_latest.yml Lines 27 to 30 in d549c09
And your pyproject.toml is nearly set up to build against NumPy 2.0: Line 7 in d549c09
More than testing, then, what's really needed I think are wheels on PyPI that are 2.0-compatible. So I'll open a PR to make the relevant change to your
Yeah not sure about other packages, but at least in the case of NumPy they have said more or less that the purpose of the RC1 is to allow people time to build and release their packages before 2.0 lands (in a couple/few weeks?) and breaks packages that didn't have an existing |
It was not my PR that added it. I would not publish it until a stable version is out though. |
Okay. This goes against the advice of the NumPy devs, though. And what you have on PyPI currently will lead to import failures once NumPy 2.0 stable does land, as there is no version protection on that release like |
I think this is solved by #319 folks - any idea when will a cftime=1.6.4 be out that'll include that fix, please? 🍺 |
NumPy 2.0.0 has officially landed so should be safe to publish a new version that's 2.0 compatible |
+1 to releasing to support numpy 2.0 ASAP! |
Hi all, I've been updating |
Modules need to be rebuilt and released now that NumPy 2.0 EDIT: RC1 is out. Importing current
cftime
from PyPI I get on Linux:See also numpy/numpy#24300 (comment)
The text was updated successfully, but these errors were encountered: