Skip to content

Commit 1836859

Browse files
tpnshwina
authored andcommitted
Update git describe command for setuptools_scm.
1 parent 246bb41 commit 1836859

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

ci/build_cuda_cccl_wheel.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,6 @@ echo "Done setting up python env"
2626
if $(git rev-parse --is-shallow-repository); then
2727
git fetch --unshallow
2828
fi
29-
export PACKAGE_VERSION_PREFIX="0.1."
30-
package_version=$(/workspace/ci/generate_version.sh)
31-
echo "Using package version ${package_version}"
32-
# Override the version used by setuptools_scm to the custom version
33-
export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_CUDA_CCCL="${package_version}"
3429

3530
cd /workspace/python/cuda_cccl
3631

python/cuda_cccl/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ provider = "scikit_build_core.metadata.setuptools_scm"
9292

9393
[tool.setuptools_scm]
9494
root = "../.."
95-
git_describe_command = ["git", "describe", "--tags", "--match", "v[0-9]*"]
96-
95+
git_describe_command = ["git", "describe", "--tags", "--match", "python-*"]
96+
tag_regex = "^python-(?P<version>.*)$"
9797

9898
[tool.scikit-build.wheel.packages]
9999
"cuda" = "cuda"

0 commit comments

Comments
 (0)