From 13ae351ff078854c3366556784a82e08c1ba8e15 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Fri, 23 Aug 2024 05:22:44 +0000 Subject: [PATCH] build: force the protobuf version in the build system so that it is compatible with the runtime dependency Signed-off-by: Yang, Bo --- pyproject.toml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 00170ab443..af44861502 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,5 +1,14 @@ [build-system] -requires = ["setuptools>=60", "wheel", "setuptools_scm>=6.2", "grpcio", "grpcio-tools>=1.47.0", "mypy-protobuf==3.1", "sphinx!=4.0.0"] +requires = [ + "setuptools>=60", + "wheel", + "setuptools_scm>=6.2", + "grpcio", + "grpcio-tools>=1.47.0", + "mypy-protobuf==3.1", + "protobuf>=4.24.0,<5.0.0", + "sphinx!=4.0.0", +] build-backend = "setuptools.build_meta" [tool.setuptools_scm]