aboutsummaryrefslogtreecommitdiff
path: root/python/release.sh
diff options
context:
space:
mode:
authorJisi Liu <jisi.liu@gmail.com>2017-08-16 10:30:38 -0700
committerJisi Liu <jisi.liu@gmail.com>2017-08-16 10:30:38 -0700
commit19a7e2099bf3502e1245ee822222248645fa6f89 (patch)
treeb844329bfa093875c20bad010686f0c11f851e4a /python/release.sh
parent80a37e0782d2d702d52234b62dd4b9ec74fd2c95 (diff)
downloadprotobuf-19a7e2099bf3502e1245ee822222248645fa6f89.tar.gz
protobuf-19a7e2099bf3502e1245ee822222248645fa6f89.tar.bz2
protobuf-19a7e2099bf3502e1245ee822222248645fa6f89.zip
Update testpypi addresses.
The old one is deprecated and no longer working.
Diffstat (limited to 'python/release.sh')
-rwxr-xr-xpython/release.sh15
1 files changed, 9 insertions, 6 deletions
diff --git a/python/release.sh b/python/release.sh
index e7b1a4aa..5a5c5d33 100755
--- a/python/release.sh
+++ b/python/release.sh
@@ -11,8 +11,11 @@ function run_install_test() {
local PYTHON=$2
local PYPI=$3
+ #virtualenv -p `which $PYTHON` test-venv
virtualenv --no-site-packages -p `which $PYTHON` test-venv
+ #pip install --upgrade pip
+
# Intentionally put a broken protoc in the path to make sure installation
# doesn't require protoc installed.
touch test-venv/bin/protoc
@@ -79,16 +82,16 @@ python setup.py build
python setup.py test
# Deploy source package to testing PyPI
-python setup.py sdist upload -r https://testpypi.python.org/pypi
+python setup.py sdist upload -r https://test.pypi.org/legacy/
# Test locally with different python versions.
-run_install_test ${TESTING_VERSION} python2.7 https://testpypi.python.org/simple
-run_install_test ${TESTING_VERSION} python3.4 https://testpypi.python.org/simple
+run_install_test ${TESTING_VERSION} python2.7 https://test.pypi.org/simple
+run_install_test ${TESTING_VERSION} python3.4 https://test.pypi.org/simple
# Deploy egg/wheel packages to testing PyPI and test again.
-python setup.py bdist_egg bdist_wheel upload -r https://testpypi.python.org/pypi
-run_install_test ${TESTING_VERSION} python2.7 https://testpypi.python.org/simple
-run_install_test ${TESTING_VERSION} python3.4 https://testpypi.python.org/simple
+python setup.py bdist_egg bdist_wheel upload -r https://test.pypi.org/legacy/
+run_install_test ${TESTING_VERSION} python2.7 https://test.pypi.org/simple
+run_install_test ${TESTING_VERSION} python3.4 https://test.pypi.org/simple
echo "All install tests have passed using testing PyPI."