дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
feat(sdk): create Python environments with uv and Poetry in Add Interpreter (#1888)
* feat(sdk): create Python environments with uv and Poetry in Add Interpreter Add a VenvTool parameter to sdk_python_create_venv so the Add Python Interpreter dialog can build a new environment with virtualenv, uv or Poetry, matching what the environment discovery already finds. Poetry keeps envs in its own cache, so the dialog disables the location field for it and resolves the interpreter via 'poetry env info --path'. Fixes l0ng-ai/openidea#1776 * fix(i18n): update text catalogs for the new env-tool strings The Add Interpreter dialog gained uv/Poetry labels and per-tool notes, and its spinner text changed from 'Creating virtual environment' to 'Creating environment'. Add the new zh entries and rename the stale key in every catalog so the text-catalog test passes.
Цей коміт міститься в:
1 джерело
d018771a8d
коміт
88ecaf9ccd
14 files changed
+338
-38
No files matched your search
@@ -93,12 +93,13 @@ pub async fn sdk_locate_tools(
|
||||
ide_host::ops::sdk::sdk_locate_tools(&state.host, window.label(), names, near).await
|
||||
}
|
||||
|
||||
/// `base -m venv location`; output lines stream through `on_output`.
|
||||
/// Creates a Python environment with `tool` (`venv` / `uv` / `poetry`); output streams through `on_output`.
|
||||
#[tauri::command]
|
||||
#[specta::specta]
|
||||
pub async fn sdk_python_create_venv(
|
||||
window: Window,
|
||||
state: State<'_, AppState>,
|
||||
tool: ide_sdk::python::VenvTool,
|
||||
base: PathBuf,
|
||||
location: PathBuf,
|
||||
request: RequestId,
|
||||
@@ -107,6 +108,7 @@ pub async fn sdk_python_create_venv(
|
||||
ide_host::ops::sdk::sdk_python_create_venv(
|
||||
&state.host,
|
||||
window.label(),
|
||||
tool,
|
||||
base,
|
||||
location,
|
||||
request,
|
||||
|
||||
Reference in new issue
Заблокувати користувача