mirror of
https://github.com/astral-sh/uv
synced 2026-01-25 23:40:11 -05:00
## Summary This PR changes the lock-file format to use inline tables for wheels and source distributions, which currently use separate tables that make the file harder to follow. ```diff [[distribution]] name = "typing-extensions" version = "4.10.0" source = "registry+https://pypi.org/simple" - [distribution.sdist] - url = "0d26ce356c/typing_extensions-4.10.0.tar.gz" - hash = "sha256:b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb" - size = 77558 - - [[distribution.wheel]] - url = "dc04a3ea60/typing_extensions-4.10.0-py3-none-any.whl" - hash = "sha256:69b1a937c3a517342112fb4c6df7e72fc39a38e7891a5730ed4985b5214b5475" - size = 33926 + sdist = { url = "0d26ce356c/typing_extensions-4.10.0.tar.gz", hash = "sha256:b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb", size = 77558 } + wheel = [{ url = "dc04a3ea60/typing_extensions-4.10.0-py3-none-any.whl", hash = "sha256:69b1a937c3a517342112fb4c6df7e72fc39a38e7891a5730ed4985b5214b5475", size = 33926 }] ``` The downside is that the inline-tables end up quite long and TOML doesn't support line breaks in inline tables, yet. Part of https://github.com/astral-sh/uv/issues/3611.
73 lines
2.0 KiB
TOML
73 lines
2.0 KiB
TOML
[package]
|
|
name = "uv-resolver"
|
|
version = "0.0.1"
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
authors = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
cache-key = { workspace = true }
|
|
distribution-filename = { workspace = true }
|
|
distribution-types = { workspace = true }
|
|
install-wheel-rs = { workspace = true }
|
|
once-map = { workspace = true }
|
|
pep440_rs = { workspace = true }
|
|
pep508_rs = { workspace = true }
|
|
platform-tags = { workspace = true }
|
|
pypi-types = { workspace = true }
|
|
requirements-txt = { workspace = true }
|
|
uv-cache = { workspace = true }
|
|
uv-client = { workspace = true }
|
|
uv-configuration = { workspace = true }
|
|
uv-distribution = { workspace = true }
|
|
uv-git = { workspace = true }
|
|
uv-interpreter = { workspace = true }
|
|
uv-normalize = { workspace = true }
|
|
uv-types = { workspace = true }
|
|
uv-warnings = { workspace = true }
|
|
|
|
anstream = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
chrono = { workspace = true }
|
|
clap = { workspace = true, features = ["derive"], optional = true }
|
|
dashmap = { workspace = true }
|
|
derivative = { workspace = true }
|
|
either = { workspace = true }
|
|
futures = { workspace = true }
|
|
indexmap = { workspace = true }
|
|
itertools = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
owo-colors = { workspace = true }
|
|
petgraph = { workspace = true }
|
|
pubgrub = { workspace = true }
|
|
rkyv = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true }
|
|
textwrap = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
tokio = { workspace = true }
|
|
tokio-stream = { workspace = true }
|
|
toml_edit = { workspace = true }
|
|
tracing = { workspace = true }
|
|
url = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
uv-interpreter = { workspace = true }
|
|
|
|
once_cell = { version = "1.19.0" }
|
|
insta = { version = "1.36.1" }
|
|
toml = { workspace = true }
|
|
|
|
[features]
|
|
default = ["pypi"]
|
|
# Introduces a dependency on PyPI.
|
|
pypi = []
|