From 268e4ff6f15af316c07856327d7afe6603bb1185 Mon Sep 17 00:00:00 2001 From: yangdx Date: Tue, 2 Dec 2025 03:02:43 +0800 Subject: [PATCH] Refactor dependencies and add test extra in pyproject.toml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Pin httpx version in api extra • Extract test dependencies to new extra • Move httpx pin from evaluation to api • Add api dependency to evaluation extra • Separate test from evaluation concerns --- pyproject.toml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 649ecb41..761a3309 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,7 +76,7 @@ api = [ "distro", "fastapi", "httpcore", - "httpx", + "httpx>=0.28.1", "jiter", "bcrypt>=4.0.0", "psutil", @@ -130,16 +130,18 @@ offline = [ "lightrag-hku[api,offline-storage,offline-llm]", ] -evaluation = [ - # Test framework dependencies +test = [ + "lightrag-hku[api]", "pytest>=8.4.2", "pytest-asyncio>=1.2.0", "pre-commit", "ruff", - # RAG evaluation dependencies (RAGAS framework) +] + +evaluation = [ + "lightrag-hku[api]", "ragas>=0.3.7", "datasets>=4.3.0", - "httpx>=0.28.1", ] observability = [