build: migrate from pip to uv for dependency management#13
Merged
Conversation
## What Replace pip-based dependency management with uv across the entire project. pyproject.toml and uv.lock replace requirements.txt and requirements-test.txt, all CI workflows use astral-sh/setup-uv, Makefile commands prefixed with uv run, and Dockerfile uses uv for production installs. ## Why uv provides significantly faster dependency resolution and installation, deterministic lockfile-based builds, and a single pyproject.toml as the source of truth for all dependencies. This aligns with the approach already adopted by the issue-metrics and other repos in the org. ## Notes - Docker image copies uv binary from ghcr.io/astral-sh/uv:0.10.9 via multi-stage COPY - Dockerfile ENTRYPOINT changed from `python3 -u` to `uv run` — verify this works correctly in the GitHub Action runtime - New update-uv-lock.yml workflow uses octo-sts for Dependabot PR lockfile sync — requires the chainguard STS policy to be registered in the org - PYTHONUNBUFFERED=1 env var replaces the `-u` flag previously passed to python3 - Only direct dependencies listed in pyproject.toml; transitive deps handled by uv.lock Signed-off-by: jmeridth <jmeridth@gmail.com>
Contributor
|
Looks great! Couple things to look at
|
Collaborator
Author
|
- update README to use uv for local development - update setup-uv workflows - pin version to match Dockerfile - cache Signed-off-by: jmeridth <jmeridth@gmail.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.
Pull Request
Proposed Changes
What
Replace pip-based dependency management with uv across the entire project. pyproject.toml and uv.lock replace requirements.txt and requirements-test.txt, all CI workflows use astral-sh/setup-uv, Makefile commands prefixed with uv run, and Dockerfile uses uv for production installs.
Why
uv provides significantly faster dependency resolution and installation, deterministic lockfile-based builds, and a single pyproject.toml as the source of truth for all dependencies. This aligns with the approach already adopted by the issue-metrics and other repos in the org.
Notes
python3 -utouv run— verify this works correctly in the GitHub Action runtime-uflag previously passed to python3Readiness Checklist
Author/Contributor
make lintand fix any issues that you have introducedmake testand ensure you have test coverage for the lines you are introducing