From 3903f836c9aaf9e49ab4ff4e440305e53df320d2 Mon Sep 17 00:00:00 2001 From: mrproliu <741550557@qq.com> Date: Sun, 1 Sep 2024 19:40:11 +0800 Subject: [PATCH] lock versions of grpc --- Dockerfile | 2 +- Makefile | 2 +- pyproject.toml | 4 ++-- test/e2e/requirements.txt | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 24bb6be..fefaf1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,7 +23,7 @@ WORKDIR /app COPY . /app # Build the project with make -RUN python3 -m pip install grpcio-tools packaging \ +RUN python3 -m pip install grpcio-tools==1.66.0 packaging \ && python3 -m tools.grpc_gen \ && python3 -m pip install .[all] diff --git a/Makefile b/Makefile index 2749ad4..dd022a7 100644 --- a/Makefile +++ b/Makefile @@ -53,7 +53,7 @@ endif .PHONY: gen-basic gen-basic: - python3 -m pip install grpcio-tools packaging + python3 -m pip install grpcio-tools==1.66.0 packaging python3 -m tools.grpc_gen .PHONY: install diff --git a/pyproject.toml b/pyproject.toml index fe90fb9..0f4d0a9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,8 +54,8 @@ generate-setup-file = true [tool.poetry.dependencies] python = ">=3.8,<3.12" # Gradio needs 3.8+ -grpcio = "*" -grpcio-tools = "*" +grpcio = "<=1.66.0" +grpcio-tools = "<=1.66.0" jsonpickle = "^3.0.1" cachetools = "^5.3.1" nltk = "^3.8.1" diff --git a/test/e2e/requirements.txt b/test/e2e/requirements.txt index 55752ec..45c6dad 100644 --- a/test/e2e/requirements.txt +++ b/test/e2e/requirements.txt @@ -32,8 +32,8 @@ fonttools==4.44.0 fsspec==2023.10.0 gradio==3.50.2 gradio_client==0.6.1 -grpcio==1.65.4 -grpcio-tools==1.59.2 +grpcio==1.66.0 +grpcio-tools==1.66.0 h11==0.14.0 httpcore==1.0.1 httpx==0.25.1 @@ -63,7 +63,7 @@ pep8-naming==0.13.3 Pillow==10.1.0 platformdirs==3.11.0 pluggy==1.3.0 -protobuf==4.25.0 +protobuf==5.28.0 psutil==5.9.6 pycodestyle==2.9.1 pydantic==2.4.2