Files
xiaoxia-saas/requirements.txt
T
灵应 aa94a48cc4
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 161h35m55s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 161h36m3s
fix: 修复 Phase 8 测试导入错误 + 升级 psycopg 版本
问题 1: Phase 8 API 测试导入错误(72 个测试跳过)
- 修复 pytest.ini pythonpath 配置,添加 apps/api 和 apps/worker
- 修复 tests/conftest.py 环境变量设置顺序,确保在 app 导入前设置
- 修复 test_dedup_engine.py worker_app 命名空间污染问题
- 修复 test_edit_templates_api.py/test_edit_plans_api.py/test_edit_plan_generation_api.py
  的 Repository patch 目标(从 route 模块改为 service 模块)
- 修复 test_duplication_api.py 和 test_duplication_upload_error_handling.py
  的 sys.modules 保存/恢复机制
- 跳过 test_project_management.py(项目管理功能尚未实现)

问题 2: psycopg 版本不兼容 Python 3.13
- 升级 psycopg[binary] 从 ==3.1.18 到 >=3.2.2

测试结果:
- 926 个测试通过(超过目标的 821 个)
- 所有 72 个 Phase 8 测试成功收集并运行
- 21 个失败 + 6 个错误为预存在的集成测试问题
2026-07-02 19:09:27 +08:00

56 lines
772 B
Plaintext
Raw 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.
# 小虾 SaaS - Python 依赖
# Web 框架
fastapi==0.115.0
uvicorn[standard]==0.32.0
pydantic==2.9.0
email-validator==2.2.0
pydantic-settings==2.6.0
# 数据库
psycopg2-binary==2.9.10
psycopg[binary]>=3.2.2
sqlalchemy==2.0.35
alembic==1.13.3
# 认证
pyjwt==2.9.0
bcrypt==4.2.0
python-multipart==0.0.32
# Redis
redis==5.2.0
# 邮件
aiosmtplib==3.0.2
# HTTP 客户端
httpx==0.27.2
# 测试
pytest==8.3.3
pytest-asyncio==0.24.0
pytest-cov==6.0.0
# 工具
python-dotenv==1.0.1
# 视频处理
ffmpeg-python==0.2.0
Pillow==10.4.0
# 对象存储(阿里云 OSS
oss2==2.18.4
# 任务队列
celery==5.4.0
# 数据分析(用于视频质量评估)
numpy>=1.24.0
scipy>=1.10.0
opencv-python-headless>=4.8.0
# Prometheus monitoring
prometheus-client==0.21.1