From af711ef8936889094a978366d7886a83a7c8040f Mon Sep 17 00:00:00 2001 From: Andy Jost Date: Mon, 16 Nov 2026 12:10:30 -0800 Subject: [PATCH] CI: pin ml-dtypes below 0.7 in the cuda.core test dependencies ml-dtypes 0.7.0 registers DLPack support for its types on NumPy 2.5 and later, so test_dlpack_export_roundtrip_dtypes[bfloat16] no longer skips and fails on #3337. Pin the test dependency group until #3359 merges. Co-Authored-By: Claude Opus 5.5 --- cuda_core/pyproject.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cuda_core/pyproject.toml b/cuda_core/pyproject.toml index f3ea7e35deb..bd5698ca22c 100644 --- a/cuda_core/pyproject.toml +++ b/cuda_core/pyproject.toml @@ -91,7 +91,9 @@ test = [ "pyglet==2.1.14", "cffi==2.1.1", ] -ml-dtypes = ["ml-dtypes>=0.5.4"] +# ml-dtypes 0.7 lets NumPy export bfloat16, so the bfloat16 DLPack test runs and fails +# until #3359 fixes #3337. Remove the upper bound when #3359 merges. +ml-dtypes = ["ml-dtypes>=0.5.4,<0.7"] test-ft = ["pytest-run-parallel==0.10.0"] test-cu12 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda12x; python_version < '3.15'", "cuda-toolkit[cudart]==12.*"] # runtime headers needed by CuPy test-cu13 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda13x; python_version < '3.15'", "cuda-toolkit[cudart]==13.*"] # runtime headers needed by CuPy