From e7a84bdac2ac0d0c3250f6dc2d4b15b3ac557979 Mon Sep 17 00:00:00 2001 From: Gifford Nowland Date: Wed, 14 May 2025 21:22:56 -0700 Subject: [PATCH] Fix: setuptools package definitions (#7654) ### What problem does this PR solve? For `uv package`/`uv pip install ".[full]"`, bug introduced in #6370: * Removes erroneous (non-package) directories (`helm`, `flask_session`) * Adds `mcp.server` package * Resolves "warning: package would be ignored" ambiguity by changing `sdk` to `sdk.python.ragflow_sdk` * Resolves "error: package directory 'intergrations' does not exist" by including `intergrations.chatgpt-on-wechat.plugins` explicitly * Also rearranges packages in alphabetical order, for DX. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) - [ ] New Feature (non-breaking change which adds functionality) - [ ] Documentation Update - [ ] Refactoring - [ ] Performance Improvement - [ ] Other (please describe): --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 20746edaf..104c2d125 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -141,7 +141,7 @@ full = [ ] [tool.setuptools] -packages = ['rag', 'api', 'sdk', 'helm','agent', 'deepdoc', 'graphrag', 'flask_session', 'intergrations', 'agentic_reasoning'] +packages = ['agent', 'agentic_reasoning', 'api', 'deepdoc', 'graphrag', 'intergrations.chatgpt-on-wechat.plugins', 'mcp.server', 'rag', 'sdk.python.ragflow_sdk'] [[tool.uv.index]] url = "https://mirrors.aliyun.com/pypi/simple"