mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-19 11:15:01 +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
|
@ -12,7 +12,6 @@ use which::{which, which_all};
|
|||
|
||||
use pep440_rs::{Version, VersionSpecifiers};
|
||||
use uv_cache::Cache;
|
||||
use uv_configuration::PreviewMode;
|
||||
use uv_fs::Simplified;
|
||||
use uv_warnings::warn_user_once;
|
||||
|
||||
|
@ -1294,15 +1293,12 @@ impl PythonPreference {
|
|||
}
|
||||
}
|
||||
|
||||
/// Return a default [`PythonPreference`] based on the environment and preview mode.
|
||||
pub fn default_from(preview: PreviewMode) -> Self {
|
||||
/// Return the default [`PythonPreference`], respecting the `UV_TEST_PYTHON_PATH` variable.
|
||||
pub fn default_from_env() -> Self {
|
||||
if env::var_os("UV_TEST_PYTHON_PATH").is_some() {
|
||||
debug!("Only considering system interpreters due to `UV_TEST_PYTHON_PATH`");
|
||||
Self::OnlySystem
|
||||
} else if preview.is_enabled() {
|
||||
Self::default()
|
||||
} else {
|
||||
Self::OnlySystem
|
||||
Self::default()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue