From a0e15448488badd81b0924653c180cd18029b2c2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 1 Apr 2024 16:02:18 +0000 Subject: [PATCH] chore(deps): update rust crate pep440_rs to 0.5.0 (#10703) --- Cargo.lock | 26 ++++++++++++++++++++---- Cargo.toml | 2 +- crates/ruff_linter/src/settings/types.rs | 2 +- 3 files changed, 24 insertions(+), 6 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a937f40ce1..79c6ceab3e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1642,6 +1642,18 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "pep440_rs" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "15efd4d885c29126cc93e12af3087896e2518bd5ca0fb328c19c4ef9cecfa8be" +dependencies = [ + "once_cell", + "serde", + "unicode-width", + "unscanny", +] + [[package]] name = "pep508_rs" version = "0.3.0" @@ -1649,7 +1661,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "910c513bea0f4f833122321c0f20e8c704e01de98692f6989c2ec21f43d88b1e" dependencies = [ "once_cell", - "pep440_rs", + "pep440_rs 0.4.0", "regex", "serde", "thiserror", @@ -1782,7 +1794,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95c3dd745f99aa3c554b7bb00859f7d18c2f1d6afd749ccc86d60b61e702abd9" dependencies = [ "indexmap", - "pep440_rs", + "pep440_rs 0.4.0", "pep508_rs", "serde", "toml", @@ -2159,7 +2171,7 @@ dependencies = [ "once_cell", "path-absolutize", "pathdiff", - "pep440_rs", + "pep440_rs 0.5.0", "pyproject-toml", "quick-junit", "regex", @@ -2481,7 +2493,7 @@ dependencies = [ "itertools 0.12.1", "log", "path-absolutize", - "pep440_rs", + "pep440_rs 0.5.0", "regex", "ruff_cache", "ruff_formatter", @@ -3260,6 +3272,12 @@ dependencies = [ "rand", ] +[[package]] +name = "unscanny" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9df2af067a7953e9c3831320f35c1cc0600c30d44d9f7a12b01db1cd88d6b47" + [[package]] name = "untrusted" version = "0.9.0" diff --git a/Cargo.toml b/Cargo.toml index ea09970cc5..7972eec6f0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -67,7 +67,7 @@ num_cpus = { version = "1.16.0" } once_cell = { version = "1.19.0" } path-absolutize = { version = "3.1.1" } pathdiff = { version = "0.2.1" } -pep440_rs = { version = "0.4.0", features = ["serde"] } +pep440_rs = { version = "0.5.0", features = ["serde"] } pretty_assertions = "1.3.0" proc-macro2 = { version = "1.0.79" } pyproject-toml = { version = "0.9.0" } diff --git a/crates/ruff_linter/src/settings/types.rs b/crates/ruff_linter/src/settings/types.rs index d89c3844c2..4e4c8fbf97 100644 --- a/crates/ruff_linter/src/settings/types.rs +++ b/crates/ruff_linter/src/settings/types.rs @@ -539,7 +539,7 @@ impl SerializationFormat { pub struct RequiredVersion(VersionSpecifiers); impl TryFrom for RequiredVersion { - type Error = pep440_rs::Pep440Error; + type Error = pep440_rs::VersionSpecifiersParseError; fn try_from(value: String) -> Result { // Treat `0.3.1` as `==0.3.1`, for backwards compatibility.