Skip to content

Commit 7cdffa1

Browse files
me-herdstansby
andauthored
Update pyproject.toml - zfpy Versioning (#671)
* Update pyproject.toml - zfpy Versioning Zfpy release 1.0.1 which supports numpy > 2.0. * Removing numpy verison warning from zfpy * Removing unused imports. * precommit fix * precommit * Updated Changelog * Precommit changes. * Version check for zfpy lower than 1.0.1 --------- Co-authored-by: David Stansby <[email protected]>
1 parent 095de5c commit 7cdffa1

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

docs/release.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Fixes
2828
* Fixes issue with ``Delta`` Zarr 3 codec not working with ``astype``.
2929
By :user:`Norman Rzepka <normanrz>`, :issue:`664`
3030

31+
* Removed Version Check: The previous code included a check for the `NumPy` version
32+
and a warning if the version was incompatible with `zfpy`.
33+
This check has been removed because `zfpy` now supports the newer versions of `NumPy`.
34+
By :user:`Meher Gajula <me-her>`, :issue:`672`
3135

3236
Improvements
3337
~~~~~~~~~~~~

numcodecs/zfpy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
if _zfpy_version:
1414
# Check NumPy version
1515
_numpy_version: tuple = tuple(map(int, version("numpy").split('.')))
16-
if _numpy_version >= (2, 0, 0) and _zfpy_version <= (1, 0, 1): # pragma: no cover
16+
if _numpy_version >= (2, 0, 0) and _zfpy_version < (1, 0, 1): # pragma: no cover
1717
_zfpy_version = ()
1818
warnings.warn(
1919
"NumPy version >= 2.0.0 detected. The zfpy library is incompatible with this version of NumPy. "

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,7 @@ msgpack = [
6363
"msgpack",
6464
]
6565
zfpy = [
66-
"zfpy>=1.0.0",
67-
"numpy<2.0.0",
66+
"zfpy>=1.0.0"
6867
]
6968
pcodec = [
7069
"pcodec>=0.3,<0.4",

0 commit comments

Comments
 (0)