diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 59b4527d52..0964469175 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -19,6 +19,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 🐛

@@ -55,4 +58,5 @@ Ali Asadi, Sengthai Heng, Jeffrey Kam, Mudit Pandey, +Andrija Paurevic, Paul Haochen Wang. 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] 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",