mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Rename Distribution
to Dist
in all structs and traits (#384)
We tend to avoid abbreviations, but this one is just so long and absolutely ubiquitous.
This commit is contained in:
parent
5cef40d87a
commit
6a15950cb5
42 changed files with 471 additions and 548 deletions
|
@ -90,7 +90,7 @@ pub fn find_dist_info<'a, T: Copy>(
|
|||
let (dist_info_dir, file) = path.split_once('/')?;
|
||||
let dir_stem = dist_info_dir.strip_suffix(".dist-info")?;
|
||||
let (name, version) = dir_stem.rsplit_once('-')?;
|
||||
if PackageName::from_str(name).ok()? == filename.distribution
|
||||
if PackageName::from_str(name).ok()? == filename.name
|
||||
&& Version::from_str(version).ok()? == filename.version
|
||||
&& file == "METADATA"
|
||||
{
|
||||
|
|
|
@ -904,7 +904,7 @@ pub fn install_wheel(
|
|||
_extras: &[String],
|
||||
sys_executable: impl AsRef<Path>,
|
||||
) -> Result<String, Error> {
|
||||
let name = &filename.distribution;
|
||||
let name = &filename.name;
|
||||
let _my_span = span!(Level::DEBUG, "install_wheel", name = name.as_ref());
|
||||
|
||||
let base_location = location.venv_root();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue