Remove unused PEP 621 error (#4057)

This commit is contained in:
Charlie Marsh 2024-06-05 13:45:42 -04:00 committed by GitHub
parent c97427d530
commit a0173760f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,25 +12,10 @@ use std::ops::Deref;
use glob::Pattern;
use pep440_rs::VersionSpecifiers;
use serde::{Deserialize, Serialize};
use thiserror::Error;
use url::Url;
use pep508_rs::Pep508Error;
use pypi_types::VerbatimParsedUrl;
use uv_normalize::{ExtraName, PackageName};
#[derive(Debug, Error)]
pub enum Pep621Error {
#[error(transparent)]
Pep508(#[from] Box<Pep508Error<VerbatimParsedUrl>>),
}
impl From<Pep508Error<VerbatimParsedUrl>> for Pep621Error {
fn from(error: Pep508Error<VerbatimParsedUrl>) -> Self {
Self::Pep508(Box::new(error))
}
}
/// A `pyproject.toml` as specified in PEP 517.
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
#[serde(rename_all = "kebab-case")]