From fb42116616e91a771b29916cefbb94cbd265c84d Mon Sep 17 00:00:00 2001 From: wangwei Date: Tue, 23 Jun 2026 11:29:35 +0800 Subject: [PATCH] fix: add setuptools package discovery config to pyproject.toml Newer setuptools (Linux) raises error when multiple top-level dirs are found. Explicitly include only rag_eval/apps/webapp and exclude runtime data dirs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- pyproject.toml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index bd7c25f..bc2bd5c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -17,3 +17,8 @@ dependencies = [ "pydantic-settings>=2.14.1", "ragas==0.4.3", ] + +[tool.setuptools.packages.find] +# 只打包源码目录,排除运行时产生的数据目录 +include = ["rag_eval*", "apps*", "webapp*"] +exclude = ["logs*", "outputs*", "datasets*", "configs*", "scenarios*", "scripts*", "tests*"]