mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +00:00
Refactor uv-toolchain
types (#4121)
Extends #4120 Part of #2607 There should be no behavior changes here. Restructures the discovery API to be focused on a toolchain first perspective in preparation for exposing a `find_or_fetch` method for toolchains in https://github.com/astral-sh/uv/pull/4138.
This commit is contained in:
parent
325982c418
commit
53035d65a1
23 changed files with 777 additions and 746 deletions
|
@ -15,7 +15,7 @@ fn resolve_warm_jupyter(c: &mut Criterion<WallTime>) {
|
|||
.unwrap();
|
||||
|
||||
let cache = &Cache::from_path("../../.cache").init().unwrap();
|
||||
let venv = PythonEnvironment::from_virtualenv(cache).unwrap();
|
||||
let venv = PythonEnvironment::from_root("../../.venv", cache).unwrap();
|
||||
let client = &RegistryClientBuilder::new(cache.clone()).build();
|
||||
let manifest = &Manifest::simple(vec![Requirement::from(
|
||||
pep508_rs::Requirement::from_str("jupyter").unwrap(),
|
||||
|
@ -44,7 +44,7 @@ fn resolve_warm_airflow(c: &mut Criterion<WallTime>) {
|
|||
.unwrap();
|
||||
|
||||
let cache = &Cache::from_path("../../.cache").init().unwrap();
|
||||
let venv = PythonEnvironment::from_virtualenv(cache).unwrap();
|
||||
let venv = PythonEnvironment::from_root("../../.venv", cache).unwrap();
|
||||
let client = &RegistryClientBuilder::new(cache.clone()).build();
|
||||
let manifest = &Manifest::simple(vec![
|
||||
Requirement::from(pep508_rs::Requirement::from_str("apache-airflow[all]").unwrap()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue