2026-10-13 17:29:29 +08:00
|
|
|
[build-system]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "chongming-gateway"
|
2026-10-14 10:57:09 +08:00
|
|
|
version = "0.1.1"
|
2026-10-13 17:29:29 +08:00
|
|
|
description = "chongming 网关:FastAPI + Zenoh 的配置驱动微服务网关(插件路由动态挂载、Worker 服务发现与负载均衡)"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.12"
|
|
|
|
|
dependencies = [
|
|
|
|
|
# chongming 家族工具包
|
|
|
|
|
"chongming-auth",
|
|
|
|
|
"chongming-cache",
|
|
|
|
|
"chongming-config",
|
|
|
|
|
"chongming-jwt",
|
|
|
|
|
"chongming-worker",
|
2026-10-14 10:57:09 +08:00
|
|
|
"chongming-license",
|
2026-10-13 17:29:29 +08:00
|
|
|
# Web / 服务器
|
|
|
|
|
"fastapi",
|
2026-10-14 10:57:09 +08:00
|
|
|
"granian[reload,uvloop]",
|
2026-10-13 17:29:29 +08:00
|
|
|
"gunicorn",
|
|
|
|
|
"httptools",
|
|
|
|
|
"starlette",
|
|
|
|
|
"uvicorn",
|
|
|
|
|
"uvloop",
|
|
|
|
|
# 运行时
|
|
|
|
|
"amqtt",
|
|
|
|
|
"eclipse-zenoh",
|
2026-10-14 10:57:09 +08:00
|
|
|
# chongming-auth → chongming-database 的 sqlalchemy[asyncio] 在 import 期即要求
|
|
|
|
|
"greenlet",
|
2026-10-13 17:29:29 +08:00
|
|
|
"orjson",
|
|
|
|
|
"pwdlib",
|
|
|
|
|
"pydantic",
|
2026-10-14 10:57:09 +08:00
|
|
|
# /license/file 上传端点(File/UploadFile)在注册路由时即要求
|
|
|
|
|
"python-multipart",
|
2026-10-13 17:29:29 +08:00
|
|
|
"sqlite-vfs",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
gunicorn = "chongming:gunicorn_serve"
|
|
|
|
|
granian = "chongming:granian_serve"
|
|
|
|
|
serve = "chongming:serve"
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/chongming"]
|
|
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "http://124.71.68.6:3000/api/packages/chongming/pypi/simple/"
|
|
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
|
|
|
|
|
|
|
|
|
|
[dependency-groups]
|
2026-10-14 10:57:09 +08:00
|
|
|
dev = ["twine>=7.0.0"]
|