Remove unused Requirements struct (#4054)

This commit is contained in:
Charlie Marsh 2024-06-05 13:14:57 -04:00 committed by GitHub
parent db3c36dbcc
commit 34f847bb68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,6 @@
use std::fmt::{Display, Formatter};
use std::path::PathBuf;
use indexmap::IndexMap;
use url::Url;
use pep440_rs::VersionSpecifiers;
@ -11,13 +10,6 @@ use uv_normalize::{ExtraName, PackageName};
use crate::{ParsedUrl, VerbatimParsedUrl};
/// The requirements of a distribution, an extension over PEP 508's requirements.
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Requirements {
pub dependencies: Vec<Requirement>,
pub optional_dependencies: IndexMap<ExtraName, Vec<Requirement>>,
}
/// A representation of dependency on a package, an extension over a PEP 508's requirement.
///
/// The main change is using [`RequirementSource`] to represent all supported package sources over