Skip to content

Commit

Permalink
Merge pull request #21980 from apolcyn/backport_pr
Browse files Browse the repository at this point in the history
Backport #21977 to 1.27.x
  • Loading branch information
lidizheng committed Feb 11, 2020
2 parents be1715d + 33b0fdc commit 6d310d4
Show file tree
Hide file tree
Showing 30 changed files with 32 additions and 32 deletions.
2 changes: 1 addition & 1 deletion templates/tools/dockerfile/python_deps.include
Expand Up @@ -10,5 +10,5 @@ RUN apt-get update && apt-get install -y ${'\\'}

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0
4 changes: 2 additions & 2 deletions templates/tools/dockerfile/test/sanity/Dockerfile.template
Expand Up @@ -28,8 +28,8 @@
libtool ${"\\"}
curl ${"\\"}
shellcheck
RUN python2 -m pip install simplejson mako virtualenv lxml
RUN python3 -m pip install simplejson mako virtualenv lxml
RUN python2 -m pip install simplejson mako virtualenv==16.7.9 lxml
RUN python3 -m pip install simplejson mako virtualenv==16.7.9 lxml

<%include file="../../clang5.include"/>
<%include file="../../bazel.include"/>
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/grpc_clang_tidy/Dockerfile
Expand Up @@ -35,7 +35,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

ADD clang_tidy_all_the_things.sh /
Expand Down
Expand Up @@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#================
Expand Down
Expand Up @@ -61,7 +61,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_cxx/Dockerfile
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_go/Dockerfile
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

# Define the default command.
Expand Down
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

# Define the default command.
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_go1.7/Dockerfile
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

# Define the default command.
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_go1.8/Dockerfile
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

# Define the default command.
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_http2/Dockerfile
Expand Up @@ -29,7 +29,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

RUN pip install twisted h2==2.6.1 hyper
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_node/Dockerfile
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#==================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/interoptest/grpc_interop_ruby/Dockerfile
Expand Up @@ -62,7 +62,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#==================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/bazel/Dockerfile
Expand Up @@ -45,7 +45,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0


Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/csharp_stretch_x64/Dockerfile
Expand Up @@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_buster_x64/Dockerfile
Expand Up @@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_jessie_x64/Dockerfile
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_jessie_x86/Dockerfile
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_sanitizers_jessie_x64/Dockerfile
Expand Up @@ -67,7 +67,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_ubuntu1404_x64/Dockerfile
Expand Up @@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_ubuntu1604_x64/Dockerfile
Expand Up @@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/cxx_ubuntu1804_x64/Dockerfile
Expand Up @@ -65,7 +65,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/fuzzer/Dockerfile
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/node_jessie_x64/Dockerfile
Expand Up @@ -77,7 +77,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#==================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/php7_jessie_x64/Dockerfile
Expand Up @@ -77,7 +77,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/php_jessie_x64/Dockerfile
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#=================
Expand Down
2 changes: 1 addition & 1 deletion tools/dockerfile/test/ruby_jessie_x64/Dockerfile
Expand Up @@ -66,7 +66,7 @@ RUN apt-get update && apt-get install -y \

# Install Python packages from PyPI
RUN pip install --upgrade pip==19.3.1
RUN pip install virtualenv
RUN pip install virtualenv==16.7.9
RUN pip install futures==2.2.0 enum34==1.0.4 protobuf==3.5.2.post1 six==1.10.0 twisted==17.5.0

#==================
Expand Down
4 changes: 2 additions & 2 deletions tools/dockerfile/test/sanity/Dockerfile
Expand Up @@ -80,8 +80,8 @@ RUN apt-get update && apt-get install -y \
libtool \
curl \
shellcheck
RUN python2 -m pip install simplejson mako virtualenv lxml
RUN python3 -m pip install simplejson mako virtualenv lxml
RUN python2 -m pip install simplejson mako virtualenv==16.7.9 lxml
RUN python3 -m pip install simplejson mako virtualenv==16.7.9 lxml

RUN apt-get update && apt-get -y install wget xz-utils
RUN wget http://releases.llvm.org/5.0.0/clang+llvm-5.0.0-linux-x86_64-ubuntu14.04.tar.xz
Expand Down
2 changes: 1 addition & 1 deletion tools/run_tests/artifacts/build_artifact_python.sh
Expand Up @@ -136,7 +136,7 @@ then
fi

# Ensure the generated artifacts are valid.
"${PYTHON}" -m virtualenv venv || { "${PYTHON}" -m pip install virtualenv && "${PYTHON}" -m virtualenv venv; }
"${PYTHON}" -m virtualenv venv || { "${PYTHON}" -m pip install virtualenv==16.7.9 && "${PYTHON}" -m virtualenv venv; }
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/
Expand Down
2 changes: 1 addition & 1 deletion tools/run_tests/helper_scripts/build_python.sh
Expand Up @@ -145,7 +145,7 @@ if [[ "$(inside_venv)" ]]; then
VENV_PYTHON="$PYTHON"
else
# Instantiate the virtualenv from the Python version passed in.
$PYTHON -m pip install --user virtualenv
$PYTHON -m pip install --user virtualenv==16.7.9
$PYTHON -m virtualenv "$VENV"
VENV_PYTHON=$(script_realpath "$VENV/$VENV_RELATIVE_PYTHON")
fi
Expand Down

0 comments on commit 6d310d4

Please sign in to comment.