Merge pull request #1017 from octodns/script-release-pypi-note

Add a message to script/release about pypirc when absent
This commit is contained in:
Ross McFarland
2023-06-28 13:11:11 -07:00
committed by GitHub
+13
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