From 5047ea0e85a876563fcb993bdd252d1e729caf4b Mon Sep 17 00:00:00 2001 From: Ludovic Henry Date: Thu, 15 Oct 2026 11:01:12 +0000 Subject: [PATCH] grpcio: add 1.65.5 for apache-beam's grpcio<1.66.0 pin apache-beam 2.54.0-2.61.0 pins grpcio<1.66.0 excluding 1.59-1.62.1 (and most of 1.59-1.62 are excluded anyway); our registry's lowest cp312 build was 1.72.0. 1.65.5 predates grpc's pyproject.toml build migration the current patches target (and cp313's release by ~2 months), so the matrix drops cp313/cp314 and the patch-apply step becomes conditional since this version needs none of them. --- .github/workflows/build-grpcio.yml | 17 +++++++++++++++-- docs/packages/grpcio.yaml | 1 + 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-grpcio.yml b/.github/workflows/build-grpcio.yml index 56b339e3ad2b..cc29405fcd91 100644 --- a/.github/workflows/build-grpcio.yml +++ b/.github/workflows/build-grpcio.yml @@ -56,6 +56,13 @@ jobs: # 3.14t is dropped from the usual default matrix. # See also: https://github.com/grpc/grpc/issues/38762 python: ["cp312", "cp313", "cp314"] + exclude: + # 1.65.5 predates cp313 (released Oct 2024, ~2 months later) and + # never shipped a wheel past cp312 upstream either. + - version: "1.65.5" + python: cp313 + - version: "1.65.5" + python: cp314 env: GRPCIO_VERSION: ${{ matrix.version }} @@ -82,9 +89,15 @@ jobs: # install_all_python_modules.sh (run below via CIBW_TEST_COMMAND) would # otherwise reinstall grpcio from source before testing, rather than - # testing the wheel this job just built. + # testing the wheel this job just built. Not every version has a patch + # dir: 1.65.5 predates grpc's pyproject.toml migration that the current + # patches target, so it needs none of them. - name: Patch grpc source - run: git apply python-wheels/patches/grpcio/${{ env.GRPCIO_VERSION }}/00*.patch + run: | + patches="python-wheels/patches/grpcio/${{ env.GRPCIO_VERSION }}" + if [ -d "$patches" ]; then + git apply "$patches"/00*.patch + fi # The C++ core is identical across cp312/cp313/cp314; share ccache across # builds assuming that the package version is the same. diff --git a/docs/packages/grpcio.yaml b/docs/packages/grpcio.yaml index 5875aac57b85..a48b8eb5a9ed 100644 --- a/docs/packages/grpcio.yaml +++ b/docs/packages/grpcio.yaml @@ -4,6 +4,7 @@ license: Apache License 2.0 comment: The sources of libatomic are provided for wheels built with gcc-12 only. Wheels built with gcc-14 do not link against libatomic. versions: +- version: 1.65.5 - version: 1.72.0 tag: grpcio-v1.72.0-20260902125649 yanked: true