Files
Neo-ZQYY/apps/backend/pyproject.toml
2026-03-15 10:15:02 +08:00

38 lines
1.1 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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",
"openai>=1.30",
]
[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"