From fd294b68923cad5c3c92155197d9a533c6b07857 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sat, 15 Aug 2026 15:34:50 +0200 Subject: [PATCH] Relax numpy pin to support NumPy 2.x (#470) Relax the conservative NumPy upper bound while retaining support for NumPy 1.22 and newer.\n\nEmpirical verification built the package with pybind11 3.0.0 and tested it with NumPy 2.5.2 on Python 3.13 and macOS arm64. 28 of 32 tests pass; the remaining failures are caused by pyshader's Python 3.13 bytecode compatibility and MoltenVK's lack of shaderFloat64 support, both unrelated to NumPy. Signed-off-by: Alejandro Saucedo --- python/test/requirements-dev.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/test/requirements-dev.txt b/python/test/requirements-dev.txt index 99d811d3..14d2a5a1 100644 --- a/python/test/requirements-dev.txt +++ b/python/test/requirements-dev.txt @@ -1,4 +1,4 @@ pyshader==0.7.0 -numpy==1.22.4 +numpy>=1.22,<3 pytest==7.1.2 diff --git a/setup.py b/setup.py index 7fb3349b..8331f6af 100644 --- a/setup.py +++ b/setup.py @@ -85,7 +85,7 @@ def build_extension(self, ext): long_description_content_type='text/markdown', ext_modules=[CMakeExtension('kp')], install_requires=[ - "numpy<2.0.0" + "numpy>=1.22,<3" ], cmdclass=dict(build_ext=CMakeBuild), zip_safe=False,