Skip to content

Commit 906f845

Browse files
committed
Move dependencies from requirements.txt to an optional packaging extra
1 parent 71762af commit 906f845

File tree

5 files changed

+11
-15
lines changed

5 files changed

+11
-15
lines changed

.github/workflows/test-wheel-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,8 +324,8 @@ jobs:
324324
fi
325325
popd
326326
327+
pip install $(ls *.whl)[test]
327328
pushd ./cuda_bindings
328-
pip install -r requirements.txt
329329
${SANITIZER_CMD} pytest -rxXs -v tests/
330330
331331
# It is a bit convoluted to run the Cython tests against CTK wheels,

.github/workflows/test-wheel-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ jobs:
252252
}
253253
Pop-Location
254254
255+
pip install "$((Get-ChildItem -Filter *.whl).FullName)[test]"
255256
Push-Location ./cuda_bindings
256-
pip install -r requirements.txt
257257
pytest -rxXs -v tests/
258258
# skip Cython tests for now (NVIDIA/cuda-python#466)
259259
Pop-Location

cuda_bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This subpackage adheres to the developing practices described in the parent meta
1212

1313
## Testing
1414

15-
Latest dependencies can be found in [requirements.txt](https://github.com/NVIDIA/cuda-python/blob/main/cuda_bindings/requirements.txt).
15+
Testing dependencies can be installed using the `[test]` optional dependency identifier. For example, `pip install -v -e .[test]`.
1616

1717
Multiple testing options are available:
1818

cuda_bindings/pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33

44
[build-system]
5-
requires = ["setuptools>=77.0.0", "cython", "pyclibrary"]
5+
requires = ["setuptools>=77.0.0", "cython>=3.0", "pyclibrary>=0.1.7"]
66
build-backend = "setuptools.build_meta"
77

88
[project]
@@ -37,6 +37,13 @@ all = [
3737
"nvidia-nvjitlink-cu12>=12.3",
3838
]
3939

40+
tests = [
41+
"numpy>=1.21.1",
42+
"pytest>=6.2.4",
43+
"pytest-benchmark>=3.4.1",
44+
"llvmlite"
45+
]
46+
4047
[project.urls]
4148
Repository = "https://github.com/NVIDIA/cuda-python"
4249
Documentation = "https://nvidia.github.io/cuda-python/"

cuda_bindings/requirements.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)