fix: strip local uv path sources before installing dependencies#24
Merged
fix: strip local uv path sources before installing dependencies#24
Conversation
uv sync fails on Fly.io workers because pyproject.toml contains [tool.uv.sources] with local path references (e.g., path = "../openadapt-ml") that don't exist in the container. The packages are still listed as normal dependencies and resolve from PyPI without the source override. Strips path sources from pyproject.toml and deletes stale uv.lock before running uv sync. Preserves git and URL sources. 5 new tests. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.
Root Cause
Worker fails in 7 seconds because
pyproject.tomlhas[tool.uv.sources]with local paths (e.g.,path = "../openadapt-ml") that don't exist on Fly.io. The packages resolve from PyPI as normal deps without the source override.Fix
Strip
path = "..."entries from[tool.uv.sources]and delete staleuv.lockbeforeuv sync. Git/URL sources preserved. 5 new tests.🤖 Generated with Claude Code