Commit 8fc40b55 authored by Jisi Liu's avatar Jisi Liu

Fix uploading binary wheel.

The script now takes two prompt for user name and password. One single
input redirection no longer works.
parent 7ad8e7ad
...@@ -6,7 +6,7 @@ set -ex ...@@ -6,7 +6,7 @@ set -ex
# Print usage and fail. # Print usage and fail.
function usage() { 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. exit 1 # Causes caller to exit because we use -e.
} }
...@@ -25,7 +25,7 @@ if [ $0 != ./protobuf_optimized_pip.sh ]; then ...@@ -25,7 +25,7 @@ if [ $0 != ./protobuf_optimized_pip.sh ]; then
exit 1 exit 1
fi fi
if [ $# -lt 3 ]; then if [ $# -lt 1 ]; then
usage usage
exit 1 exit 1
fi fi
...@@ -63,7 +63,4 @@ do ...@@ -63,7 +63,4 @@ do
build_wheel $PYTHON_VERSION build_wheel $PYTHON_VERSION
done done
/opt/python/cp27-cp27mu/bin/twine upload wheelhouse/* <<! /opt/python/cp27-cp27mu/bin/twine upload wheelhouse/*
$PYPI_USERNAME
$PYPI_PASSWORD
!
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment