Files
2026Technology-Competition/pyproject.toml
T
lhl 215c605650 feat(server): Web 服务化(FastAPI + SQLite + 内嵌零构建前端)
参赛成果物 03「交互界面 + 数据存储」落地:
- src/genesis/server/: store.py(SQLite 会话持久化)、service.py(会话化服务层:
  上传→解析→确认→影响→确认→生成→QA)、app.py(api-design §2 核心端点 9 组)、
  static/index.html(内嵌单页,零构建无 node_modules 依赖)
- scripts/serve.py 启动入口(--fake 离线引擎 / 默认真实 LLM)
- pyproject 加 fastapi/uvicorn/python-multipart
- 修复 qa_loop._build meta={} 导致真实模板 {{doc_title}} 等占位符残留 DocxInjectError
- README Web 服务说明 + service_url 登记指引;design.md §12.5 记录(含同步执行/
  zip 既有系统/无 WebSocket 的诚实偏差标注)
- 测试:test_server_store/service/api 共 34 用例(TestClient 全链路 + zip 影响流程 + 错误分支)
全量 pytest 473 passed / 99.20%
2026-08-26 22:13:19 +08:00

47 lines
1.1 KiB
TOML

[build-system]
requires = ["setuptools>=69"]
build-backend = "setuptools.build_meta"
[project]
name = "genesis"
version = "0.1.0"
description = "概要设计书自动生成 Agent"
requires-python = ">=3.11"
dependencies = [
"pydantic>=2.13",
"pydantic-settings>=2.15",
"pyyaml>=6.0",
"openpyxl>=3.1",
"python-docx>=1.0",
"httpx>=0.28",
"jinja2>=3.1",
"jsonschema>=4.23",
"fastapi>=0.115",
"uvicorn>=0.30",
"python-multipart>=0.0.9",
]
[project.optional-dependencies]
dev = ["pytest>=8.0", "pytest-cov>=7.0"]
[tool.setuptools.packages.find]
where = ["src"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=genesis --cov-report=term-missing"
norecursedirs = ["*.egg-info", "coverage", "test-execution-log.txt"]
[tool.coverage.run]
# 仅统计 src/genesis 业务代码(不含 tests 自身)
source = ["genesis"]
# 测量分支覆盖
branch = true
[tool.coverage.report]
# 覆盖率门槛:低于该值 pytest 失败(红线,防止回归)
fail_under = 99
# 跳过 __init__.py 等空文件干扰
skip_empty = true
# 按语句总数降序展示
sort = "miss"