From 30346df40900087de78bd82d7a3a61d983f8b1f3 Mon Sep 17 00:00:00 2001 From: Jermiah Joseph Date: Sat, 1 Jun 2024 15:37:50 -0400 Subject: [PATCH] feat: Add Pixi command for adding PyPi packages --- README.md | 7 ++++--- package.json | 7 ++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a2f68ca..800f6a6 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ The prefix team is working on a [contribution to the official Python VSCode exte | `Pixi: Init` | `Pixi: Init` | `pixi init --platform --channel ` | Initialize a new Pixi project through an interactive menu to choose from available project types, platforms, and channels. | `Pixi: Add Channel` | `Pixi: Add Channel` | `pixi project channel add ` | Add channels to an existing Pixi project through an interactive menu to choose from available channels. | `Pixi: Add Package` | `Pixi: Add Package` | `pixi add ` | Add packages to an existing Pixi project through an interactive menu to choose from available packages. | +| `Pixi: Add PyPi Package` | `Pixi: Add PyPi Package` | `pixi add ` | Add PyPi packages to an existing Pixi project through an interactive menu to choose from available packages. | `Pixi: Set Python Interpreter` | `unavailable` | `N/A` | Choose a environment from Pixi's environment list and set the Python interpreter for the workspace. | `Pixi: Activate Environment in new Terminal` | `unavailable` | `pixi shell -e ` | Activate a Pixi environment in a new terminal. | `Pixi: Clear Extension Cache` | `unavailable` | `N/A` | This extension stores previously selected channels and platforms in the extension's cache. This command clears the cache. | @@ -53,12 +54,12 @@ You can set the `pixi-vscode.defaultChannels` setting to include a list of chann > API key to the `Pixi: Prefix API Key` setting in the VSCode settings. > The extension will then include your private channels in the list of available channels. -### Pixi `add package` Command +### Pixi `add package` and `add PyPi package` Commands Add packages to an existing Pixi project from: -- Command Palette (`Ctrl+Shift+P` then `Pixi: Add Package`) -- Context Menu (`Right Click` on a folder then `Pixi: Add Package`) +- Command Palette (`Ctrl+Shift+P` then `Pixi: Add Package`) or (`Ctrl+Shift+P` then `Pixi: Add PyPi Package`) +- Context Menu (`Right Click` on a folder then `Pixi: Add Package`) or (`Right Click` on a folder then `Pixi: Add PyPi Package`) ### Pixi `set Python Interpreter` Command diff --git a/package.json b/package.json index 0c87b5a..3f975e7 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,11 @@ "group": "1_pixi", "when": "explorerResourceIsFolder" }, + { + "command": "pixi-vscode.addPyPiPackages", + "group": "1_pixi", + "when": "explorerResourceIsFolder" + }, { "command": "pixi-vscode.addChannels", "group": "1_pixi", @@ -171,4 +176,4 @@ "react": "^18.3.1", "vscode-cache": "^0.3.0" } -} +} \ No newline at end of file