Repository navigation
uv: update several dependencies in a single uv lock - #16507
Open
wenceslas-sanchez wants to merge 4 commits into
Open
wenceslas-sanchez wants to merge 4 commits into
wenceslas-sanchez wants to merge 4 commits into
Conversation
This was referenced Oct 8, 2026
This branch has not been deployed
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.
What are you trying to accomplish?
First half of #16390.
LockFileUpdateronly ever looked at the first dependency it was given: it rewrote onepyproject requirement and passed one
--upgrade-packagetouv lock. This lets it take several dependencies andrun a single
uv lockwith one--upgrade-packageper dependency, which is what we need to move packages that pineach other (e.g.
opentelemetry-api/opentelemetry-sdk) together.There's a new
upgrade_package_names:option so a caller can rewrite a requirement without forcing an upgrade ofthat package. The follow-up PR uses it to relax a peer's pin and let uv move it only if it has to.
While here I fixed
replace_depmatching a longer name that starts with the dependency name (boto3vsboto3-stubs), which multi-dependency updates make much easier to hit.Anything you want to highlight for special attention from reviewers?
Apart from the
replace_depfix, there's no behaviour change for single-dependency updates: the command andfingerprint are byte-for-byte the same, and the existing specs cover that.
target_requirementstill only appliesto the first dependency, the others are pinned to their own version. #13892 also touches
run_update_command; happy to rebase on whichever lands first.How will you know you've accomplished your goal?
New specs for the multi-dependency command and fingerprint, extras de-duplication, rewriting several pins,
and the
boto3-stubscase. The full uv suite and rubocop pass locally. Sorbet reports no errors; I ran thebundled
sorbetbinary withsorbet/configdirectly becausebundle exec srbcan't load the root Gemfile inthe uv dev image.
Checklist