mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-05 05:49:15 +00:00
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:
18
scripts/install-python-packages.md
Normal file
18
scripts/install-python-packages.md
Normal 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`.
|
||||
Reference in New Issue
Block a user