Skip to content

Commit 3f12cdb

Browse files
authored
Merge branch 'main' into nvbug5605010
2 parents 7e05f5a + da7eb1f commit 3f12cdb

File tree

12 files changed

+73
-32
lines changed

12 files changed

+73
-32
lines changed

.github/ISSUE_TEMPLATE/release_checklist.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ body:
2020
- label: File an internal nvbug to communicate test plan & release schedule with QA
2121
- label: Ensure all pending PRs are reviewed, tested, and merged
2222
- label: Check (or update if needed) the dependency requirements
23-
- label: Bump the version
2423
- label: Create a public rc tag
2524
- label: "Point QA to fetch public artifacts (wheels) from the GHA run ID, example: `gh run download 12323257563 -p \"cuda-core*\" -R NVIDIA/cuda-python`"
2625
- label: Wait for QA reports and fix any issues found

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,9 @@ jobs:
278278
run: |
279279
set -euo pipefail
280280
pushd cuda_pathfinder
281-
pip install --only-binary=:all: -v . --group "test-cu${TEST_CUDA_MAJOR}"
281+
# Install pathfinder from the pre-built wheel, since building from
282+
# source won't work in this context (we don't have a git checkout).
283+
pip install --only-binary=:all: -v ./*.whl --group "test-cu${TEST_CUDA_MAJOR}"
282284
pip list
283285
popd
284286

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ cuda_bindings/cuda/bindings/nvrtc.pxd
4949
cuda_bindings/cuda/bindings/nvrtc.pyx
5050
cuda_bindings/cuda/bindings/utils/_get_handle.pyx
5151

52+
# Version files from setuptools_scm
53+
_version.py
54+
5255
# Distribution / packaging
5356
.Python
5457
build/

cuda_bindings/cuda/bindings/_version.py

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

cuda_bindings/pyproject.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2023-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
22
# SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE
33
[build-system]
4-
requires = ["setuptools>=77.0.0", "cython>=3.2,<3.3", "pyclibrary>=0.1.7"]
4+
requires = [
5+
"setuptools>=80.0.0",
6+
"setuptools_scm[simple]>=8",
7+
"cython>=3.2,<3.3",
8+
"pyclibrary>=0.1.7",
9+
]
510
build-backend = "setuptools.build_meta"
611

712
[project]
@@ -51,7 +56,6 @@ Documentation = "https://nvidia.github.io/cuda-python/"
5156
include = ["cuda*"]
5257

5358
[tool.setuptools.dynamic]
54-
version = { attr = "cuda.bindings._version.__version__" }
5559
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
5660

5761
[tool.cibuildwheel]
@@ -72,3 +76,10 @@ required_plugins = "pytest-benchmark"
7276
addopts = "--benchmark-disable --showlocals"
7377
norecursedirs = ["tests/cython", "examples"]
7478
xfail_strict = true
79+
80+
[tool.setuptools_scm]
81+
root = ".."
82+
version_file = "cuda/bindings/_version.py"
83+
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-bindings versioning
84+
tag_regex = "^(?P<version>v\\d+\\.\\d+\\.\\d+)"
85+
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "v*[0-9]*"]

cuda_core/cuda/core/_version.py

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

cuda_core/pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
# SPDX-License-Identifier: Apache-2.0
44

55
[build-system]
6-
requires = ["setuptools>=77.0.0", "Cython>=3.2,<3.3"]
6+
requires = [
7+
"setuptools>=80",
8+
"setuptools-scm[simple]>=8",
9+
"Cython>=3.2,<3.3"
10+
]
711
build-backend = "build_hooks"
812
backend-path = ["."]
913

@@ -72,9 +76,15 @@ include = ["cuda.core*"]
7276
"cuda.core._include" = ["*.h", "*.hpp", "*.cuh"]
7377

7478
[tool.setuptools.dynamic]
75-
version = { attr = "cuda.core._version.__version__" }
7679
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
7780

81+
[tool.setuptools_scm]
82+
root = ".."
83+
version_file = "cuda/core/_version.py"
84+
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-core versioning
85+
tag_regex = "^cuda-core-(?P<version>v\\d+\\.\\d+\\.\\d+)"
86+
git_describe_command = ["git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-core-v*[0-9]*"]
87+
7888
[tool.cibuildwheel]
7989
skip = "*-musllinux_*"
8090
enable = "cpython-freethreading"

cuda_pathfinder/cuda/pathfinder/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
"""cuda.pathfinder public APIs"""
55

6+
from cuda.pathfinder._version import __version__ # noqa: F401
7+
68
from cuda.pathfinder._dynamic_libs.load_dl_common import DynamicLibNotFoundError as DynamicLibNotFoundError
79
from cuda.pathfinder._dynamic_libs.load_dl_common import LoadedDL as LoadedDL
810
from cuda.pathfinder._dynamic_libs.load_nvidia_dynamic_lib import load_nvidia_dynamic_lib as load_nvidia_dynamic_lib
@@ -11,7 +13,6 @@
1113
)
1214
from cuda.pathfinder._headers.find_nvidia_headers import find_nvidia_header_directory as find_nvidia_header_directory
1315
from cuda.pathfinder._headers.supported_nvidia_headers import SUPPORTED_HEADERS_CTK as _SUPPORTED_HEADERS_CTK
14-
from cuda.pathfinder._version import __version__ as __version__
1516

1617
# Indirections to help Sphinx find the docstrings.
1718
#: Mapping from short CUDA Toolkit (CTK) library names to their canonical

cuda_pathfinder/cuda/pathfinder/_version.py

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

cuda_pathfinder/pyproject.toml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,23 @@ Documentation = "https://nvidia.github.io/cuda-python/"
6262
packages = { find = { include = ["cuda*"] } }
6363

6464
[tool.setuptools.dynamic]
65-
version = { attr = "cuda.pathfinder._version.__version__" }
6665
readme = { file = ["DESCRIPTION.rst"], content-type = "text/x-rst" }
6766

6867
[build-system]
69-
requires = ["setuptools>=64", "wheel"]
68+
requires = [
69+
"setuptools>=80.0.0",
70+
"setuptools_scm[simple]>=8",
71+
"wheel"
72+
]
7073
build-backend = "setuptools.build_meta"
7174

75+
[tool.setuptools_scm]
76+
root = ".."
77+
version_file = "cuda/pathfinder/_version.py"
78+
# We deliberately do not want to include the version suffixes (a/b/rc) in cuda-pathfinder versioning
79+
tag_regex = "^cuda-pathfinder-(?P<version>v\\d+\\.\\d+\\.\\d+)"
80+
git_describe_command = [ "git", "describe", "--dirty", "--tags", "--long", "--match", "cuda-pathfinder-v*[0-9]*" ]
81+
7282
[tool.pytest.ini_options]
7383
addopts = "--showlocals"
7484

0 commit comments

Comments
 (0)