From 7ad8e7ad596f56df53d910d91370885d6cacdcc8 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Fri, 22 Dec 2017 11:47:13 -0800 Subject: [PATCH] Disable pip cache when testing uploaded packages Otherwise, pip complains "cannot find a version satisfies the requirement." I suspect it was due to caching issues. I usued to manually add a `sleep 30` between the upload and the installation test which is quite unstable. --- python/release.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/release.sh b/python/release.sh index 01fc5e23d..a71cc7f52 100755 --- a/python/release.sh +++ b/python/release.sh @@ -19,7 +19,7 @@ function run_install_test() { chmod +x test-venv/bin/protoc source test-venv/bin/activate - pip install -i ${PYPI} protobuf==${VERSION} + pip install -i ${PYPI} protobuf==${VERSION} --no-cache-dir deactivate rm -fr test-venv } @@ -88,6 +88,7 @@ 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://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