f1147dced3
- app/pay 独立支付子应用(config/wxpay/models/repository/service/routers),便于后期拆分微服务 - 充值订单表 0026_compute_recharge;套餐支持折扣(discount)与上架开关(enabled),DB system_configs 优先、env 兜底 - 统一小程序支付:桌面端出小程序码→扫码进小程序确认页按 openid 发起 JSAPI→回调幂等到账(引擎 adjust_user_quota+镜像回写) - 内嵌 wechatpayv3(含 async_),响应验签失败降级告警;新增 aiofiles 依赖 Co-Authored-By: Claude <noreply@anthropic.com>
51 lines
1.1 KiB
TOML
51 lines
1.1 KiB
TOML
[project]
|
|
name = "pineagents-demo-server"
|
|
version = "0.1.0"
|
|
description = "云超服核心服务端(FastAPI + SQLite + JWT + RBAC):身份/平台 API + 培训子应用(/api/*),统一对外 opc.pinesound.cn"
|
|
readme = "README.md"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.30.0",
|
|
"pydantic>=2.7.0",
|
|
"sqlalchemy[asyncio]>=2.0.30",
|
|
"aiosqlite>=0.20.0",
|
|
"asyncmy>=0.2.9",
|
|
"redis>=5.0.0",
|
|
"aioboto3>=13.0.0",
|
|
"pyjwt>=2.8.0",
|
|
"httpx>=0.27.0",
|
|
"python-multipart>=0.0.12",
|
|
"paho-mqtt>=1.6,<2",
|
|
"dashscope>=1.27.1",
|
|
"jinja2>=3.1.6",
|
|
"nltk>=3.10.3",
|
|
"numpy>=2.4.6",
|
|
"openai>=3.3.1",
|
|
"scipy>=1.17.1",
|
|
"soundfile>=0.14.0",
|
|
"websockets>=17.0.1",
|
|
"torch>=2.13.0",
|
|
"transformers>=5.15.1",
|
|
"alembic>=1.19.1",
|
|
"aiofiles>=24.1.0",
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"httpx>=0.27.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
]
|
|
|
|
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["app"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
addopts = "-q"
|