Open larsoner opened 6 months ago
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:
With numpy 2.0.0rc1 available, everyone can start doing their 2.0-compatible releases!
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.
Sure. Do you want to send a PR to add that to our testing?
Looks like you do already test against 2.0:
And your pyproject.toml is nearly set up to build against NumPy 2.0:
https://github.com/Unidata/cftime/blob/d549c09638c627f6fcec3d34b0ae38c92056667c/pyproject.toml#L7
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 cibuildwheel
run and maybe a release after that would make things future compatible?
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.
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 numpy<2
pin in their requirements. So it's a bit odd perhaps but the guidance in this case seems clear enough and hopefully not too hard to follow!
It was not my PR that added it. I would not publish it until a stable version is out though.
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 numpy < 2.0
.
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? :beer:
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 cftime
in pyodide/pyodide#4925 – since I notice that #319 has been merged and included in the 1.6.4.post1 release via #352, could this issue and #327 be closed? Thank you!
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 https://github.com/numpy/numpy/issues/24300#issuecomment-2030603395