Skip to content

Commit bc2e426

Browse files
authored
Change cuda.core license to Apache-2.0 & make contributing guides clear (#583)
* change cuda-core license & make contributing guides clear * various fixes * fix * apply SPDX header to rst files; per-module CoC * toolshed needs update too * miss checking in one file * more spdx identifiers
1 parent 2aca306 commit bc2e426

File tree

92 files changed

+595
-117
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+595
-117
lines changed

.bandit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
13
[bandit]
24
skips = B101,B311

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Bug Report
26
description: Create a report to help us improve
37
title: '[BUG]: '

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
blank_issues_enabled: true
26
contact_links:
37
- name: Questions

.github/ISSUE_TEMPLATE/doc_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Documentation Request
26
description: Suggest an idea to improve cuda-python
37
title: '[DOC]: '

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Feature Request
26
description: Suggest an idea to improve cuda-python
37
title: '[FEA]: '

.github/ISSUE_TEMPLATE/release_checklist.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Release Checklist
26
description: Public checklist for release managers making a subpackage release
37
labels: ["P0"]

.github/actions/doc_preview/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Preview or clean up docs built from PRs
26

37
# A re-implementation based on the logic of https://github.com/rossjrw/pr-preview-action/blob/41a957c44a456a34718e9bcf825363194db5e6d5/README.md, due to limitations illustrated in NVIDIA/cuda-python#380.

.github/actions/fetch_ctk/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Fetch mini CTK
26

37
description: Fetch (or create) a mini CUDA Toolkit from cache

.github/actions/get_pr_number/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Get the PR number
26

37
description: Get the PR number without relying on the pull_request* event triggers.

.github/actions/install_unix_deps/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Install dependencies on Ubuntu
26

37
description: Install needed dependencies, regardless if using GitHub- or self- hosted runners, container, sudo or not.

.github/workflows/backport.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Backport the merged PR"
26

37
on:

.github/workflows/bandit.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "Static Analysis: Bandit Scan"
26

37
on:

.github/workflows/build-and-test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
# Note: This name is referred to in the test job, so make sure any changes are sync'd up!
26
name: "CI: Build and test"
37

.github/workflows/build-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Build and update docs"
26

37
on:

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "Static Analysis: CodeQL Scan"
26

37
on:

.github/workflows/release-upload.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Upload git archive"
26

37
on:

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Release"
26

37
description: Manually-triggered release workflow. Must have a release note in the draft state and the release commit tagged.

.github/workflows/status-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Summary"
26

37
on:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Test wheels"
26

37
on:

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: "CI: Test wheels"
26

37
on:

.github/workflows/triagelabel.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Copyright (c) 2024-2025, NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
15
name: Add Triage Label
26

37
on:

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Copyright (c) 2024-2025, NVIDIA CORPORATION.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
25
ci:
36
autofix_commit_msg: |
47
[pre-commit.ci] auto code formatting

CONTRIBUTING.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
Thank you for your interest in contributing to CUDA Python! Based on the type of contribution, it will fall into two categories:
44

5-
1. You want to report a bug, feature request, or documentation issue
6-
- File an [issue](https://github.com/NVIDIA/cuda-python/issues/new)
5+
1. You want to report a bug, feature request, or documentation issue:
6+
- File an [issue](https://github.com/NVIDIA/cuda-python/issues/new/choose)
77
describing what you encountered or what you want to see changed.
88
- The NVIDIA team will evaluate the issues and triage them, scheduling
99
them for a release. If you believe the issue needs priority attention
1010
comment on the issue to notify the team.
11-
2. You want to implement a feature or bug-fix
12-
- At this time we do not accept code contributions.
11+
2. You want to implement a feature, improvement, or bug fix:
12+
- Please refer to each component's guideline:
13+
- [`cuda.core`](https://nvidia.github.io/cuda-python/cuda-core/latest/contribute.html)
14+
- [`cuda.bindings`](https://nvidia.github.io/cuda-python/cuda-bindings/latest/contribute.html)

LICENSE

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

LICENSE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
This repository is structured in a way that files are licensed differently
2+
- [`cuda.python`](./cuda_python/): NVIDIA Software License
3+
- [`cuda.bindings`](./cuda_bindings/): NVIDIA Software License
4+
- [`cuda.core`](./cuda_core/) and everything else in this repository: Apache 2.0

cuda_bindings/docs/source/api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
2+
13
-------------------------
24
CUDA Python API Reference
35
-------------------------

0 commit comments

Comments
 (0)