Code Review
/
releng
/
global-jjb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add missing DRY_RUN parameter in PyPI merge
[releng/global-jjb.git]
/
shell
/
pypi-upload.sh
diff --git
a/shell/pypi-upload.sh
b/shell/pypi-upload.sh
index
e1ecfdf
..
86fff16
100644
(file)
--- a/
shell/pypi-upload.sh
+++ b/
shell/pypi-upload.sh
@@
-20,15
+20,19
@@
set -eu -o pipefail
virtualenv -p python3 /tmp/pypi
PATH=/tmp/pypi/bin:$PATH
virtualenv -p python3 /tmp/pypi
PATH=/tmp/pypi/bin:$PATH
-pip install twine
+echo "INFO: installing twine to upload distributions"
+pip install -q twine
+
echo "INFO: cd to tox-dir $TOX_DIR"
cd "$WORKSPACE/$TOX_DIR"
echo "INFO: cd to tox-dir $TOX_DIR"
cd "$WORKSPACE/$TOX_DIR"
+
cmd="twine upload -r $REPOSITORY dist/*"
if $DRY_RUN; then
echo "INFO: dry-run is set, echoing command only"
echo $cmd
else
cmd="twine upload -r $REPOSITORY dist/*"
if $DRY_RUN; then
echo "INFO: dry-run is set, echoing command only"
echo $cmd
else
- echo "INFO: uploading distributions"
+ echo "INFO: uploading distributions
to repo $REPOSITORY
"
$cmd
fi
$cmd
fi
+
echo "---> pypi-upload.sh ends"
echo "---> pypi-upload.sh ends"