From 99cc7146c419ea50e60626905f3388a2c0b03f9e Mon Sep 17 00:00:00 2001 From: Bradley Dice Date: Wed, 13 Mar 2024 08:31:22 -0500 Subject: [PATCH] Add upper bound to prevent usage of NumPy 2 (#204) 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: - Peter Andreas Entschev (https://github.com/pentschev) - Ray Douglass (https://github.com/raydouglass) URL: https://github.com/rapidsai/ucxx/pull/204 --- conda/environments/all_cuda-118_arch-x86_64.yaml | 2 +- conda/environments/all_cuda-122_arch-x86_64.yaml | 2 +- dependencies.yaml | 2 +- python/distributed-ucxx/pyproject.toml | 2 +- python/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 2ae697cd..021c874e 100644 --- a/conda/environments/all_cuda-118_arch-x86_64.yaml +++ b/conda/environments/all_cuda-118_arch-x86_64.yaml @@ -28,7 +28,7 @@ dependencies: - libtool - ninja - numba>=0.57.1 -- numpy>=1.23 +- numpy>=1.23,<2.0a0 - pip - pkg-config - pre-commit diff --git a/conda/environments/all_cuda-122_arch-x86_64.yaml b/conda/environments/all_cuda-122_arch-x86_64.yaml index f2c838f5..54e2860c 100644 --- a/conda/environments/all_cuda-122_arch-x86_64.yaml +++ b/conda/environments/all_cuda-122_arch-x86_64.yaml @@ -28,7 +28,7 @@ dependencies: - libtool - ninja - numba>=0.57.1 -- numpy>=1.23 +- numpy>=1.23,<2.0a0 - pip - pkg-config - pre-commit diff --git a/dependencies.yaml b/dependencies.yaml index 65b5edde..4319d4ba 100644 --- a/dependencies.yaml +++ b/dependencies.yaml @@ -234,7 +234,7 @@ dependencies: common: - output_types: [conda, requirements, pyproject] packages: - - &numpy numpy>=1.23 + - &numpy numpy>=1.23,<2.0a0 - pynvml>=11.4.1 - output_types: [conda] packages: diff --git a/python/distributed-ucxx/pyproject.toml b/python/distributed-ucxx/pyproject.toml index d46ac0be..952f2f02 100644 --- a/python/distributed-ucxx/pyproject.toml +++ b/python/distributed-ucxx/pyproject.toml @@ -41,7 +41,7 @@ docs = [ test = [ "cudf==24.4.*", "cupy-cuda11x>=12.0.0", - "numpy>=1.23", + "numpy>=1.23,<2.0a0", "pytest==7.*", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. diff --git a/python/pyproject.toml b/python/pyproject.toml index 220e0303..69170224 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -22,7 +22,7 @@ authors = [ license = { text = "BSD-3-Clause" } requires-python = ">=3.9" dependencies = [ - "numpy>=1.23", + "numpy>=1.23,<2.0a0", "pynvml>=11.4.1", "rmm==24.4.*", ] # This list was generated by `rapids-dependency-file-generator`. To make changes, edit ../dependencies.yaml and run `rapids-dependency-file-generator`.