Skip to content

Commit 937ff7f

Browse files
committed
Exclude broken cuda-toolkit patch releases from dependency specs.
Use exclusion-style constraints in cuda_bindings, cuda_core, and cuda_pathfinder so CI avoids cuda-toolkit 12.9.2 and 13.0.3 while still allowing newer good patch releases. Made-with: Cursor
1 parent 62d334e commit 937ff7f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

cuda_bindings/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ dependencies = ["cuda-pathfinder >=1.4.2"]
3636

3737
[project.optional-dependencies]
3838
all = [
39-
"cuda-toolkit[nvrtc,nvjitlink,nvvm,nvfatbin]==13.*",
40-
"cuda-toolkit[cufile]==13.*; sys_platform == 'linux'",
39+
"cuda-toolkit[nvrtc,nvjitlink,nvvm,nvfatbin]==13.*,!=13.0.3",
40+
"cuda-toolkit[cufile]==13.*,!=13.0.3; sys_platform == 'linux'",
4141
]
4242

4343
[dependency-groups]

cuda_core/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@ cu13 = ["cuda-bindings[all]==13.*"]
5959
[dependency-groups]
6060
test = ["cython>=3.2,<3.3", "setuptools", "pytest>=6.2.4", "pytest-benchmark", "pytest-randomly", "pytest-repeat", "pytest-rerunfailures", "cloudpickle", "psutil", "cffi"]
6161
ml-dtypes = ["ml-dtypes>=0.5.4,<0.6.0"]
62-
test-cu12 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda12x; python_version < '3.14'", "cuda-toolkit[cudart]==12.*"] # runtime headers needed by CuPy
63-
test-cu13 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda13x; python_version < '3.14'", "cuda-toolkit[cudart]==13.*"] # runtime headers needed by CuPy
62+
test-cu12 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda12x; python_version < '3.14'", "cuda-toolkit[cudart]==12.*,!=12.9.2"] # runtime headers needed by CuPy
63+
test-cu13 = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cupy-cuda13x; python_version < '3.14'", "cuda-toolkit[cudart]==13.*,!=13.0.3"] # runtime headers needed by CuPy
6464
# free threaded build, cupy doesn't support free-threaded builds yet, so avoid installing it for now
6565
# TODO: cupy should support free threaded builds
66-
test-cu12-ft = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cuda-toolkit[cudart]==12.*"]
67-
test-cu13-ft = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cuda-toolkit[cudart]==13.*"]
66+
test-cu12-ft = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cuda-toolkit[cudart]==12.*,!=12.9.2"]
67+
test-cu13-ft = [ {include-group = "ml-dtypes" }, {include-group = "test" }, "cuda-toolkit[cudart]==13.*,!=13.0.3"]
6868

6969
[tool.uv]
7070
conflicts = [

cuda_pathfinder/pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ test = [
1919
]
2020
# Internal organization of test dependencies.
2121
cu12 = [
22-
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl,cupti,profiler]==12.*",
23-
"cuda-toolkit[cufile]==12.*; sys_platform != 'win32'",
22+
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl,cupti,profiler]==12.*,!=12.9.2",
23+
"cuda-toolkit[cufile]==12.*,!=12.9.2; sys_platform != 'win32'",
2424
"cutensor-cu12",
2525
"nvidia-cublasmp-cu12; sys_platform != 'win32'",
2626
"nvidia-cudss-cu12",
@@ -32,8 +32,8 @@ cu12 = [
3232
"nvidia-nvshmem-cu12; sys_platform != 'win32'",
3333
]
3434
cu13 = [
35-
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl,cupti,profiler,nvvm]==13.*",
36-
"cuda-toolkit[cufile]==13.*; sys_platform != 'win32'",
35+
"cuda-toolkit[nvcc,cublas,nvrtc,cudart,cufft,curand,cusolver,cusparse,npp,nvfatbin,nvjitlink,nvjpeg,cccl,cupti,profiler,nvvm]==13.*,!=13.0.3",
36+
"cuda-toolkit[cufile]==13.*,!=13.0.3; sys_platform != 'win32'",
3737
"cutensor-cu13",
3838
"nvidia-cublasmp-cu13; sys_platform != 'win32'",
3939
"nvidia-cudla; platform_system == 'Linux' and platform_machine == 'aarch64'",

0 commit comments

Comments
 (0)