From 4b69ad428125208aedfd27630f559b24c65e7e5b Mon Sep 17 00:00:00 2001 From: Charlie Marsh Date: Wed, 27 Mar 2024 17:50:55 -0400 Subject: [PATCH] Remove some unused dependencies (#2698) --- Cargo.lock | 18 ------------------ Cargo.toml | 1 - crates/uv-dev/Cargo.toml | 3 --- crates/uv-installer/Cargo.toml | 1 - crates/uv-installer/src/editable.rs | 7 ++++++- crates/uv-requirements/Cargo.toml | 1 - 6 files changed, 6 insertions(+), 25 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7bb4c2782..8a607d8a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2754,19 +2754,6 @@ dependencies = [ "uv-normalize", ] -[[package]] -name = "pyproject-toml" -version = "0.10.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b80f889b6d413c3f8963a2c7db03f95dd6e1d85e1074137cb2013ea2faa8898" -dependencies = [ - "indexmap", - "pep440_rs", - "pep508_rs", - "serde", - "toml", -] - [[package]] name = "quote" version = "1.0.35" @@ -4495,14 +4482,12 @@ dependencies = [ "fs-err", "futures", "indicatif", - "install-wheel-rs", "itertools 0.12.1", "mimalloc", "owo-colors", "pep440_rs", "pep508_rs", "petgraph", - "platform-tags", "poloto", "resvg", "rustc-hash", @@ -4519,7 +4504,6 @@ dependencies = [ "uv-cache", "uv-client", "uv-dispatch", - "uv-distribution", "uv-installer", "uv-interpreter", "uv-normalize", @@ -4658,7 +4642,6 @@ dependencies = [ "pep508_rs", "platform-tags", "pypi-types", - "pyproject-toml", "rayon", "requirements-txt", "rustc-hash", @@ -4736,7 +4719,6 @@ dependencies = [ "indexmap", "pep508_rs", "pypi-types", - "pyproject-toml", "requirements-txt", "rustc-hash", "serde", diff --git a/Cargo.toml b/Cargo.toml index a14ae840a..7d0d7e7ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -102,7 +102,6 @@ platform-info = { version = "2.0.2" } pubgrub = { git = "https://github.com/astral-sh/pubgrub", rev = "c26e485213e39582c6f2e4d45c0328422670e7a7" } pyo3 = { version = "0.20.3" } pyo3-log = { version = "0.9.0" } -pyproject-toml = { version = "0.10.0" } rand = { version = "0.8.5" } rayon = { version = "1.8.0" } reflink-copy = { version = "0.1.15" } diff --git a/crates/uv-dev/Cargo.toml b/crates/uv-dev/Cargo.toml index 0759a5f49..7ad14c089 100644 --- a/crates/uv-dev/Cargo.toml +++ b/crates/uv-dev/Cargo.toml @@ -18,15 +18,12 @@ workspace = true [dependencies] distribution-filename = { workspace = true } distribution-types = { workspace = true } -install-wheel-rs = { workspace = true } pep440_rs = { workspace = true } pep508_rs = { workspace = true } -platform-tags = { workspace = true } uv-build = { workspace = true } uv-cache = { workspace = true, features = ["clap"] } uv-client = { workspace = true } uv-dispatch = { workspace = true } -uv-distribution = { workspace = true } uv-installer = { workspace = true } uv-interpreter = { workspace = true } uv-normalize = { workspace = true } diff --git a/crates/uv-installer/Cargo.toml b/crates/uv-installer/Cargo.toml index 97ca51abc..efb269cc2 100644 --- a/crates/uv-installer/Cargo.toml +++ b/crates/uv-installer/Cargo.toml @@ -34,7 +34,6 @@ anyhow = { workspace = true } async-channel = { workspace = true } fs-err = { workspace = true } futures = { workspace = true } -pyproject-toml = { workspace = true } rayon = { workspace = true } rustc-hash = { workspace = true } serde = { workspace = true } diff --git a/crates/uv-installer/src/editable.rs b/crates/uv-installer/src/editable.rs index d9160464f..4aef8940e 100644 --- a/crates/uv-installer/src/editable.rs +++ b/crates/uv-installer/src/editable.rs @@ -1,4 +1,3 @@ -use pyproject_toml::Project; use serde::Deserialize; use distribution_types::{ @@ -97,6 +96,12 @@ struct PyProjectToml { tool: Option, } +#[derive(Deserialize, Debug)] +#[serde(rename_all = "kebab-case")] +struct Project { + dynamic: Option>, +} + #[derive(Deserialize, Debug)] struct Tool { poetry: Option, diff --git a/crates/uv-requirements/Cargo.toml b/crates/uv-requirements/Cargo.toml index 4a080a958..c2befe770 100644 --- a/crates/uv-requirements/Cargo.toml +++ b/crates/uv-requirements/Cargo.toml @@ -31,7 +31,6 @@ ctrlc = { workspace = true } fs-err = { workspace = true, features = ["tokio"] } futures = { workspace = true } indexmap = { workspace = true } -pyproject-toml = { workspace = true } rustc-hash = { workspace = true } serde = { workspace = true } thiserror = { workspace = true }