Fix the version of twine to 2.0

pull/21259/head
Esun Kim 5 years ago
parent a373140d1f
commit 4dd753084a
  1. 2
      tools/run_tests/artifacts/build_artifact_python.bat
  2. 2
      tools/run_tests/artifacts/build_artifact_python.sh

@ -47,7 +47,7 @@ python setup.py bdist_wheel || goto :error
popd
@rem Ensure the generate artifacts are valid.
python -m pip install twine
python -m pip install "twine<=2.0"
python -m twine check dist\* tools\distrib\python\grpcio_tools\dist\* || goto :error
xcopy /Y /I /S dist\* %ARTIFACT_DIR% || goto :error

@ -134,7 +134,7 @@ fi
# Ensure the generated artifacts are valid.
"${PYTHON}" -m virtualenv venv || { "${PYTHON}" -m pip install virtualenv && "${PYTHON}" -m virtualenv venv; }
venv/bin/python -m pip install twine
venv/bin/python -m pip install "twine<=2.0"
venv/bin/python -m twine check dist/* tools/distrib/python/grpcio_tools/dist/*
rm -rf venv/

Loading…
Cancel
Save