From 31abb735c62891a3ac36c922b488a2b572bb5125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=86=E5=BC=A0=E5=BC=9B?= Date: Sat, 14 Mar 2026 11:04:06 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=B9=B6=E6=B7=BB=E5=8A=A0pytest=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将langchain相关依赖升级至1.x版本并添加版本范围限制 添加pytest的pythonpath和testpaths配置 --- pyproject.toml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 9213d7f6..3ef437b4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,13 +9,13 @@ description = "TradingAgents: Multi-Agents LLM Financial Trading Framework" readme = "README.md" requires-python = ">=3.10" dependencies = [ - "langchain-core>=0.3.81", + "langchain-core>=1.0.0,<2.0.0", "backtrader>=1.9.78.123", "chainlit>=2.5.5", - "langchain-anthropic>=0.3.15", - "langchain-experimental>=0.3.4", + "langchain-anthropic>=1.0.0,<2.0.0", "langchain-google-genai>=2.1.5", - "langchain-openai>=0.3.23", + "langchain-openai>=1.0.0,<2.0.0", + "langchain-codex-oauth>=1.0,<1.1", "langgraph>=0.4.8", "pandas>=2.3.0", "parsel>=1.10.0", @@ -38,3 +38,7 @@ tradingagents = "cli.main:app" [tool.setuptools.packages.find] include = ["tradingagents*", "cli*"] + +[tool.pytest.ini_options] +pythonpath = ["."] +testpaths = ["tests"]