From f3f24fd5ac5b68c5ad0f98de0886d2eeb6d1d566 Mon Sep 17 00:00:00 2001 From: Filinto Duran <1373693+filintod@users.noreply.github.com> Date: Tue, 28 Oct 2025 08:40:38 -0500 Subject: [PATCH] update protobuf version so it trickles down to python-sdk Signed-off-by: Filinto Duran <1373693+filintod@users.noreply.github.com> --- Makefile | 1 + pyproject.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 3c1ed51..5c13901 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ install: gen-proto: curl -o durabletask/internal/orchestrator_service.proto https://raw.githubusercontent.com/dapr/durabletask-protobuf/refs/heads/main/protos/orchestrator_service.proto curl -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/dapr/durabletask-protobuf/commits?path=protos/orchestrator_service.proto&sha=main&per_page=1" | jq -r '.[0].sha' > durabletask/internal/PROTO_SOURCE_COMMIT_HASH + # NOTE: remember to check/update pyproject.toml protobuf version to follow https://github.com/grpc/grpc/blob/v{{VERSION GRPC IO TOOL BELLOW}}/tools/distrib/python/grpcio_tools/setup.py pip install grpcio-tools==1.74.0 python3 -m grpc_tools.protoc --proto_path=. --python_out=. --pyi_out=. --grpc_python_out=. ./durabletask/internal/orchestrator_service.proto rm durabletask/internal/*.proto diff --git a/pyproject.toml b/pyproject.toml index 8c4d1e4..9bcf1bb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,7 +26,7 @@ license = {file = "LICENSE"} readme = "README.md" dependencies = [ "grpcio", - "protobuf", + "protobuf>=6.31.1,<7.0.0", # follows grpcio generation version https://github.com/grpc/grpc/blob/v1.74.0/tools/distrib/python/grpcio_tools/setup.py "asyncio" ]