From 64d651dc1a1dc309f08fee2502198f6a2e0e13b0 Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 13 Mar 2024 08:42:16 -0500 Subject: [PATCH] Add upper bound to prevent usage of NumPy 2 (#15283) NumPy 2 is expected to be released in the near future. For the RAPIDS 24.04 release, we will pin to `numpy>=1.23,<2.0a0`. This PR adds an upper bound to affected RAPIDS repositories. xref: https://github.com/rapidsai/build-planning/issues/29 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - GALI PREM SAGAR (https://github.com/galipremsagar) - Ray Douglass (https://github.com/raydouglass) URL: https://github.com/rapidsai/cudf/pull/15283 --- conda/environments/all_cuda-118_arch-x86_64.yaml | 2 +- conda/environments/all_cuda-122_arch-x86_64.yaml | 2 +- dependencies.yaml | 2 +- python/cudf/pyproject.toml | 2 +- python/dask_cudf/pyproject.toml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/conda/environments/all_cuda-118_arch-x86_64.yaml b/conda/environments/all_cuda-118_arch-x86_64.yaml index e13357aa78e..cf363a819a2 100644 --- a/conda/environments/all_cuda-118_arch-x86_64.yaml +++ b/conda/environments/all_cuda-118_arch-x86_64.yaml @@ -58,7 +58,7 @@ dependencies: - ninja - notebook - numba>=0.57 -- numpy>=1.23 +- numpy>=1.23,<2.0a0 - numpydoc - nvcc_linux-64=11.8 - nvcomp==3.0.6 diff --git a/conda/environments/all_cuda-122_arch-x86_64.yaml b/conda/environments/all_cuda-122_arch-x86_64.yaml index c028c3fde3a..42460532b1b 100644 --- a/conda/environments/all_cuda-122_arch-x86_64.yaml +++ b/conda/environments/all_cuda-122_arch-x86_64.yaml @@ -57,7 +57,7 @@ dependencies: - ninja - notebook - numba>=0.57 -- numpy>=1.23 +- numpy>=1.23,<2.0a0 - numpydoc - nvcomp==3.0.6 - nvtx>=0.2.1 diff --git a/dependencies.yaml b/dependencies.yaml index 37dfb933451..db0a766df82 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -503,7 +503,7 @@ dependencies: - output_types: [conda, requirements, pyproject] packages: - fsspec>=0.6.0 - - numpy>=1.23 + - numpy>=1.23,<2.0a0 - pandas>=2.0,<2.2.2dev0 run_cudf: common: diff --git a/python/cudf/pyproject.toml b/python/cudf/pyproject.toml index cbe9e1a9f24..da574fdb031 100644 --- a/python/cudf/pyproject.toml +++ b/python/cudf/pyproject.toml @@ -30,7 +30,7 @@ dependencies = [ "cupy-cuda11x>=12.0.0", "fsspec>=0.6.0", "numba>=0.57", - "numpy>=1.23", + "numpy>=1.23,<2.0a0", "nvtx>=0.2.1", "packaging", "pandas>=2.0,<2.2.2dev0", diff --git a/python/dask_cudf/pyproject.toml b/python/dask_cudf/pyproject.toml index 21aaa17a6c7..b55bb9d3eaf 100644 --- a/python/dask_cudf/pyproject.toml +++ b/python/dask_cudf/pyproject.toml @@ -21,7 +21,7 @@ dependencies = [ "cudf==24.4.*", "cupy-cuda11x>=12.0.0", "fsspec>=0.6.0", - "numpy>=1.23", + "numpy>=1.23,<2.0a0", "pandas>=2.0,<2.2.2dev0", "rapids-dask-dependency==24.4.*", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`.