9cf24ccecd
代码已使用 from __future__ import annotations, 兼容 3.10 运行时 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
55 lines
1.1 KiB
TOML
55 lines
1.1 KiB
TOML
[project]
|
|
name = "shaguabijia-app-server"
|
|
version = "0.1.0"
|
|
description = "Shaguabijia 正式 App 后端 (FastAPI + SQLAlchemy + JWT)"
|
|
requires-python = ">=3.10"
|
|
dependencies = [
|
|
# Web 框架 & ASGI
|
|
"fastapi>=0.115.0",
|
|
"uvicorn[standard]>=0.32.0",
|
|
|
|
# 数据校验
|
|
"pydantic>=2.9.0",
|
|
"pydantic-settings>=2.5.0",
|
|
"email-validator>=2.2.0",
|
|
|
|
# ORM & 迁移
|
|
"sqlalchemy>=2.0.35",
|
|
"alembic>=1.13.3",
|
|
|
|
# JWT 签名 / 校验
|
|
"pyjwt[crypto]>=2.9.0",
|
|
|
|
# 极光一键登录:RSA 解密极光返回的加密手机号
|
|
"cryptography>=42.0.0",
|
|
|
|
# HTTP 客户端 (调极光 REST)
|
|
"httpx>=0.27.0",
|
|
|
|
# multipart form (FastAPI 表单上传依赖)
|
|
"python-multipart>=0.0.9",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0.0",
|
|
"pytest-asyncio>=0.24.0",
|
|
"httpx>=0.27.0",
|
|
"ruff>=0.6.0",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["app*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "W", "I", "B", "UP"]
|
|
ignore = ["E501"]
|