effd3caa4a
Created comprehensive Phase 3a smoke test (scripts/smoke_phase3a.py) with: - sys.path config (auto-detects local vs container) - JWT login + protected route auth (with graceful bcrypt skip) - Orchestrator async (ProcessPoolExecutor confirmed) - WS stage wiring (on_stage callback verified) - Real factor tears pipeline (multiprocessing fix validated) Multiprocessing blocker resolved: - Added if __name__ == "__main__": guard to enable vnpy.alpha spawn - Tested in container - factor pipeline runs end-to-end - max_workers=1 still spawns processes (guard required regardless) Test coverage: - Local: 44/44 tests passed, 82% coverage (sanguo_api + orchestrator) - Container: 30/30 tests passed (factor + backtest) - Smoke: All 6 sections passed in container Co-Authored-By: Claude <noreply@anthropic.com>
93 lines
1.8 KiB
Plaintext
93 lines
1.8 KiB
Plaintext
# Sanguo VeighNa Docker 依赖
|
|
# 基于 VeighNa 4.4.0,添加 Web 服务所需依赖
|
|
|
|
# ============================================
|
|
# VeighNa 核心依赖
|
|
# ============================================
|
|
tzlocal>=5.3.1
|
|
PySide6==6.8.2.1
|
|
pyqtgraph>=0.13.7
|
|
qdarkstyle>=3.2.3
|
|
numpy>=2.2.3
|
|
pandas>=2.2.3
|
|
ta-lib>=0.6.4
|
|
deap>=1.4.2
|
|
pyzmq>=26.3.0
|
|
plotly>=6.0.0
|
|
tqdm>=4.67.1
|
|
loguru>=0.7.3
|
|
nbformat>=5.10.4
|
|
requests>=2.32.0
|
|
qrcode>=7.4.2
|
|
|
|
# VeighNa Gateway 扩展(可选,根据需要安装)
|
|
# 注意:这些是独立的扩展包,未安装时不影响核心功能
|
|
# vnpy_ctp
|
|
# vnpy_ib
|
|
# vnpy_okx
|
|
# vnpy_binance
|
|
|
|
# ============================================
|
|
# Web 服务依赖
|
|
# ============================================
|
|
# FastAPI 核心
|
|
fastapi>=0.100.0
|
|
uvicorn[standard]>=0.23.0
|
|
python-multipart>=0.0.6
|
|
|
|
# WebSocket 支持
|
|
websockets>=12.0
|
|
|
|
# 数据验证
|
|
pydantic>=2.0.0
|
|
pydantic-settings>=2.0.0
|
|
|
|
# 认证授权
|
|
PyJWT>=2.8.0
|
|
python-jose[cryptography]>=3.3.0
|
|
passlib[bcrypt]>=1.7.4
|
|
python-multipart>=0.0.6
|
|
|
|
# 数据库
|
|
sqlalchemy>=2.0.0
|
|
alembic>=1.12.0
|
|
# SQLite 是 Python 内置的
|
|
# PostgreSQL 支持(可选)
|
|
# psycopg2-binary>=2.9.0
|
|
|
|
# Redis 客户端
|
|
redis>=5.0.0
|
|
aioredis>=2.0.0
|
|
|
|
# ============================================
|
|
# Alpha 量化依赖(可选)
|
|
# ============================================
|
|
polars>=1.26.0
|
|
scipy>=1.15.2
|
|
alphalens-reloaded>=0.4.5
|
|
scikit-learn>=1.6.1
|
|
lightgbm>=4.6.0
|
|
torch>=2.6.0
|
|
pyarrow>=19.0.1
|
|
|
|
# ============================================
|
|
# 工具和监控
|
|
# ============================================
|
|
# HTTP 客户端
|
|
httpx>=0.25.0
|
|
|
|
# 任务调度
|
|
apscheduler>=3.10.0
|
|
|
|
# 监控和日志
|
|
prometheus-client>=0.19.0
|
|
structlog>=23.0.0
|
|
|
|
# ============================================
|
|
# 开发工具(生产环境可选)
|
|
# ============================================
|
|
# pytest>=7.0.0
|
|
# pytest-cov>=4.0.0
|
|
# ruff>=0.1.0
|
|
# mypy>=1.5.0
|