Skip to content

Tracking issue: Stabilize uv.lock format #4893

@konstin

Description

@konstin

This is a tracking issue for making breaking changes the schema and contents of uv.lock before the release.

  • Remove extra duplication from lockfile #4888
  • Sort dependencies before sdist in lockfile #4889
  • Move the resolution options (resolution lowest, exclude newer, prerelease mode) under a newer header resolver-options to group them and make them distinct from the rest of the top level entries.
  • Rename distribution to package or packages. This is not a distribution entry, the distributions are the source dists and wheels. package is also a more familiar name and closer to PEP 751, packages would be the same as PEP 751.
  • If only one index is used, move the source = { registry = "https://pypi.org/simple" } to the top of the file and out of the [[distribution]]. This shrinks the file a bit and removed the duplication.
  • Try to make the lockfile more concise. Could we e.g. remove redundant source line? The lockfile is long and should try to get it as small as possible without sacrificing readability and diffability.

Metadata

Metadata

Assignees

Labels

previewExperimental behavior

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions