Replace pipx with uv for installing Python-based tools
This commit is contained in:
parent
a37fa4f0d7
commit
d1e206805b
4 changed files with 33 additions and 36 deletions
|
|
@ -60,7 +60,6 @@ DEB_PKGS=(
|
|||
ntfs-3g
|
||||
nvtop
|
||||
pipewire-audio
|
||||
pipx
|
||||
postfix
|
||||
pre-commit
|
||||
pulseaudio-utils
|
||||
|
|
|
|||
|
|
@ -1,32 +0,0 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
PIPX_PKGS=(
|
||||
# keep-sorted start
|
||||
python-lsp-server
|
||||
rshell
|
||||
ruff
|
||||
# keep-sorted end
|
||||
)
|
||||
|
||||
if (( "${#PIPX_PKGS[@]}" != 0 )); then
|
||||
pipx install "${PIPX_PKGS[@]}"
|
||||
fi
|
||||
|
||||
PYLSP_PLUGINS=(
|
||||
# keep-sorted start
|
||||
fs
|
||||
podman
|
||||
pydantic
|
||||
pylsp-mypy
|
||||
pylsp-rope
|
||||
pytest
|
||||
testcontainers
|
||||
types-docker
|
||||
types-pyxdg
|
||||
# keep-sorted end
|
||||
)
|
||||
|
||||
pipx inject python-lsp-server "${PYLSP_PLUGINS[@]}"
|
||||
30
.config/setup/46-install-uv-packages.sh
Executable file
30
.config/setup/46-install-uv-packages.sh
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
#! /usr/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
|
||||
UV_PKGS=(
|
||||
# keep-sorted start
|
||||
rshell
|
||||
ruff
|
||||
# keep-sorted end
|
||||
)
|
||||
|
||||
for package in "${UV_PKGS[@]}"; do
|
||||
uv tool install "${package}"
|
||||
done
|
||||
|
||||
PYLSP_PLUGINS=(
|
||||
# keep-sorted start
|
||||
--with fs
|
||||
--with podman
|
||||
--with pydantic
|
||||
--with pylsp-mypy
|
||||
--with pylsp-rope
|
||||
--with pytest
|
||||
--with testcontainers
|
||||
--with types-docker
|
||||
--with types-pyxdg
|
||||
# keep-sorted end
|
||||
)
|
||||
uv tool install "${PYLSP_PLUGINS[@]}" python-lsp-server
|
||||
Loading…
Add table
Add a link
Reference in a new issue