From 63c5e9472665c0e59cdb41b227e8a9dbd964677d Mon Sep 17 00:00:00 2001 From: FishAlchemist <48265002+FishAlchemist@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:38:50 +0800 Subject: [PATCH] Delete the preview default value of python-preference in the document. (#6301) ## Summary I believe the default for the stable ``uv venv`` in [UV v0.3.0](https://github.com/astral-sh/uv/releases/tag/0.3.0) is managed. ## Test Plan Running a document server locally. ![image](https://github.com/user-attachments/assets/0f582f07-1332-424b-bb1b-82b19533e14e) --- crates/uv-settings/src/settings.rs | 2 +- docs/reference/settings.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv-settings/src/settings.rs b/crates/uv-settings/src/settings.rs index 510613a55..714402554 100644 --- a/crates/uv-settings/src/settings.rs +++ b/crates/uv-settings/src/settings.rs @@ -150,7 +150,7 @@ pub struct GlobalOptions { /// Whether to prefer using Python installations that are already present on the system, or /// those that are downloaded and installed by uv. #[option( - default = "\"only-system\" (stable) or \"managed\" (preview)", + default = "\"managed\"", value_type = "str", example = r#" python-preference = "managed" diff --git a/docs/reference/settings.md b/docs/reference/settings.md index 24ff46be1..d72a94a1b 100644 --- a/docs/reference/settings.md +++ b/docs/reference/settings.md @@ -866,7 +866,7 @@ Whether to allow Python downloads. Whether to prefer using Python installations that are already present on the system, or those that are downloaded and installed by uv. -**Default value**: `"only-system" (stable) or "managed" (preview)` +**Default value**: `"managed"` **Possible values**: