Skip to content

Commit 56946e0

Browse files
committed
feat: Add Makefile to invoke build.sh script and pytest
1 parent 49a3c3f commit 56946e0

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Makefile

Lines changed: 25 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/check-version.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env sh
2+
version=$(python -m setuptools_scm)
3+
# Check if the version is pure (i.e., it doesn't contain a '+')
4+
echo "$version" | grep -q "+" && {
5+
echo "Error: Version '$version' is not pure. Aborting dist."
6+
exit 1
7+
}
8+
exit 0

0 commit comments

Comments
 (0)