Skip to content

Commit

Permalink
🚜 Refactoring locations
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Sep 16, 2024
1 parent 6b96cfb commit 4097f49
Showing 1 changed file with 29 additions and 22 deletions.
51 changes: 29 additions & 22 deletions home/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,7 @@ _homebrew-services-restart:
brew postgresql-upgrade-database

# ----------------------------------------------------------------
# Python
# pyenv - https://github.com/pyenv/pyenv
# Python recipes
# ----------------------------------------------------------------

@pip-install *ARGS:
Expand All @@ -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 \
Expand All @@ -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 }} \
Expand All @@ -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
# ----------------------------------------------------------------
Expand Down

0 comments on commit 4097f49

Please sign in to comment.