diff --git a/scripts/publish.sh b/scripts/publish.sh index e9b7f166..e321e49b 100644 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -3,7 +3,9 @@ : "${PIP_USERNAME?Need to set PIP_USERNAME}" : "${PIP_PASSWORD?Need to set PIP_PASSWORD}" -if [ $TEST = 1 ]; then +set -e + +if [ "$TEST" = 1 ]; then twine upload --repository testpypi dist/* else echo "Uploading to pypi" diff --git a/setup.py b/setup.py index b125d3e8..7892f26e 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ "pytest==7.1.3", "pytest-cov==2.8.1", "Random-Word==1.0.4", - "twine==3.1.1", + "twine==4.0.2", "when-changed" ], 'hw-wallet': [