# AI_CHANGELOG
# - 2026-02-15 | Prompt: 让 FastAPI 成功启动 | 补全运行依赖（fastapi/uvicorn/psycopg2-binary/python-dotenv），使后端可通过 uv run uvicorn 启动
# - 风险：依赖版本变更可能影响其他 workspace 成员；验证：uv sync --all-packages && uv run uvicorn app.main:app

[project]
name = "zqyy-backend"
version = "0.1.0"
requires-python = ">=3.10"
# CHANGE 2026-02-15 | intent: 补全后端运行依赖，原先仅声明 neozqyy-shared 导致 uvicorn/fastapi 缺失无法启动
# assumptions: 版本下限与 tech.md 记录的核心依赖一致；uvicorn[standard] 包含 uvloop/httptools 等性能依赖
dependencies = [
    "neozqyy-shared",
    "fastapi>=0.115",
    "uvicorn[standard]>=0.34",
    "psycopg2-binary>=2.9",
    "python-dotenv>=1.0",
    "python-jose[cryptography]>=3.3",
    "bcrypt>=4.0",
    "psutil>=5.9",
    "dashscope>=1.20",
    "python-multipart>=0.0.9",
]

[tool.uv.sources]
neozqyy-shared = { workspace = true }

[dependency-groups]
dev = [
    "pytest>=8.0",
    "pytest-asyncio>=0.23",
    "hypothesis>=6.100",
    "httpx>=0.27",
]

[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["."]
asyncio_mode = "auto"
