[PR #190] feat: custom dependency on request #195

Open
opened 2026-02-16 09:19:48 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-sandbox/pull/190
Author: @Tomahawkd
Created: 10/20/2025
Status: 🔄 Open

Base: mainHead: main


📝 Commits (1)

  • 91ee1ce feat: custom dependency on request

📊 Changes

12 files changed (+185 additions, -59 deletions)

View changed files

📝 conf/config.yaml (+1 -0)
📝 docker/versions.yaml (+1 -1)
📝 internal/controller/run.go (+7 -4)
internal/core/runner/python/dependencies/uv.go (+5 -0)
📝 internal/core/runner/python/prescript.py (+6 -0)
📝 internal/core/runner/python/python.go (+124 -50)
📝 internal/core/runner/temp_dir.go (+1 -1)
📝 internal/core/runner/types/runner_options.go (+2 -1)
📝 internal/service/check.go (+6 -1)
📝 internal/types/config.go (+2 -1)
📝 tests/integration_tests/conf/config.yaml (+1 -0)
📝 tests/integration_tests/python_feature_test.go (+29 -0)

📄 Description

This pr adds the ability for client to request install custom python dependencies for this instance. To achieve that, we use astral-sh/uv to create and manage python virtual environment. To not interfere current implementation, the venv will be only created when enable_custom_dependencies is on and custom dependencies are requested. We also add --system-site-packages on venv creation so that the instance can use installed packages such as requests and httpx.


🔄 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-sandbox/pull/190 **Author:** [@Tomahawkd](https://github.com/Tomahawkd) **Created:** 10/20/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`91ee1ce`](https://github.com/langgenius/dify-sandbox/commit/91ee1ceda9acd3de5f14f06b7fc71f586c68a720) feat: custom dependency on request ### 📊 Changes **12 files changed** (+185 additions, -59 deletions) <details> <summary>View changed files</summary> 📝 `conf/config.yaml` (+1 -0) 📝 `docker/versions.yaml` (+1 -1) 📝 `internal/controller/run.go` (+7 -4) ➕ `internal/core/runner/python/dependencies/uv.go` (+5 -0) 📝 `internal/core/runner/python/prescript.py` (+6 -0) 📝 `internal/core/runner/python/python.go` (+124 -50) 📝 `internal/core/runner/temp_dir.go` (+1 -1) 📝 `internal/core/runner/types/runner_options.go` (+2 -1) 📝 `internal/service/check.go` (+6 -1) 📝 `internal/types/config.go` (+2 -1) 📝 `tests/integration_tests/conf/config.yaml` (+1 -0) 📝 `tests/integration_tests/python_feature_test.go` (+29 -0) </details> ### 📄 Description This pr adds the ability for client to request install custom python dependencies for this instance. To achieve that, we use [astral-sh/uv](https://github.com/astral-sh/uv) to create and manage python virtual environment. To not interfere current implementation, the venv will be only created when `enable_custom_dependencies` is on and custom dependencies are requested. We also add `--system-site-packages` on venv creation so that the instance can use installed packages such as `requests` and `httpx`. --- <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-16 09:19:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-sandbox#195