From fa88dcbfc2cd9e426564a4577f62840c9b1df308 Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Tue, 23 Jan 2024 18:27:58 +0800 Subject: [PATCH 1/2] set version limits for requirements --- setup.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/setup.py b/setup.py index a1b79c76c..c0606c5e2 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,12 @@ NAME = "agentscope" URL = "https://github.com/alibaba/AgentScope" -rpc_requires = ["grpcio", "grpcio-tools", "expiringdict"] +rpc_requires = [ + "grpcio==1.60.0", + "grpcio-tools==1.60.0", + "protobuf==4.25.0", + "expiringdict", +] service_requires = ["docker", "pymongo", "pymysql"] @@ -37,7 +42,7 @@ "tiktoken", "Pillow", "requests", - "openai", + "openai>=1.3.0", "numpy", ] @@ -46,11 +51,7 @@ dev_requires = minimal_requires + test_requires full_requires = ( - minimal_requires - + rpc_requires - + service_requires - + doc_requires - + test_requires + minimal_requires + rpc_requires + service_requires + doc_requires + test_requires ) with open("README.md", "r", encoding="UTF-8") as fh: From b47eae45b3211bb6b6b2d5a9ca0866847902ad20 Mon Sep 17 00:00:00 2001 From: "panxuchen.pxc" Date: Tue, 23 Jan 2024 19:14:11 +0800 Subject: [PATCH 2/2] clean code --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c0606c5e2..7ae6b4d73 100644 --- a/setup.py +++ b/setup.py @@ -51,7 +51,11 @@ dev_requires = minimal_requires + test_requires full_requires = ( - minimal_requires + rpc_requires + service_requires + doc_requires + test_requires + minimal_requires + + rpc_requires + + service_requires + + doc_requires + + test_requires ) with open("README.md", "r", encoding="UTF-8") as fh: