mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-26 10:02:19 +01:00
### NOTE * We shouldn't merge this PR until GCP cloud functions drops support for Python 3.7 ([Currently scheduled for GCF](https://cloud.google.com/functions/docs/runtime-support#python)) As part of supporting Python 3.12, we're now officially drop support for Python 3.7. This PR: * Changed supported Python version from 3.7 to 3.8 in README. * Replaced distribution test image from `debian:buster` to `debian:bullseye` since the default Python version in buster is 3.7. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> Closes #34450 PiperOrigin-RevId: 622899511
31 lines
952 B
Bash
Executable File
31 lines
952 B
Bash
Executable File
#!/bin/bash
|
|
# Copyright 2015 gRPC authors.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
set -ex
|
|
|
|
# change to grpc repo root
|
|
cd "$(dirname "$0")/../../.."
|
|
|
|
# TODO(jtattermusch): is the $(pwd) prefix actually useful?
|
|
PYTHON="$(pwd)/${1:-py38/bin/python}"
|
|
|
|
ROOT=$(pwd)
|
|
|
|
$PYTHON "$ROOT/src/python/grpcio_tests/setup.py" "$2"
|
|
|
|
mkdir -p "$ROOT/reports"
|
|
rm -rf "$ROOT/reports/python-coverage"
|
|
(mv -T "$ROOT/htmlcov" "$ROOT/reports/python-coverage") || true
|