From 297447ea2e3a8ef8cf39e5df025045fd93bdc921 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk <21087696+oleksandr-pavlyk@users.noreply.github.com> Date: Wed, 19 Feb 2025 04:52:45 -0600 Subject: [PATCH] Add cuda_cccl to the list of Python packages for which test suite is run (#3846) * Add cuda_cccl to the list of Python packages for which test suite is run * Add test optional dependency to include pytest * Rename python/cuda_cccl/test to tests --- ci/test_python.sh | 2 +- python/cuda_cccl/pyproject.toml | 3 +++ python/cuda_cccl/{test => tests}/test_cuda_cccl.py | 0 3 files changed, 4 insertions(+), 1 deletion(-) rename python/cuda_cccl/{test => tests}/test_cuda_cccl.py (100%) diff --git a/ci/test_python.sh b/ci/test_python.sh index 1bc8f3a8370..28b181774f0 100755 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -12,7 +12,7 @@ begin_group "⚙️ Existing site-packages" pip freeze end_group "⚙️ Existing site-packages" -for module in cuda_parallel cuda_cooperative; do +for module in cuda_cccl cuda_parallel cuda_cooperative; do pushd "../python/${module}" >/dev/null diff --git a/python/cuda_cccl/pyproject.toml b/python/cuda_cccl/pyproject.toml index f0e49b4e38c..cf6e16b32af 100644 --- a/python/cuda_cccl/pyproject.toml +++ b/python/cuda_cccl/pyproject.toml @@ -49,3 +49,6 @@ platlib = "" provider = "scikit_build_core.metadata.regex" input = "cuda/cccl/_version.py" # use default regex + +[project.optional-dependencies] +test = ["pytest"] diff --git a/python/cuda_cccl/test/test_cuda_cccl.py b/python/cuda_cccl/tests/test_cuda_cccl.py similarity index 100% rename from python/cuda_cccl/test/test_cuda_cccl.py rename to python/cuda_cccl/tests/test_cuda_cccl.py