Merge pull request #19157 from gnossen/master_twine_check

Port #19105 to master
pull/19012/head
Richard Belleville 6 years ago committed by GitHub
commit 7f32b96e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      src/python/grpcio/README.rst
  2. 8
      tools/distrib/python/grpcio_tools/README.rst
  3. 4
      tools/run_tests/artifacts/build_artifact_python.bat
  4. 6
      tools/run_tests/artifacts/build_artifact_python.sh

@ -8,8 +8,8 @@ Installation
gRPC Python is available for Linux, macOS, and Windows.
From PyPI
~~~~~~~~~
Installing From PyPI
~~~~~~~~~~~~~~~~~~~~
If you are installing locally...
@ -37,8 +37,8 @@ n.b. On Windows and on Mac OS X one *must* have a recent release of :code:`pip`
to retrieve the proper wheel from PyPI. Be sure to upgrade to the latest
version!
From Source
~~~~~~~~~~~
Installing From Source
~~~~~~~~~~~~~~~~~~~~~~
Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`).

@ -9,8 +9,8 @@ Installation
The gRPC Python tools package is available for Linux, Mac OS X, and Windows
running Python 2.7.
From PyPI
~~~~~~~~~
Installing From PyPI
~~~~~~~~~~~~~~~~~~~~
If you are installing locally...
@ -42,8 +42,8 @@ You might also need to install Cython to handle installation via the source
distribution if gRPC Python's system coverage with wheels does not happen to
include your system.
From Source
~~~~~~~~~~~
Installing From Source
~~~~~~~~~~~~~~~~~~~~~~
Building from source requires that you have the Python headers (usually a
package named :code:`python-dev`) and Cython installed. It further requires a

@ -46,6 +46,10 @@ pushd tools\distrib\python\grpcio_tools
python setup.py bdist_wheel || goto :error
popd
@rem Ensure the generate artifacts are valid.
python -m pip install twine
python -m twine check dist\* tools\distrib\python\grpcio_tools\dist\* || goto :error
xcopy /Y /I /S dist\* %ARTIFACT_DIR% || goto :error
xcopy /Y /I /S tools\distrib\python\grpcio_tools\dist\* %ARTIFACT_DIR% || goto :error

@ -130,5 +130,11 @@ then
cp -r src/python/grpcio_status/dist/* "$ARTIFACT_DIR"
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 twine check dist/* tools/distrib/python/grpcio_tools/dist/*
rm -rf venv/
cp -r dist/* "$ARTIFACT_DIR"
cp -r tools/distrib/python/grpcio_tools/dist/* "$ARTIFACT_DIR"

Loading…
Cancel
Save