feat: add uv_tools command to install Python tools using uv
This commit is contained in:
@@ -23,12 +23,18 @@ APT_PACKAGES = [
|
|||||||
"btop",
|
"btop",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
PYTHON_TOOLS = [
|
||||||
|
"cruft",
|
||||||
|
"invoke",
|
||||||
|
]
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def core():
|
def core():
|
||||||
"""Install essential tools."""
|
"""Install essential tools."""
|
||||||
apt_packages()
|
apt_packages()
|
||||||
docker()
|
docker()
|
||||||
uv()
|
uv()
|
||||||
|
uv_tools()
|
||||||
fzf()
|
fzf()
|
||||||
zoxide()
|
zoxide()
|
||||||
lazygit()
|
lazygit()
|
||||||
@@ -80,6 +86,11 @@ def uv():
|
|||||||
"""Install uv for the current user."""
|
"""Install uv for the current user."""
|
||||||
run("test -f ~/.local/bin/uv || curl -LsSf https://astral.sh/uv/install.sh | sh")
|
run("test -f ~/.local/bin/uv || curl -LsSf https://astral.sh/uv/install.sh | sh")
|
||||||
|
|
||||||
|
@app.command()
|
||||||
|
def uv_tools():
|
||||||
|
"""Install Python tools using uv."""
|
||||||
|
for tool in PYTHON_TOOLS:
|
||||||
|
run(f"uv tool install --force {tool}")
|
||||||
|
|
||||||
@app.command()
|
@app.command()
|
||||||
def ccusage():
|
def ccusage():
|
||||||
|
|||||||
Reference in New Issue
Block a user