Skip to content

Commit fba67a4

Browse files
committed
chore: move pytest configuration to top-level pyproject.toml file
1 parent 74bd73c commit fba67a4

File tree

3 files changed

+11
-21
lines changed

3 files changed

+11
-21
lines changed

cuda_bindings/benchmarks/pytest.ini

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

cuda_bindings/pyproject.toml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ build-backend = "setuptools.build_meta"
77
[project]
88
name = "cuda-bindings"
99
description = "Python bindings for CUDA"
10-
authors = [{name = "NVIDIA Corporation", email = "[email protected]"},]
10+
authors = [
11+
{ name = "NVIDIA Corporation", email = "[email protected]" },
12+
]
1113
license = "LicenseRef-NVIDIA-SOFTWARE-LICENSE"
1214
requires-python = ">=3.10"
1315
classifiers = [
@@ -22,13 +24,8 @@ classifiers = [
2224
"Programming Language :: Python :: 3.14",
2325
"Environment :: GPU :: NVIDIA CUDA",
2426
]
25-
dynamic = [
26-
"version",
27-
"readme",
28-
]
29-
dependencies = [
30-
"cuda-pathfinder ~=1.1",
31-
]
27+
dynamic = ["version", "readme"]
28+
dependencies = ["cuda-pathfinder ~=1.1"]
3229

3330
[project.optional-dependencies]
3431
all = [
@@ -43,7 +40,7 @@ test = [
4340
"numpy>=1.21.1",
4441
"pytest>=6.2.4",
4542
"pytest-benchmark>=3.4.1",
46-
"pyglet>=2.1.9"
43+
"pyglet>=2.1.9",
4744
]
4845

4946
[project.urls]
@@ -69,3 +66,8 @@ archs = "native"
6966
archs = "AMD64"
7067
before-build = "pip install delvewheel"
7168
repair-wheel-command = "delvewheel repair --namespace-pkg cuda -w {dest_dir} {wheel}"
69+
70+
[tool.pytest.ini_options]
71+
required_plugins = "pytest-benchmark"
72+
addopts = "--benchmark-disable"
73+
norecursedirs = ["tests/cython", "examples"]

cuda_bindings/tests/pytest.ini

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

0 commit comments

Comments
 (0)