mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Remove preview labeling for uv 0.3.0 (#6166)
- Removes "experimental" labels from command documentation - Removes preview warnings - Removes `PreviewMode` from most structs and methods — we could keep it around but I figure we can propagate it again easily where needed in the future - Enables preview behavior by default everywhere, e.g., `uv venv` will download Python versions
This commit is contained in:
parent
33480d61eb
commit
04e3e7ce65
72 changed files with 380 additions and 1288 deletions
|
@ -16,11 +16,11 @@ use pypi_types::Requirement;
|
|||
use uv_build::{SourceBuild, SourceBuildContext};
|
||||
use uv_cache::Cache;
|
||||
use uv_client::RegistryClient;
|
||||
use uv_configuration::Concurrency;
|
||||
use uv_configuration::{
|
||||
BuildKind, BuildOptions, ConfigSettings, Constraints, IndexStrategy, Reinstall,
|
||||
SetupPyStrategy, SourceStrategy,
|
||||
};
|
||||
use uv_configuration::{Concurrency, PreviewMode};
|
||||
use uv_distribution::DistributionDatabase;
|
||||
use uv_git::GitResolver;
|
||||
use uv_installer::{Installer, Plan, Planner, Preparer, SitePackages};
|
||||
|
@ -54,7 +54,6 @@ pub struct BuildDispatch<'a> {
|
|||
build_extra_env_vars: FxHashMap<OsString, OsString>,
|
||||
sources: SourceStrategy,
|
||||
concurrency: Concurrency,
|
||||
preview_mode: PreviewMode,
|
||||
}
|
||||
|
||||
impl<'a> BuildDispatch<'a> {
|
||||
|
@ -77,7 +76,6 @@ impl<'a> BuildDispatch<'a> {
|
|||
exclude_newer: Option<ExcludeNewer>,
|
||||
sources: SourceStrategy,
|
||||
concurrency: Concurrency,
|
||||
preview_mode: PreviewMode,
|
||||
) -> Self {
|
||||
Self {
|
||||
client,
|
||||
|
@ -100,7 +98,6 @@ impl<'a> BuildDispatch<'a> {
|
|||
build_extra_env_vars: FxHashMap::default(),
|
||||
sources,
|
||||
concurrency,
|
||||
preview_mode,
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -162,12 +159,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
&HashStrategy::None,
|
||||
self,
|
||||
EmptyInstalledPackages,
|
||||
DistributionDatabase::new(
|
||||
self.client,
|
||||
self,
|
||||
self.concurrency.downloads,
|
||||
self.preview_mode,
|
||||
),
|
||||
DistributionDatabase::new(self.client, self, self.concurrency.downloads),
|
||||
)?;
|
||||
let graph = resolver.resolve().await.with_context(|| {
|
||||
format!(
|
||||
|
@ -250,12 +242,7 @@ impl<'a> BuildContext for BuildDispatch<'a> {
|
|||
tags,
|
||||
&HashStrategy::None,
|
||||
self.build_options,
|
||||
DistributionDatabase::new(
|
||||
self.client,
|
||||
self,
|
||||
self.concurrency.downloads,
|
||||
self.preview_mode,
|
||||
),
|
||||
DistributionDatabase::new(self.client, self, self.concurrency.downloads),
|
||||
);
|
||||
|
||||
debug!(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue