Skip to content

Commit ab880d9

Browse files
committed
must have [tool.setuptools_scm]
1 parent d78efd2 commit ab880d9

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,16 @@ jobs:
9797
echo "::error::setuptools-scm not found in pyproject.toml — aborting"
9898
exit 1
9999
fi
100-
100+
#
101101
if grep -A 5 '^\[project\]' pyproject.toml | grep -q '^version\s*='; then
102102
echo "::error::[project] version is explicitly set — must be managed by setuptools-scm"
103103
exit 1
104104
fi
105+
#
106+
if ! grep -q '[tool.setuptools_scm]' pyproject.toml; then
107+
echo "::error::[tool.setuptools_scm] not found in pyproject.toml — aborting"
108+
exit 1
109+
fi
105110
106111
echo "setuptools-scm is configured properly."
107112

0 commit comments

Comments
 (0)