Skip to content

Commit ef08034

Browse files
committed
Replace pipx with uv and uvx
1 parent 019c7ea commit ef08034

4 files changed

Lines changed: 19 additions & 12 deletions

File tree

home/.chezmoiexternal.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,18 @@
6565
{{- end }}
6666

6767
{{ if not .is_devcontainer -}}
68-
".local/bin/pipx":
69-
type: file
70-
{{ $pipxVersion := includeTemplate "get-github-latest-version" "pypa/pipx" }}
71-
url: "https://github.com/pypa/pipx/releases/download/{{ $pipxVersion }}/pipx.pyz"
72-
executable: true
68+
".local/bin/uv":
69+
type: archive-file
70+
{{ $uvVersion := includeTemplate "get-github-latest-version" "astral-sh/uv" }}
71+
url: "https://github.com/astral-sh/uv/releases/download/{{ $uvVersion }}/uv-{{ .uname_arch }}-unknown-linux-gnu.tar.gz"
72+
stripComponents: 1
73+
path: uv
74+
75+
".local/bin/uvx":
76+
type: archive-file
77+
url: "https://github.com/astral-sh/uv/releases/download/{{ $uvVersion }}/uv-{{ .uname_arch }}-unknown-linux-gnu.tar.gz"
78+
stripComponents: 1
79+
path: uvx
7380

7481
".local/bin/kubecolor":
7582
type: archive-file

home/.chezmoiremove

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
# now we use gext instead
2828
.local/bin/gnome-shell-extension-installer
2929

30+
# now we use uv instead
31+
.local/bin/pipx
32+
.local/share/pipx
33+
3034
# tea got renamed to pkgx
3135
.local/bin/tea
3236
.tea

home/.chezmoiscripts/run_after_81-install-gnome-extensions.sh.tmpl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ true || source ../.chezmoitemplates/scripts-library
77

88
ensure_path_entry "${HOME}/.local/bin"
99

10+
# TODO: install the .pyz instead after https://github.com/essembeh/gnome-extensions-cli/issues/40
11+
alias gext='uvx gnome-extensions-cli'
12+
1013
function is_gnome_extension_installed() {
1114
local extension="$1"
1215

@@ -43,11 +46,6 @@ disabled_extensions=(
4346

4447
missing_extensions=()
4548

46-
if ! command -v gext >/dev/null; then
47-
log_task "Installing gnome-extensions-cli"
48-
c pipx install --force gnome-extensions-cli
49-
fi
50-
5149
for extension in "${wanted_extensions[@]}"; do
5250
# shellcheck disable=SC2310
5351
if ! is_gnome_extension_installed "${extension}"; then

root/.chezmoiscripts/run_after_10-install-apt-packages.sh.tmpl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ readonly wanted_packages=(
2424
git
2525
jq
2626
python3
27-
# needed by pipx
28-
python3-venv
2927
docker-ce
3028
docker-ce-cli
3129
containerd.io

0 commit comments

Comments
 (0)