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:
Zanie Blue 2024-06-07 15:20:28 -04:00 committed by GitHub
parent 325982c418
commit 53035d65a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 777 additions and 746 deletions

View file

@ -17,7 +17,7 @@ pub enum Error {
#[error("Failed to determine Python interpreter to use")]
Discovery(#[from] uv_toolchain::DiscoveryError),
#[error("Failed to determine Python interpreter to use")]
InterpreterNotFound(#[from] uv_toolchain::InterpreterNotFound),
InterpreterNotFound(#[from] uv_toolchain::ToolchainNotFound),
#[error(transparent)]
Platform(#[from] PlatformError),
#[error("Could not find a suitable Python executable for the virtual environment based on the interpreter: {0}")]