mirror of
https://github.com/langgenius/dify-sandbox.git
synced 2026-07-25 21:46:12 -04:00
[PR #190] feat: custom dependency on request #195
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-sandbox/pull/190
Author: @Tomahawkd
Created: 10/20/2025
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
91ee1cefeat: 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_dependenciesis on and custom dependencies are requested. We also add--system-site-packageson venv creation so that the instance can use installed packages such asrequestsandhttpx.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.