2026-03-06 17:57:44 +08:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
|
|
|
|
[project]
|
|
|
|
|
name = "chongming"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = "基于 modules-bank 的 fastapi 打包脚手架"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
dependencies = [
|
2026-04-26 20:44:18 +08:00
|
|
|
"aiofiles",
|
2026-03-06 17:57:44 +08:00
|
|
|
"aiosqlite",
|
2026-04-13 15:55:12 +08:00
|
|
|
"apscheduler",
|
2026-04-26 20:44:18 +08:00
|
|
|
"bcrypt",
|
2026-04-13 16:57:27 +08:00
|
|
|
"diskcache",
|
2026-03-06 17:57:44 +08:00
|
|
|
"fastapi[uvicorn]",
|
2026-04-26 20:44:18 +08:00
|
|
|
"gunicorn",
|
2026-05-04 20:06:19 +08:00
|
|
|
"module-bank==0.3.1",
|
2026-03-06 17:57:44 +08:00
|
|
|
"pyjwt",
|
2026-04-26 20:44:18 +08:00
|
|
|
"python-multipart",
|
2026-03-06 17:57:44 +08:00
|
|
|
"sqlite-vfs",
|
|
|
|
|
"sqlmodel[aiosqlite]",
|
|
|
|
|
"tomli",
|
|
|
|
|
"typing-extensions",
|
|
|
|
|
"uvicorn",
|
|
|
|
|
]
|
|
|
|
|
|
2026-05-04 20:06:19 +08:00
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "https://pypi.org/simple"
|
|
|
|
|
|
2026-03-06 17:57:44 +08:00
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
|
|
|
|
default = true
|
|
|
|
|
|
|
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "https://mirrors.ustc.edu.cn/pypi/web/simple/"
|
|
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
dev = [
|
2026-05-02 20:58:04 +08:00
|
|
|
"nuitka>=4.0.8",
|
2026-03-06 17:57:44 +08:00
|
|
|
"pyarmor",
|
|
|
|
|
"pyinstaller",
|
2026-04-14 21:06:10 +08:00
|
|
|
"ruff>=0.15.10",
|
2026-05-02 20:58:04 +08:00
|
|
|
"zstandard>=0.23.0",
|
2026-03-06 17:57:44 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/chongming"]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
|
|
|
|
build = "chongming.scripts.build:build"
|
2026-04-13 15:55:12 +08:00
|
|
|
serve = "chongming:serve"
|
2026-04-26 15:26:01 +08:00
|
|
|
# gunicorn = "gunicorn chongming.app:app -k uvicorn.workers.UvicornWorker -w 4 -b 0.0.0.0:8000"
|
|
|
|
|
gunicorn = "chongming:gunicorn_serve"
|