Repository navigation
Conversation
| #[arg(long, conflicts_with_all = [ | ||
| "batch", "script", "all_packages", "extra", "all_extras", "no_extra", "no_all_extras", | ||
| "only_group", "only_dev", | ||
| ])] |
There was a problem hiding this comment.
Ideally this would have been the default, but there's not default extras in PEP 751 (cause there's no way to deselect extras in standards either), so we keep this a separate path.
Name to be bikeshed, I don't love this one. "universal" would be great but that's already taken.
uv test inventory changesThis PR changes the tests when compared with the
|
741b5ae to
2d64321
Compare
2d64321 to
6181d6a
Compare
Merging this PR will not alter performance1 warning
Comparing Footnotes
|
4759b1c to
84ea9ce
Compare
84ea9ce to
18a52f0
Compare
18a52f0 to
1474401
Compare
Seed export reachability with PEP 751 selection markers so transitive dependencies inherit the conditions under which they are needed. Use a separate synthetic group for the default selection, leaving every project group independently selectable. Reject unsupported inputs in the library before returning a lockfile. Existing callers still select extras and groups at export time.
Reject incompatible formats before locking. Verify that a lock generated from local wheels can be exported once and synced with different selections, even if a project group uses the synthetic default name.
1474401 to
ef2411f
Compare
PEP 751 allows extras and dependency groups to be selected when installing a lockfile. Existing pylock exports fix those selections at export time.
Add
uv export --format pylock.toml --multi-useto retain selectable extras and dependency groups in the exported file, including their transitive dependencies. The project's selected dependency groups are included by default and can be adjusted with group flags. PEP 751 has nodefault-extrasfield, so extras must be selected at installation time;--multi-usecannot be combined with--extraor--all-extras. The existing--all-extrasoption keeps its single-use export behavior.Multi-use exports are limited to one project and reject declared conflicts, negative extra markers, group-specific Python requirements, and workspace-root dependencies or groups. With a hand-written frozen lock, a literal extra name that matches uv's internal name for a conflict can cause a dependency to be omitted. Re-locking a project with equivalent wheel metadata did not reproduce the omission.