Rename uv-interpreter crate to uv-toolchain (#4120)

In preparation for managed toolchains #2607, just renames the crate to
something broader.

See #4121 and https://github.com/astral-sh/uv/pull/4138 to see the final
intent.
This commit is contained in:
Zanie Blue 2024-06-07 14:59:14 -04:00 committed by GitHub
parent 2803a8c475
commit 325982c418
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
78 changed files with 117 additions and 117 deletions

View file

@ -20,7 +20,7 @@ workspace = true
platform-tags = { workspace = true }
pypi-types = { workspace = true }
uv-fs = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-version = { workspace = true }
fs-err = { workspace = true }

View file

@ -13,7 +13,7 @@ use tracing::info;
use pypi_types::Scheme;
use uv_fs::{cachedir, Simplified};
use uv_interpreter::{Interpreter, VirtualEnvironment};
use uv_toolchain::{Interpreter, VirtualEnvironment};
use uv_version::version;
use crate::{Error, Prompt};

View file

@ -4,7 +4,7 @@ use std::path::Path;
use thiserror::Error;
use platform_tags::PlatformError;
use uv_interpreter::{Interpreter, PythonEnvironment};
use uv_toolchain::{Interpreter, PythonEnvironment};
pub use crate::bare::create_bare_venv;
@ -15,9 +15,9 @@ pub enum Error {
#[error(transparent)]
IO(#[from] io::Error),
#[error("Failed to determine Python interpreter to use")]
Discovery(#[from] uv_interpreter::DiscoveryError),
Discovery(#[from] uv_toolchain::DiscoveryError),
#[error("Failed to determine Python interpreter to use")]
InterpreterNotFound(#[from] uv_interpreter::InterpreterNotFound),
InterpreterNotFound(#[from] uv_toolchain::InterpreterNotFound),
#[error(transparent)]
Platform(#[from] PlatformError),
#[error("Could not find a suitable Python executable for the virtual environment based on the interpreter: {0}")]