From 7cdffa13e4a59223f548dbb2ad8460640ee5e531 Mon Sep 17 00:00:00 2001 From: Meher Gajula <64327181+me-her@users.noreply.github.com> Date: Sat, 4 Jan 2025 09:13:35 -0600 Subject: [PATCH] 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 --- docs/release.rst | 4 ++++ numcodecs/zfpy.py | 2 +- pyproject.toml | 3 +-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/release.rst b/docs/release.rst index 68a751d3..c4fe4db0 100644 --- a/docs/release.rst +++ b/docs/release.rst @@ -28,6 +28,10 @@ Fixes * Fixes issue with ``Delta`` Zarr 3 codec not working with ``astype``. By :user:`Norman Rzepka `, :issue:`664` +* Removed Version Check: The previous code included a check for the `NumPy` version + and a warning if the version was incompatible with `zfpy`. + This check has been removed because `zfpy` now supports the newer versions of `NumPy`. + By :user:`Meher Gajula `, :issue:`672` Improvements ~~~~~~~~~~~~ diff --git a/numcodecs/zfpy.py b/numcodecs/zfpy.py index eda4bfc2..831952a5 100644 --- a/numcodecs/zfpy.py +++ b/numcodecs/zfpy.py @@ -13,7 +13,7 @@ if _zfpy_version: # Check NumPy version _numpy_version: tuple = tuple(map(int, version("numpy").split('.'))) - if _numpy_version >= (2, 0, 0) and _zfpy_version <= (1, 0, 1): # pragma: no cover + if _numpy_version >= (2, 0, 0) and _zfpy_version < (1, 0, 1): # pragma: no cover _zfpy_version = () warnings.warn( "NumPy version >= 2.0.0 detected. The zfpy library is incompatible with this version of NumPy. " diff --git a/pyproject.toml b/pyproject.toml index 7dfadb5d..059a2534 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -63,8 +63,7 @@ msgpack = [ "msgpack", ] zfpy = [ - "zfpy>=1.0.0", - "numpy<2.0.0", + "zfpy>=1.0.0" ] pcodec = [ "pcodec>=0.3,<0.4",