Browse Source

Add a message to script/release about pypirc when absent

pull/1017/head
Ross McFarland 2 years ago
parent
commit
49d9d88e1b
No known key found for this signature in database GPG Key ID: 943B179E15D3B22A
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      script/release

+ 13
- 0
script/release 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


Loading…
Cancel
Save