diff --git a/home/justfile b/home/justfile index 2d1a5b6..1f8dc52 100644 --- a/home/justfile +++ b/home/justfile @@ -154,8 +154,7 @@ _homebrew-services-restart: brew postgresql-upgrade-database # ---------------------------------------------------------------- -# Python -# pyenv - https://github.com/pyenv/pyenv +# Python recipes # ---------------------------------------------------------------- @pip-install *ARGS: @@ -169,26 +168,6 @@ _homebrew-services-restart: --system \ {{ ARGS }} -@uv-install *ARGS: - -uv python install {{ ARGS }} 3.13 - -uv python install {{ ARGS }} 3.12 - -uv python install {{ ARGS }} 3.11 - -uv python install {{ ARGS }} 3.10 - -uv python install {{ ARGS }} 3.9 - -uv python install {{ ARGS }} 3.8 - -@uv-reinstall *ARGS: - just uv-install --reinstall - -@uv-tool-install *ARGS: - uv tool install --python {{ python_312 }} cogapp {{ ARGS }} - uv tool install --python {{ python_312 }} grip {{ ARGS }} - uv tool install --python {{ python_312 }} justpath {{ ARGS }} - uv tool install --python {{ python_312 }} pyright {{ ARGS }} - uv tool install --python {{ python_312 }} rich-cli {{ ARGS }} - uv tool install --python {{ python_312 }} ruff-lsp {{ ARGS }} - uv tool install --python {{ python_312 }} youtube-dl {{ ARGS }} - @_python-bootstrap: PIP_REQUIRE_VIRTUALENV=false python -m pip install \ --disable-pip-version-check \ @@ -208,6 +187,10 @@ _homebrew-services-restart: just _pyenv-update just _pyenv-set-global +# ---------------------------------------------------------------- +# Python / pyenv recipes - https://github.com/pyenv/pyenv +# ---------------------------------------------------------------- + @_pyenv-set-global: pyenv global \ {{ python_311 }} \ @@ -230,6 +213,30 @@ _homebrew-services-restart: just _pyenv-set-global +# ---------------------------------------------------------------- +# Python / UV recipes - https://docs.astral.sh/uv/ +# ---------------------------------------------------------------- + +@uv-install *ARGS: + -uv python install {{ ARGS }} 3.13 + -uv python install {{ ARGS }} 3.12 + -uv python install {{ ARGS }} 3.11 + -uv python install {{ ARGS }} 3.10 + -uv python install {{ ARGS }} 3.9 + -uv python install {{ ARGS }} 3.8 + +@uv-reinstall *ARGS: + just uv-install --reinstall + +@uv-tool-install *ARGS: + uv tool install --python {{ python_312 }} cogapp {{ ARGS }} + uv tool install --python {{ python_312 }} grip {{ ARGS }} + uv tool install --python {{ python_312 }} justpath {{ ARGS }} + uv tool install --python {{ python_312 }} pyright {{ ARGS }} + uv tool install --python {{ python_312 }} rich-cli {{ ARGS }} + uv tool install --python {{ python_312 }} ruff-lsp {{ ARGS }} + uv tool install --python {{ python_312 }} youtube-dl {{ ARGS }} + # ---------------------------------------------------------------- # Useful tailscale/golink shortcuts # ----------------------------------------------------------------