mirror of
https://github.com/php-win-ext/grpc.git
synced 2026-03-24 09:02:15 +01:00
- Regen requirements.bazel.lock with Python 3.9 - bump isort to 6.0.1 (except in pylint, which needs to be updated separately) - fix python version specifiers for black, isort and pylint, typeguard - fix default ignore patterns for isort and pylint - consistent debug info: python version, pip list - consistent virtualenv naming: `.venv-ci-*` - bazel: bump typeguard to 4.4.2 - bazel: bumped gevent to `25.9.1`, greenlet to `3.2.4` to support Python 3.13, closes #40685 - bazel: bump pyyaml for python 3.14 support - bazel: take care of temporary pins to support 3.8-based CIs Bazel RBE CIs upgraded in the following changelists, and currently run Python 3.10: - cl/845778848 - cl/845816768 Relevant testing was done in #41239. Closes #40323 PiperOrigin-RevId: 846423001
47 lines
1.4 KiB
Bash
Executable File
47 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright 2025 The 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 -eux
|
|
|
|
ACTION="${1:-}"
|
|
[[ $ACTION == '' ]] || [[ $ACTION == '--fix' ]]
|
|
|
|
# change to root directory
|
|
cd "$(dirname "$0")/../.."
|
|
|
|
DIRS=(
|
|
src/python/grpcio/grpc
|
|
src/python/grpcio_channelz/grpc_channelz
|
|
src/python/grpcio_health_checking/grpc_health
|
|
src/python/grpcio_reflection/grpc_reflection
|
|
src/python/grpcio_testing/grpc_testing
|
|
src/python/grpcio_status/grpc_status
|
|
src/python/grpcio_observability/grpc_observability
|
|
src/python/grpcio_csm_observability/grpc_csm_observability
|
|
src/python/grpcio_tests/tests
|
|
src/python/grpcio_tests/tests_gevent
|
|
examples/python
|
|
)
|
|
|
|
VIRTUALENV=".venv-ci-ruff"
|
|
python3 -m virtualenv "${VIRTUALENV}"
|
|
source "${VIRTUALENV}/bin/activate"
|
|
python -VV
|
|
|
|
pip install ruff==0.12.2
|
|
pip list
|
|
|
|
exec ruff check $ACTION "${DIRS[@]}"
|