Skip to content

Commit

Permalink
Rename uv-interpreter crate to uv-toolchain
Browse files Browse the repository at this point in the history
# Conflicts:
#	crates/uv-resolver/Cargo.toml
#	crates/uv-resolver/tests/resolver.rs
#	crates/uv/src/commands/pip/operations.rs
#	crates/uv/src/commands/venv.rs

# Conflicts:
#	crates/uv-toolchain/src/prefix.rs
#	crates/uv/src/commands/pip/compile.rs
#	crates/uv/src/commands/pip/install.rs
#	crates/uv/src/commands/pip/sync.rs
#	crates/uv/src/commands/pip/uninstall.rs
#	crates/uv/src/commands/project/lock.rs
#	crates/uv/src/settings.rs
  • Loading branch information
zanieb committed Jun 7, 2024
1 parent d3651c1 commit 1b20055
Show file tree
Hide file tree
Showing 78 changed files with 119 additions and 117 deletions.
109 changes: 55 additions & 54 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ uv-extract = { path = "crates/uv-extract" }
uv-fs = { path = "crates/uv-fs" }
uv-git = { path = "crates/uv-git" }
uv-installer = { path = "crates/uv-installer" }
uv-interpreter = { path = "crates/uv-interpreter" }
uv-toolchain = { path = "crates/uv-toolchain" }
uv-normalize = { path = "crates/uv-normalize" }
uv-requirements = { path = "crates/uv-requirements" }
uv-resolver = { path = "crates/uv-resolver" }
Expand Down
2 changes: 1 addition & 1 deletion crates/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Functionality for interacting with Git repositories.

Functionality for installing Python packages into a virtual environment.

## [uv-interpreter](./uv-interpreter)
## [uv-toolchain](./uv-toolchain)

Functionality for detecting and leveraging the current Python interpreter.

Expand Down
2 changes: 1 addition & 1 deletion crates/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ uv-configuration = { workspace = true }
uv-dispatch = { workspace = true }
uv-distribution = { workspace = true }
uv-git = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-resolver = { workspace = true }
uv-types = { workspace = true }

