chore: migrate Python deps from requirements-lock.txt to uv lock#10
Open
CameronBrooks11 wants to merge 1 commit into
Open
chore: migrate Python deps from requirements-lock.txt to uv lock#10CameronBrooks11 wants to merge 1 commit into
CameronBrooks11 wants to merge 1 commit into
Conversation
Replace the manual pip freeze workflow with uv's native lock file: - Add [project] + [project.optional-dependencies] dev to pyproject.toml - Generate uv.lock (resolver-guaranteed consistency) - Update all CI workflows to use astral-sh/setup-uv + uv sync --locked - Remove requirements.txt and requirements-lock.txt - Update renovate.json: pep621 manager, lockFileMaintenance, ignore legacy files Renovate now manages deps via the pep621 manager and will run lockFileMaintenance weekly to keep uv.lock current.
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
Replaces the manual
pip freeze > requirements-lock.txtworkflow with uv's native lock file (uv.lock).Changes
[project]section with[project.optional-dependencies] devdeclaring all Python deps (previously inrequirements.txt)uv lock— resolver-guaranteed consistent resolutionpip install -r requirements-lock.txttoastral-sh/setup-uv+uv sync --locked --extra devrequirements.txt,requirements-lock.txt, lockfile validation stepspep621manager, enabledlockFileMaintenance(weekly), addedminimumReleaseAgeWhy
The old pattern had no automated way to keep the lock file in sync with resolver guarantees. With
uv lock:pep621manager natively understandsuv.locklockFileMaintenanceregenerates the full lock weeklyanolis-workbenchLocal dev