Skip to content

Commit 1aa4353

Browse files
committed
Added twine test upload comment
1 parent c2180f8 commit 1aa4353

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pypi.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ upload_test_pypi()
6060
# Upload to Test PyPi
6161
if ! [ -f $HOME/.pypirc ]; then
6262
# .pypirc file does not exist, prompt for API token
63-
twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/*
63+
twine upload --verbose --repository-url https://test.pypi.org/legacy/ dist/* || echo 'Twine Test Upload Failed: Try temporarily incrementing the minor version number if you are getting a "400 File already exists"'
6464
else
6565
# Get API token from .pypirc file
66-
twine upload --verbose -r testpypi dist/*
66+
twine upload --verbose -r testpypi dist/* || echo 'Twine Test Upload Failed: Try temporarily incrementing the minor version number if you are getting a "400 File already exists"'
6767
fi
6868
}
6969

0 commit comments

Comments
 (0)