chore(deps): update rust crate pep440_rs to 0.5.0 (#10703)

This commit is contained in:
renovate[bot] 2024-04-01 16:02:18 +00:00 committed by GitHub
parent 2740fab7ad
commit a0e1544848
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 24 additions and 6 deletions

26
Cargo.lock generated
View File

@ -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"

View File

@ -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" }

View File

@ -539,7 +539,7 @@ impl SerializationFormat {
pub struct RequiredVersion(VersionSpecifiers);
impl TryFrom<String> for RequiredVersion {
type Error = pep440_rs::Pep440Error;
type Error = pep440_rs::VersionSpecifiersParseError;
fn try_from(value: String) -> Result<Self, Self::Error> {
// Treat `0.3.1` as `==0.3.1`, for backwards compatibility.