We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 472af9c commit ea12281Copy full SHA for ea12281
.github/workflows/python-package-conda.yml
@@ -35,8 +35,11 @@ jobs:
35
git fetch --force --tags
36
echo "Describe: $(git describe --tags --dirty --always || true)"
37
38
- PKG_VERSION=$(python -m setuptools_scm | sed 's/+/-/g')
39
- echo "Building version: $PKG_VERSION"
+ RAW_VERSION=$(python -m setuptools_scm)
+ echo "Raw setuptools_scm version: $RAW_VERSION"
40
+
41
+ PKG_VERSION=$(echo "$RAW_VERSION" | sed -E 's/\+g([0-9a-f]+)/.g\1/; s/-g([0-9a-f]+)/.g\1/')
42
+ echo "Conda-safe version: $PKG_VERSION"
43
44
if [ -z "$PKG_VERSION" ] || [ "$PKG_VERSION" = "0.0.0" ] || [ "$PKG_VERSION" = "None" ]; then
45
echo "ERROR: Bad PKG_VERSION='$PKG_VERSION'"
0 commit comments