refactor(python): migrate pip to uv and inline packages

Replace pip install --user with uv tool install for CLI tools
(ansible) and uv pip install --system for libraries (libtmux, pynvim).
Drop pipx and pipenv (uv replaces both), delete the external
config/asdf/python-packages file, and rename the script to
install-python-packages to reflect the broader scope.
This commit is contained in:
2026-02-04 03:21:15 +02:00
parent e1050fc7e1
commit 3fb9d2a32e
5 changed files with 95 additions and 56 deletions

View File

@@ -0,0 +1,18 @@
# install-python-packages
Install Python packages defined in the script using `uv`.
## Usage
```bash
scripts/install-python-packages.sh
```
## What it does
1. Checks that `uv` is available; if missing, installs it via the official installer.
2. Installs each CLI tool from the inline `tools` array using `uv tool install --upgrade`.
3. Installs each library from the inline `libraries` array using `uv pip install --system --upgrade`.
4. Upgrades all uv-managed tools with `uv tool upgrade --all`.
To add or remove packages, edit the `tools` or `libraries` arrays in `scripts/install-python-packages.sh`.