diff --git a/Dockerfile b/Dockerfile index 27e76fe..c4a0caa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,7 @@ -FROM ubuntu -RUN apt-get update -RUN apt-get -y install python3 -RUN apt-get update -RUN apt-get -y install pipx -RUN pipx ensurepath +FROM python:3.12-slim-bookworm +COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/ COPY . /fastanime +ENV PATH=/root/.local/bin:$PATH WORKDIR /fastanime -RUN pipx install . +RUN uv tool install . CMD ["bash"] diff --git a/tox.ini b/tox.ini index e5141ea..60bcb1d 100644 --- a/tox.ini +++ b/tox.ini @@ -5,23 +5,23 @@ env_list = lint, pyright, py{310,311} [testenv] description = run unit tests -deps =poetry +deps =uv commands = - poetry install --all-extras - poetry run pytest + uv sync --dev --all-extras + uv run pytest [testenv:lint] description = run linters skip_install = true -deps =poetry +deps =uv commands = - poetry install --all-extras - poetry run black . + uv sync --dev --all-extras + uv run ruff format . [testenv:pyright] description = run type checking skip_install = true -deps =poetry +deps =uv commands = - poetry install --no-root --all-extras - poetry run pyright + uv sync --dev --all-extras + uv run pyright