Skip to content

Commit ca90feb

Browse files
committed
Check that twine is accessible before doing a release.
1 parent 672ebb5 commit ca90feb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

release.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ if [ "$LAST" != "$TARGET_VERSION" ]; then
4848
error "Version $TARGET_VERSION is lower than the latest tagged version ($LAST)."
4949
fi
5050

51+
if which twine >/dev/null; then
52+
echo "Found twine"
53+
else
54+
error "Twine was not found. Please install it and then re-run this script"
55+
fi
56+
5157
echo "This will tag and release psij-python to version $TARGET_VERSION."
5258
echo -n "Type 'yes' if you want to continue: "
5359
read REPLY

0 commit comments

Comments
 (0)