Merge pull request #21259 from veblush/python-twine

Fix the version of twine <= 2.0
pull/18856/head
Esun Kim 5 years ago committed by GitHub
commit e5dc51fcf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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