mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00

## Summary Packages that provide scripts that _aren't_ Python entrypoints need to respected in `uv tool install`. For example, Ruff ships a script in `ruff-0.5.0.data/scripts`. Unfortunately, the `.data` directory doesn't exist in the virtual environment at all (it's removed, per the spec, after install). So this PR changes the entry point detection to look at the `RECORD` file, which is the only evidence that the scripts were installed. Closes https://github.com/astral-sh/uv/issues/4691. ## Test Plan `cargo run uv tool install ruff` (snapshot tests to-come)
35 lines
943 B
TOML
35 lines
943 B
TOML
[package]
|
|
name = "uv-tool"
|
|
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]
|
|
install-wheel-rs = { workspace = true }
|
|
pep440_rs = { workspace = true }
|
|
pep508_rs = { workspace = true }
|
|
pypi-types = { workspace = true }
|
|
uv-cache = { workspace = true }
|
|
uv-fs = { workspace = true }
|
|
uv-state = { workspace = true }
|
|
uv-toolchain = { workspace = true }
|
|
uv-virtualenv = { workspace = true }
|
|
uv-warnings = { workspace = true }
|
|
|
|
dirs-sys = { workspace = true }
|
|
fs-err = { workspace = true }
|
|
path-slash = { workspace = true }
|
|
pathdiff = { workspace = true }
|
|
serde = { workspace = true }
|
|
thiserror = { workspace = true }
|
|
toml = { workspace = true }
|
|
toml_edit = { workspace = true }
|
|
tracing = { workspace = true }
|