mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-21 07:42:05 +00:00
parent
f63776b894
commit
82ff136a74
5 changed files with 135 additions and 37 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue