Add find links supports to pip-sync (#914)

Closes #877
This commit is contained in:
konsti 2024-01-15 04:04:55 +01:00 committed by GitHub
parent f63776b894
commit 82ff136a74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 135 additions and 37 deletions

View file

@ -160,6 +160,16 @@ impl PrioritizedDistribution {
}
}
/// Return the source distribution, if any.
pub fn source(&self) -> Option<&DistRequiresPython> {
self.source.as_ref()
}
/// Return the compatible built distribution, if any.
pub fn compatible_wheel(&self) -> Option<&(DistRequiresPython, TagPriority)> {
self.compatible_wheel.as_ref()
}
/// Return the hashes for each distribution.
pub fn hashes(&self) -> &[Hashes] {
&self.hashes