Skip to content

Commit f5775f3

Browse files
committed
must have [tool.setuptools_scm] - 2
1 parent ab880d9 commit f5775f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,13 +103,14 @@ jobs:
103103
exit 1
104104
fi
105105
#
106-
if ! grep -q '[tool.setuptools_scm]' pyproject.toml; then
106+
if ! grep -Eq '^\[tool\.setuptools_scm\]' pyproject.toml; then
107107
echo "::error::[tool.setuptools_scm] not found in pyproject.toml — aborting"
108108
exit 1
109109
fi
110110
111111
echo "setuptools-scm is configured properly."
112112
113+
# tell SCM to use our version instead of detecting it
113114
SETUPTOOLS_SCM_PRETEND_VERSION=${{ steps.version.outputs.version }} python -m build
114115
115116
- name: Create GitHub Release via API

0 commit comments

Comments
 (0)