Skip to content

Commit a8805e5

Browse files
authored
[no-ci] check_spdx.py: require explicit license decisions for top-level paths and related cleanup (#1913)
* Add cuda_bindings, cuda_pathfinder, cuda_python in check_spdx.py EXPECTED_LICENSE_IDENTIFIERS * Fix cuda_bindings/pixi.toml license identifier * Add cuda_bindings/benchmarks/* in .spdx-ignore
1 parent c1b6fd7 commit a8805e5

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.spdx-ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ LICENSE
88
requirements*.txt
99
cuda_bindings/examples/*
1010

11+
# Will be moved in (see https://github.com/NVIDIA/cuda-python/pull/1913#issuecomment-4252968149)
12+
cuda_bindings/benchmarks/*
13+
1114
# Vendored
1215
cuda_core/cuda/core/_include/dlpack.h
1316

cuda_bindings/pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
#
3-
# SPDX-License-Identifier: Apache-2.0
3+
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
44

55
[workspace]
66
channels = ["conda-forge"]

toolshed/check_spdx.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717

1818
LICENSE_IDENTIFIER_REGEX = re.compile(re.escape(SPDX_LICENSE_IDENTIFIER_PREFIX) + rb"(?P<license_identifier>[^\r\n]+)")
1919

20-
EXPECTED_LICENSE_IDENTIFIERS = (("cuda_core/", "Apache-2.0"),)
20+
EXPECTED_LICENSE_IDENTIFIERS = (
21+
("cuda_bindings/", "LicenseRef-NVIDIA-SOFTWARE-LICENSE"),
22+
("cuda_core/", "Apache-2.0"),
23+
("cuda_pathfinder/", "Apache-2.0"),
24+
("cuda_python/", "LicenseRef-NVIDIA-SOFTWARE-LICENSE"),
25+
)
2126

2227
SPDX_IGNORE_FILENAME = ".spdx-ignore"
2328

0 commit comments

Comments
 (0)