Spaces:
Runtime error
Runtime error
"""Install tasks for the project.""" | |
# %% IMPORTS | |
from invoke import task | |
from invoke.context import Context | |
# %% TASKS | |
def venv(ctx: Context) -> None: | |
"""Create a virtual environment.""" | |
ctx.run("python3 -m venv .venv/") | |
ctx.run(".venv/bin/pip install uv") | |
def lock(ctx: Context) -> None: | |
"""Lock the main project dependencies.""" | |
ctx.run("uv pip compile requirements-main.txt -o requirements.txt") | |
def main(ctx: Context) -> None: | |
"""Install the main dependencies.""" | |
ctx.run("uv pip install -r requirements.txt") | |
def dev(ctx: Context) -> None: | |
"""Install the development dependencies.""" | |
ctx.run("uv pip install -r requirements-dev.txt") | |
def all(_: Context) -> None: | |
"""Run all install tasks.""" | |