Переглянути джерело

Merge pull request #4089 from pherl/nocache

Disable pip cache when testing uploaded packages
Jisi Liu 7 роки тому
батько
коміт
88e5573b9a
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      python/release.sh

+ 2 - 1
python/release.sh

@@ -19,7 +19,7 @@ function run_install_test() {
   chmod +x test-venv/bin/protoc
   chmod +x test-venv/bin/protoc
 
 
   source test-venv/bin/activate
   source test-venv/bin/activate
-  pip install -i ${PYPI} protobuf==${VERSION}
+  pip install -i ${PYPI} protobuf==${VERSION} --no-cache-dir
   deactivate
   deactivate
   rm -fr test-venv
   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.
 # Deploy egg/wheel packages to testing PyPI and test again.
 python setup.py bdist_egg bdist_wheel upload -r https://test.pypi.org/legacy/
 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} python2.7 https://test.pypi.org/simple
 run_install_test ${TESTING_VERSION} python3.4 https://test.pypi.org/simple
 run_install_test ${TESTING_VERSION} python3.4 https://test.pypi.org/simple