From 8fc40b5502f11b5619f17dc30d79e7144abf3b39 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Fri, 22 Dec 2017 12:05:37 -0800 Subject: Fix uploading binary wheel. The script now takes two prompt for user name and password. One single input redirection no longer works. --- python/release/wheel/protobuf_optimized_pip.sh | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'python') diff --git a/python/release/wheel/protobuf_optimized_pip.sh b/python/release/wheel/protobuf_optimized_pip.sh index 064d1d2a..98306f4c 100755 --- a/python/release/wheel/protobuf_optimized_pip.sh +++ b/python/release/wheel/protobuf_optimized_pip.sh @@ -6,7 +6,7 @@ set -ex # Print usage and fail. function usage() { - echo "Usage: protobuf_optimized_pip.sh PROTOBUF_VERSION PYPI_USERNAME PYPI_PASSWORD" >&2 + echo "Usage: protobuf_optimized_pip.sh PROTOBUF_VERSION" >&2 exit 1 # Causes caller to exit because we use -e. } @@ -25,7 +25,7 @@ if [ $0 != ./protobuf_optimized_pip.sh ]; then exit 1 fi -if [ $# -lt 3 ]; then +if [ $# -lt 1 ]; then usage exit 1 fi @@ -63,7 +63,4 @@ do build_wheel $PYTHON_VERSION done -/opt/python/cp27-cp27mu/bin/twine upload wheelhouse/* <