File tree Expand file tree Collapse file tree
src/python/grpcio_testing
tools/run_tests/artifacts Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ include grpc_version.py
2+ recursive-include grpc_testing *.py
3+ global-exclude *.pyc
Original file line number Diff line number Diff line change 1+ gRPC Python Testing Package
2+ ===========================
3+
4+ Testing utilities for gRPC Python
5+
6+ Dependencies
7+ ------------
8+
9+ Depends on the `grpcio ` package, available from PyPI via `pip install grpcio `.
10+
Original file line number Diff line number Diff line change 2828 echo " Testing Python source distribution"
2929 ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-[0-9]* .tar.gz)
3030 TOOLS_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-tools-[0-9]* .tar.gz)
31- HEALTH_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-health-checking-[0-9]* .tar.gz)
32- REFLECTION_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-reflection-[0-9]* .tar.gz)
3331fi
3432
33+ HEALTH_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-health-checking-[0-9]* .tar.gz)
34+ REFLECTION_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-reflection-[0-9]* .tar.gz)
35+ TESTING_ARCHIVES=(" $EXTERNAL_GIT_ROOT " /input_artifacts/grpcio-testing-[0-9]* .tar.gz)
36+
3537VIRTUAL_ENV=$( mktemp -d)
3638virtualenv " $VIRTUAL_ENV "
3739PYTHON=$VIRTUAL_ENV /bin/python
@@ -53,13 +55,9 @@ function at_least_one_installs() {
5355
5456at_least_one_installs " ${ARCHIVES[@]} "
5557at_least_one_installs " ${TOOLS_ARCHIVES[@]} "
56-
57- if [[ " $1 " == " source" ]]
58- then
59- echo " Testing Python health and reflection packages"
60- at_least_one_installs " ${HEALTH_ARCHIVES[@]} "
61- at_least_one_installs " ${REFLECTION_ARCHIVES[@]} "
62- fi
58+ at_least_one_installs " ${HEALTH_ARCHIVES[@]} "
59+ at_least_one_installs " ${REFLECTION_ARCHIVES[@]} "
60+ at_least_one_installs " ${TESTING_ARCHIVES[@]} "
6361
6462
6563#
Original file line number Diff line number Diff line change 9999 " ${PIP} " install grpcio --no-index --find-links " file://$ARTIFACT_DIR /"
100100 " ${PIP} " install grpcio-tools --no-index --find-links " file://$ARTIFACT_DIR /"
101101
102- # Build gRPC health-checking source distribution
102+ # Build grpcio_testing source distribution
103+ ${SETARCH_CMD} " ${PYTHON} " src/python/grpcio_testing/setup.py sdist
104+ cp -r src/python/grpcio_testing/dist/* " $ARTIFACT_DIR "
105+
106+ # Build grpcio_health_checking source distribution
103107 ${SETARCH_CMD} " ${PYTHON} " src/python/grpcio_health_checking/setup.py \
104108 preprocess build_package_protos sdist
105109 cp -r src/python/grpcio_health_checking/dist/* " $ARTIFACT_DIR "
106110
107- # Build gRPC reflection source distribution
111+ # Build grpcio_reflection source distribution
108112 ${SETARCH_CMD} " ${PYTHON} " src/python/grpcio_reflection/setup.py \
109113 preprocess build_package_protos sdist
110114 cp -r src/python/grpcio_reflection/dist/* " $ARTIFACT_DIR "
You can’t perform that action at this time.
0 commit comments