1
0
mirror of https://github.com/github/octodns.git synced 2024-05-11 05:55:00 +00:00

Add a message to script/release about pypirc when absent

This commit is contained in:
Ross McFarland
2023-06-27 09:27:13 -07:00
parent 03c69c54c0
commit 49d9d88e1b

View File

@@ -9,6 +9,19 @@ if [ -z "$VENV_NAME" ]; then
VENV_NAME="env"
fi
PYPYRC="$HOME/.pypirc"
if [ ! -e "$PYPYRC" ]; then
cat << EndOfMessage >&2
$PYPYRC does not exist, please create it with the following contents
[pypi]
username = __token__
password = [secret-token-goes-here]
EndOfMessage
exit 1
fi
ACTIVATE="$VENV_NAME/bin/activate"
if [ ! -f "$ACTIVATE" ]; then
echo "$ACTIVATE does not exist, run ./script/bootstrap" >&2