Expand Down
4 changes: 2 additions & 2 deletions crates/bench/benches/uv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use bench::criterion::{criterion_group, criterion_main, measurement::WallTime, C
use pypi_types::Requirement;
use uv_cache::Cache;
use uv_client::RegistryClientBuilder;
use uv_interpreter::PythonEnvironment;
use uv_resolver::Manifest;
use uv_toolchain::PythonEnvironment;

fn resolve_warm_jupyter(c: &mut Criterion<WallTime>) {
let runtime = &tokio::runtime::Builder::new_current_thread()
Expand Down Expand Up @@ -86,10 +86,10 @@ mod resolver {
use uv_dispatch::BuildDispatch;
use uv_distribution::DistributionDatabase;
use uv_git::GitResolver;
use uv_interpreter::PythonEnvironment;
use uv_resolver::{
FlatIndex, InMemoryIndex, Manifest, Options, PythonRequirement, ResolutionGraph, Resolver,
};
use uv_toolchain::PythonEnvironment;
use uv_types::{BuildIsolation, EmptyInstalledPackages, HashStrategy, InFlight};

static MARKERS: Lazy<MarkerEnvironment> = Lazy::new(|| {
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-build/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ pep440_rs = { workspace = true }
pep508_rs = { workspace = true }
pypi-types = { workspace = true }
uv-fs = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-types = { workspace = true }
uv-configuration = { workspace = true }
uv-virtualenv = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ use pep508_rs::PackageName;
use pypi_types::{Requirement, VerbatimParsedUrl};
use uv_configuration::{BuildKind, ConfigSettings, SetupPyStrategy};
use uv_fs::{PythonExt, Simplified};
use uv_interpreter::{Interpreter, PythonEnvironment};
use uv_toolchain::{Interpreter, PythonEnvironment};
use uv_types::{BuildContext, BuildIsolation, SourceBuildTrait};

/// e.g. `pygraphviz/graphviz_wrap.c:3020:10: fatal error: graphviz/cgraph.h: No such file or directory`
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-dev/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ uv-distribution = { workspace = true, features = ["schemars"] }
uv-fs = { workspace = true }
uv-git = { workspace = true }
uv-installer = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-resolver = { workspace = true }
uv-types = { workspace = true }
uv-workspace = { workspace = true, features = ["schemars"] }
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-dev/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ use uv_configuration::{
};
use uv_dispatch::BuildDispatch;
use uv_git::GitResolver;
use uv_interpreter::PythonEnvironment;
use uv_resolver::{FlatIndex, InMemoryIndex};
use uv_toolchain::PythonEnvironment;
use uv_types::{BuildContext, BuildIsolation, InFlight};

#[derive(Parser)]
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-dev/src/compile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::path::PathBuf;
use clap::Parser;
use tracing::info;
use uv_cache::{Cache, CacheArgs};
use uv_interpreter::PythonEnvironment;
use uv_toolchain::PythonEnvironment;

#[derive(Parser)]
pub(crate) struct CompileArgs {
Expand Down
4 changes: 2 additions & 2 deletions crates/uv-dev/src/fetch_python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ use tokio::time::Instant;
use tracing::{info, info_span, Instrument};

use uv_fs::Simplified;
use uv_interpreter::downloads::{DownloadResult, Error, PythonDownload, PythonDownloadRequest};
use uv_interpreter::managed::InstalledToolchains;
use uv_toolchain::downloads::{DownloadResult, Error, PythonDownload, PythonDownloadRequest};
use uv_toolchain::managed::InstalledToolchains;

#[derive(Parser, Debug)]
pub(crate) struct FetchPythonArgs {
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-dispatch/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ uv-configuration = { workspace = true }
uv-distribution = { workspace = true }
uv-git = { workspace = true }
uv-installer = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-resolver = { workspace = true }
uv-types = { workspace = true }

Expand Down
2 changes: 1 addition & 1 deletion crates/uv-dispatch/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ use uv_configuration::{Concurrency, PreviewMode};
use uv_distribution::DistributionDatabase;
use uv_git::GitResolver;
use uv_installer::{Downloader, Installer, Plan, Planner, SitePackages};
use uv_interpreter::{Interpreter, PythonEnvironment};
use uv_resolver::{FlatIndex, InMemoryIndex, Manifest, Options, PythonRequirement, Resolver};
use uv_toolchain::{Interpreter, PythonEnvironment};
use uv_types::{BuildContext, BuildIsolation, EmptyInstalledPackages, HashStrategy, InFlight};

/// The main implementation of [`BuildContext`], used by the CLI, see [`BuildContext`]
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-installer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ uv-distribution = { workspace = true }
uv-extract = { workspace = true }
uv-fs = { workspace = true }
uv-git = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-normalize = { workspace = true }
uv-types = { workspace = true }
uv-warnings = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-installer/src/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use rayon::iter::{IntoParallelRefIterator, ParallelIterator};
use tracing::instrument;

use distribution_types::CachedDist;
use uv_interpreter::PythonEnvironment;
use uv_toolchain::PythonEnvironment;

pub struct Installer<'a> {
venv: &'a PythonEnvironment,
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-installer/src/plan.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use uv_distribution::{
};
use uv_fs::Simplified;
use uv_git::GitUrl;
use uv_interpreter::PythonEnvironment;
use uv_toolchain::PythonEnvironment;
use uv_types::HashStrategy;

use crate::satisfies::RequirementSatisfaction;
Expand Down
2 changes: 1 addition & 1 deletion crates/uv-installer/src/site_packages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use distribution_types::{
};
use pep440_rs::{Version, VersionSpecifiers};
use pypi_types::{Requirement, VerbatimParsedUrl};
use uv_interpreter::PythonEnvironment;
use uv_normalize::PackageName;
use uv_toolchain::PythonEnvironment;
use uv_types::InstalledPackagesProvider;

use crate::satisfies::RequirementSatisfaction;
Expand Down
3 changes: 2 additions & 1 deletion crates/uv-resolver/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ uv-client = { workspace = true }
uv-configuration = { workspace = true }
uv-distribution = { workspace = true }
uv-git = { workspace = true }
uv-interpreter = { workspace = true }
uv-toolchain = { workspace = true }
uv-normalize = { workspace = true }
uv-types = { workspace = true }
uv-warnings = { workspace = true }
Expand Down Expand Up @@ -58,5 +58,6 @@ tracing = { workspace = true }
url = { workspace = true }

[dev-dependencies]
once_cell = { version = "1.19.0" }
insta = { version = "1.36.1" }
toml = { workspace = true }
2 changes: 1 addition & 1 deletion crates/uv-resolver/src/python_requirement.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use pep440_rs::VersionSpecifiers;
use pep508_rs::StringVersion;
use uv_interpreter::{Interpreter, PythonVersion};
use uv_toolchain::{Interpreter, PythonVersion};

use crate::RequiresPython;

Expand Down
Loading

0 comments on commit 1b20055

Please sign in to comment.