Install scripts into cuda/bench.scripts in prefix

Introduce optional dependency categories in the wheel metadata,
with cuda-bench[tools] encompasing all dependencies of nvbench
scripts.

Closes #393
This commit is contained in:
Oleksandr Pavlyk
2026-06-29 11:49:33 -05:00
parent 5fd21dd7fa
commit 49b2bb257f

View File

@@ -42,21 +42,15 @@ test-cu13 = ["cuda-bench[cu13]", "pytest", "cupy-cuda13x", "numba"]
# Generic test dependencies (defaults to CUDA 12)
test = ["pytest", "cupy-cuda12x", "numba"]
tools = [
"colorama",
"jsondiff",
"matplotlib",
"numpy",
"pandas",
"seaborn",
"tabulate",
]
compare = ["colorama", "jsondiff", "numpy", "tabulate"]
plot = ["matplotlib", "numpy", "pandas", "seaborn"]
tools = ["cuda-bench[compare,plot]"]
[project.scripts]
nvbench-compare = "scripts.nvbench_compare:main"
nvbench-histogram = "scripts.nvbench_histogram:main"
nvbench-json-summary = "scripts.nvbench_json_summary:main"
nvbench-walltime = "scripts.nvbench_walltime:main"
nvbench-compare = "cuda.bench.scripts.nvbench_compare:main"
nvbench-histogram = "cuda.bench.scripts.nvbench_histogram:main"
nvbench-json-summary = "cuda.bench.scripts.nvbench_json_summary:main"
nvbench-walltime = "cuda.bench.scripts.nvbench_walltime:main"
[project.urls]
Homepage = "https://github.com/NVIDIA/nvbench"
@@ -90,4 +84,4 @@ fallback_version = "0.0.0"
"cuda" = "cuda"
"cuda/bench" = "cuda/bench"
"cuda/bench/results" = "cuda/bench/results"
"scripts" = "scripts"
"cuda/bench/scripts" = "scripts"