Skip to content

Commit

Permalink
always get nightlies in scikit-build-core test
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Jun 7, 2024
1 parent ceefb83 commit d801116
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tests/test_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,13 @@ def test_simple_scikit_build_core(tmp_path, env, nvcc_version):
"cu12": ["cupy-cuda12x>=12.0.0"],
},
"extras": {"jit": {"cu11": ["ptxcompiler-cu11"]}},
# having multiple >= constraints is weird, but it's here to avoid
# https://github.com/rapidsai/rapids-build-backend/pull/40#issuecomment-2152949912
# while still testing that rapids-build-backend preserves all the dependency
# specifiers
"build_requires": {
"cu11": ["rmm-cu11==24.4.*,>=0.0.0a0"],
"cu12": ["rmm-cu12==24.4.*,>=0.0.0a0"],
"cu11": ["rmm-cu11>=24.4.0,>=0.0.0a0"],
"cu12": ["rmm-cu12>=24.4.0,>=0.0.0a0"],
},
"build_backend": "scikit_build_core.build",
"build_backend_package": "scikit-build-core",
Expand All @@ -109,7 +113,7 @@ def test_simple_scikit_build_core(tmp_path, env, nvcc_version):
name, build_requires, requirements, extras = _generate_wheel(env, package_dir)

assert name == f"simple_scikit_build_core-cu{nvcc_version}"
assert {f"rmm-cu{nvcc_version}==24.4.*,>=0.0.0a0"}.issubset(build_requires)
assert {f"rmm-cu{nvcc_version}>=24.4.0,>=0.0.0a0"}.issubset(build_requires)
assert requirements == {f"cupy-cuda{nvcc_version}x>=12.0.0"}
if nvcc_version == "11":
assert extras == {"jit": {"ptxcompiler-cu11"}}
Expand Down

0 comments on commit d801116

Please sign in to comment.