From 2d4908330040e66f212123771d6180ba5ae11596 Mon Sep 17 00:00:00 2001 From: andrijapau Date: Fri, 16 Jan 2026 15:28:26 -0500 Subject: [PATCH 1/3] drop support for numpy 1.X --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index eabf9cc6b7..bd04a0eaf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ known_third_party = ["diastatic-malt", "jax", "jaxlib", "numpy", "pennylane"] skips = ["B607"] [build-system] -requires = ["setuptools>=62", "wheel", "pybind11>=2.12.0", "numpy!=2.0.0", "nanobind", "cmake", "ninja"] +requires = ["setuptools>=62", "wheel", "pybind11>=2.12.0", "numpy>2.0.0", "nanobind", "cmake", "ninja"] build-backend = "setuptools.build_meta" [tool.pytest.ini_options] From e87c9590829eca4c5b9680d82c74973579aa3b6a Mon Sep 17 00:00:00 2001 From: andrijapau Date: Mon, 19 Jan 2026 09:25:09 -0500 Subject: [PATCH 2/3] changelog --- doc/releases/changelog-dev.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 32b7de372d..2d22ec861c 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -15,6 +15,9 @@

Breaking changes 💔

+* Dropped support for NumPy 1.x following its end-of-life. NumPy 2.0 or higher is now required. + [(#2407)](https://github.com/PennyLaneAI/catalyst/pull/2407) +

Deprecations 👋

Bug fixes 🐛

@@ -50,4 +53,5 @@ This release contains contributions from (in alphabetical order): Ali Asadi Sengthai Heng, Jeffrey Kam, -Mudit Pandey. +Mudit Pandey, +Andrija Paurevic. From 282ea044c01122462fabcb267acd1edfab1b4d6d Mon Sep 17 00:00:00 2001 From: andrijapau Date: Mon, 19 Jan 2026 09:26:22 -0500 Subject: [PATCH 3/3] setup and requirements --- requirements.txt | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requirements.txt b/requirements.txt index 44bfa62740..f78eaa815d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -5,7 +5,7 @@ pip>=22.3 # Build dependencies for non-Python components # Do not allow NumPy 2.0.0 due to a bug with their C API that blocks the usage of the Stable ABI; # this bug was fixed in 2.0.1 (https://github.com/numpy/numpy/pull/26995) -numpy!=2.0.0 +numpy>2.0.0 # llvm requires nanobind 2.9 or higher nanobind>=2.9 pybind11>=2.12.0 diff --git a/setup.py b/setup.py index 527c84612e..dd5f0032cf 100644 --- a/setup.py +++ b/setup.py @@ -127,7 +127,7 @@ def parse_dep_versions(): kokkos_dep, f"jax=={jax_version}", f"jaxlib=={jax_version}", - "numpy!=2.0.0", + "numpy>2.0.0", "scipy-openblas32>=0.3.26", # symbol and library name "diastatic-malt>=2.15.2", "xdsl==0.56.1",