mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-24 21:01:26 -04:00
[PR #540] [MERGED] Followup fixes for uv dependencies #537
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/run-llama/llama_deploy/pull/540
Author: @adrianlyjak
Created: 6/16/2025
Status: ✅ Merged
Merged: 6/17/2025
Merged by: @masci
Base:
main← Head:retain-repo📝 Commits (5)
68871e6retain the full repo for workspaces0e8cb69Fix rc_path not updating. Add fixes for non-local "local" sources:6778cc5sync specifically to a ui dir06c9619back out of that breaking change5e6001dAlso merge in UI, so as to not blow away the previously synced workflow code📊 Changes
6 files changed (+121 additions, -22 deletions)
View changed files
📝
docker/run_autodeploy.py(+3 -2)📝
llama_deploy/apiserver/deployment.py(+16 -5)📝
llama_deploy/apiserver/deployment_config_parser.py(+13 -2)📝
llama_deploy/apiserver/source_managers/base.py(+9 -11)📝
llama_deploy/apiserver/source_managers/local.py(+3 -0)📝
tests/apiserver/test_deployment.py(+77 -2)📄 Description
I had some trouble actually running code from installed uv dependencies. Part of the complexity here was attempting to install from a uv workspace, but there were also some bugs
rc_pathsetting,llamactl serveenvironments, afteruv pip installing, new modules are available immediately. When testing in build container with package installed, a module reload was required./foo/barto/tmp/deployments/QuickStartwill create/tmp/deployments/QuickStart/foo/bar. Now it just copies to/tmp/deployments/QuickStarthttps://github.com/foo/barwill just copy the files to/tmp/deployments/QuickStart/To account for this difference without introducing a change breaking the llama deploy deployment.yaml config, I added a
relative_pathmethod to theSourceManageras a workaroundI discovered this when attempting to sync a UI with a source of
/app/ui(for workspace support reasons). The UI sync sort of has an assumption currently that the UI is only ever in/ui, and this local folder path copying was embedded into it. It'ssourcepath was somewhat ignored, and always attempted to runpnpmfrom a cwd oftarget_folder / "ui". This now instead resolves the cwd ofpnpmcommands to thetarget_folder / relative_pathsync_policy(This is also a somewhat unstable way to get the UI pnpm workspace to work, but the sync policy option seems reasonable either way)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.