Fix the version of twine <= 2.0
@ -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/