From 49d9d88e1b489cf34e795df884cfc1c2060d9bdd Mon Sep 17 00:00:00 2001 From: Ross McFarland Date: Tue, 27 Jun 2023 09:27:13 -0700 Subject: [PATCH] Add a message to script/release about pypirc when absent --- script/release | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/script/release b/script/release index 6a55941..b1c79fc 100755 --- a/script/release +++ b/script/release @@ -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