Rename PartitionedRequirements to InstallPlan (#340)

@konstin named this file at some point and I like it, it feels
appropriate for the struct itself too.
This commit is contained in:
Charlie Marsh 2023-11-06 09:44:35 -08:00 committed by GitHub
parent d9bcfafa16
commit 1f447892f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -14,7 +14,7 @@ use platform_tags::Tags;
use puffin_client::RegistryClientBuilder;
use puffin_dispatch::BuildDispatch;
use puffin_distribution::Distribution;
use puffin_installer::{Builder, PartitionedRequirements};
use puffin_installer::{Builder, InstallPlan};
use puffin_interpreter::Virtualenv;
use crate::commands::reporters::{
@ -69,11 +69,11 @@ pub(crate) async fn sync_requirements(
// Partition into those that should be linked from the cache (`local`), those that need to be
// downloaded (`remote`), and those that should be removed (`extraneous`).
let PartitionedRequirements {
let InstallPlan {
local,
remote,
extraneous,
} = PartitionedRequirements::try_from_requirements(requirements, cache, &venv)?;
} = InstallPlan::try_from_requirements(requirements, cache, &venv)?;
// Nothing to do.
if remote.is_empty() && local.is_empty() && extraneous.is_empty() {