[PR #150] [MERGED] feat: enhance PluginRunner to build plugins from source directories #185

Closed
opened 2026-02-15 21:16:08 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-sdks/pull/150
Author: @Yeuoly
Created: 5/27/2025
Status: Merged
Merged: 5/27/2025
Merged by: @Yeuoly

Base: mainHead: enhance/tests


📝 Commits (2)

  • e482036 feat: enhance PluginRunner to build plugins from source directories
  • 2fdff4a fix: linter

📊 Changes

4 files changed (+37 additions, -5 deletions)

View changed files

📝 python/dify_plugin/integration/run.py (+32 -1)
📝 python/tests/__mock_server/openai.py (+3 -3)
python/tests/consts/mockserver.py (+1 -0)
📝 python/tests/integration/test_invoke_llm.py (+1 -1)

📄 Description

  • Added functionality to the PluginRunner to detect if the plugin package path is a directory and build the plugin accordingly.
  • Introduced a new method _build_plugin to handle the building process and log the output.
  • Implemented resource cleanup for temporary directories used during the build process.
  • Updated integration tests to reflect changes in the mock server configuration by using a constant for the server port.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-sdks/pull/150 **Author:** [@Yeuoly](https://github.com/Yeuoly) **Created:** 5/27/2025 **Status:** ✅ Merged **Merged:** 5/27/2025 **Merged by:** [@Yeuoly](https://github.com/Yeuoly) **Base:** `main` ← **Head:** `enhance/tests` --- ### 📝 Commits (2) - [`e482036`](https://github.com/langgenius/dify-plugin-sdks/commit/e482036aa5665323b3269082313f9ca71bd99489) feat: enhance PluginRunner to build plugins from source directories - [`2fdff4a`](https://github.com/langgenius/dify-plugin-sdks/commit/2fdff4a890d6b45836519e85fdd2adf8d5244744) fix: linter ### 📊 Changes **4 files changed** (+37 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `python/dify_plugin/integration/run.py` (+32 -1) 📝 `python/tests/__mock_server/openai.py` (+3 -3) ➕ `python/tests/consts/mockserver.py` (+1 -0) 📝 `python/tests/integration/test_invoke_llm.py` (+1 -1) </details> ### 📄 Description - Added functionality to the PluginRunner to detect if the plugin package path is a directory and build the plugin accordingly. - Introduced a new method `_build_plugin` to handle the building process and log the output. - Implemented resource cleanup for temporary directories used during the build process. - Updated integration tests to reflect changes in the mock server configuration by using a constant for the server port. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 21:16:08 -05:00
yindo closed this issue 2026-02-15 21:16:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#185