feat: adopt native uv support for Databricks Apps#70
Open
dgokeeffe wants to merge 4 commits intodatasciencemonkey:mainfrom
Open
feat: adopt native uv support for Databricks Apps#70dgokeeffe wants to merge 4 commits intodatasciencemonkey:mainfrom
dgokeeffe wants to merge 4 commits intodatasciencemonkey:mainfrom
Conversation
- Switch to uv run gunicorn in app.yaml (10-100x faster installs) - Delete requirements.txt, use pyproject.toml + uv.lock exclusively - Require Python >=3.12, add missing deps (gunicorn, flask-socketio) - Run setup scripts via uv run python for consistent Python 3.12 env - Strip DATABRICKS_TOKEN whitespace at startup to fix auth failures - Add ~/.local/bin to PATH in _run_step for uv/tool discovery Co-authored-by: Isaac
Co-authored-by: Isaac
Co-authored-by: Isaac
Falls back to direct model serving when no AI Gateway is configured. Co-authored-by: Isaac
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pyproject.toml+uv.lock)app.yamlcommand to useuv run gunicornDATABRICKS_GATEWAY_HOSTfrom app.yaml (falls back to direct model serving)uv runTest plan
uv run gunicorn app:appuv.lockresolves all dependencies correctlyThis pull request was AI-assisted by Isaac.