Skip to content

Commit ce86c08

Browse files
committed
Update git describe command for setuptools_scm.
1 parent 1238f28 commit ce86c08

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

ci/build_cuda_cccl_wheel.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +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}"
34-
3529

3630
cd /workspace/python/cuda_cccl
3731

python/cuda_cccl/pyproject.toml

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

8080
[tool.setuptools_scm]
8181
root = "../.."
82-
git_describe_command = ["git", "describe", "--tags", "--match", "v[0-9]*"]
83-
82+
git_describe_command = ["git", "describe", "--tags", "--match", "python-*"]
83+
tag_regex = "^python-(?P<version>.*)$"
8484

8585
[tool.scikit-build.wheel.packages]
8686
"cuda" = "cuda"

0 commit comments

Comments
 (0)