From d4fbaa8906ae3eb93c5f4423b5cfd2062a308c92 Mon Sep 17 00:00:00 2001 From: Codex Bot Date: Sat, 19 Sep 2026 04:14:01 +0800 Subject: [PATCH] fix: install Starlette test client transport --- Dockerfile | 2 +- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 09fba93..d727b50 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ WORKDIR /app COPY pyproject.toml ./ COPY src ./src FROM base AS test -RUN pip install . pytest ruff +RUN pip install . pytest ruff httpx2 COPY tests ./tests RUN ruff check src tests && pytest -q FROM base AS runtime diff --git a/pyproject.toml b/pyproject.toml index 6593f4c..d200dfc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,6 +12,9 @@ dependencies = [ "python-multipart>=0.0.20,<1", "pillow>=11,<13" ] +[project.optional-dependencies] +test = ["pytest>=9,<10", "ruff>=0.16,<1", "httpx2>=0.1,<1"] + [tool.setuptools.packages.find] where = ["src"]