53 lines
1.1 KiB
TOML
53 lines
1.1 KiB
TOML
[build-system]
|
|
build-backend = "hatchling.build"
|
|
requires = ["hatchling"]
|
|
|
|
[project]
|
|
name = "chongming-gateway"
|
|
version = "0.1.0"
|
|
description = "chongming 网关:FastAPI + Zenoh 的配置驱动微服务网关(插件路由动态挂载、Worker 服务发现与负载均衡)"
|
|
readme = "README.md"
|
|
requires-python = ">=3.12"
|
|
dependencies = [
|
|
# chongming 家族工具包
|
|
"chongming-auth",
|
|
"chongming-cache",
|
|
"chongming-config",
|
|
"chongming-jwt",
|
|
"chongming-worker",
|
|
# Web / 服务器
|
|
"fastapi",
|
|
"granian[reload,uvloop]>=2.8.4",
|
|
"gunicorn",
|
|
"httptools",
|
|
"starlette",
|
|
"uvicorn",
|
|
"uvloop",
|
|
# 运行时
|
|
"amqtt",
|
|
"eclipse-zenoh",
|
|
"orjson",
|
|
"pwdlib",
|
|
"pydantic",
|
|
"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]
|
|
dev = [
|
|
"twine>=7.0.0",
|
|
]
|