pyproject.toml esimerkki: lisätty httpx ja pytest riippuvuuksiin

TestClient vaatii httpx:n, testit vaativat pyTestin.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-07 12:01:35 +03:00
parent 32065d5818
commit 9ac90aa540

View File

@@ -2439,7 +2439,7 @@ Project: ${task}`;
name = "projectname"
version = "0.1.0"
requires-python = ">=3.11"
dependencies = ["fastapi", "uvicorn", "sqlalchemy"]
dependencies = ["fastapi", "uvicorn", "sqlalchemy", "httpx", "pytest"]
[project.scripts]
start = "uvicorn main:app --reload"