Remove platform-tags dependency on puffin-interpreter (#725)

Cuts off a large internal dependency chain from what is otherwise a very
general crate.
This commit is contained in:
Charlie Marsh
2023-12-24 18:06:50 -05:00
committed by GitHub
parent ad34bb02a9
commit 5b2e381f87
11 changed files with 21 additions and 19 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ use petgraph::dot::{Config as DotConfig, Dot};
use pep508_rs::Requirement;
use platform_host::Platform;
use platform_tags::Tags;
use puffin_cache::{Cache, CacheArgs};
use puffin_client::RegistryClientBuilder;
use puffin_dispatch::BuildDispatch;
@@ -63,7 +63,7 @@ pub(crate) async fn resolve_cli(args: ResolveCliArgs) -> Result<()> {
);
// Copied from `BuildDispatch`
let tags = Tags::from_interpreter(venv.interpreter())?;
let tags = venv.interpreter().tags()?;
let resolver = Resolver::new(
Manifest::simple(args.requirements.clone()),
ResolutionOptions::default(),