We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b57f94b commit c4a287dCopy full SHA for c4a287d
.github/workflows/release-pypi-nightly.yml
@@ -62,7 +62,7 @@ jobs:
62
# If building at exact tag (distance=0), force dev0 version for unique wheel names
63
if [ "$DIST" = "0" ]; then
64
TAG=$(echo "$DESC" | cut -d- -f1)
65
- HASH=$(echo "$DESC" | cut -d- -f3-)
+ HASH="g$(git rev-parse --short HEAD)"
66
FORCE_VERSION="${TAG#v}.dev0+${HASH}"
67
echo "Building at exact tag, forcing version to: $FORCE_VERSION"
68
export SETUPTOOLS_SCM_PRETEND_VERSION="$FORCE_VERSION"
0 commit comments