# MAOP Python service layer — 本地开发快速安装指引（非权威锁文件）。
#
# ⚠️ 本文件是「开发指引子集」：刻意排除企业版驱动 etcd3（2019 停更 + CVE + Python≥3.13 装不上，
#    需要时 `pip install "maop[etcd]"` 显式安装）。请勿据此做 SBOM / 漏洞审计。
#
# ✅ 权威锁文件是 requirements.frozen.txt（uv 全量解析、精确 ==，T2.2 2026-09-30）：
#    CI 的 pip-audit / SBOM / 缓存键均以它为唯一输入。requirements.lock 退为
#    直依赖镜像参考（窄范围，由 tests/test_requirements_lock_sync.py 守卫）。
#    本文件是「开发指引子集」，仅为避开 etcd3/torch 等重依赖，便于快速起环境，
#    勿据此做 SBOM / 漏洞审计。
#
# 与 pyproject.toml [project.dependencies] 对齐。

fastapi==0.142.2
uvicorn[standard]==0.54.0
pydantic>=2.9.0,<3.0
pydantic-settings==2.15.0
pyyaml==6.0.3
httpx>=0.27.0,<1.0
python-dotenv>=1.2.2
mmh3==5.3.1
# 5.2 fix: cap upper bounds (see pyproject.toml [project.dependencies]).
numpy>=1.24.0,<3.0
# P0-C CVE audit (2026-08-26): >=50.0 fixes PYSEC-2026-3552/3553/3554 + GHSA-537c-gmf6-5ccf.
cryptography>=50.0,<51
# P0-C CVE audit (2026-08-26): >=6.1.0 fixes PYSEC-2026-87 (CVE-2026-41066).
lxml>=6.1.0
alembic>=1.13.0
python-multipart>=0.0.31
aiosqlite>=0.20.0
sqlite-vec>=0.1.6
# P0-C CVE audit (2026-08-26): 3.14.3 covers all CVEs reported against 3.13.x.
# aiohttp 已于 2026-09-26 移除：全仓零 import（详见 pyproject.toml 同处说明）
# 下界 14.0：additional_headers / .state 都是新 asyncio 实现的签名（实测 12/13 报 TypeError）
websockets>=14.0,<17
PyJWT>=2.13.0
packaging>=24.0

# ── 企业版分布式后端（生产必需）──────────────────────────────────
# PostgreSQL 驱动（二选一，推荐 psycopg3）
psycopg[binary,pool]>=3.1
asyncpg>=0.29.0

# Redis 驱动
redis>=5.0.0

# RabbitMQ 驱动
pika>=1.3.0

# etcd 驱动（P0-2: 2019 停更 + CVE + Python≥3.13 装不上，移出企业版默认；
# 需要时 pip install "maop[etcd]" —— 不推荐生产使用）
# etcd3>=0.12.0

# Vault 密钥管理
hvac>=2.4.0
