Files

56 lines
1.1 KiB
TOML
Raw Permalink Normal View History

2026-03-06 17:57:44 +08:00
[build-system]
build-backend = "hatchling.build"
2026-05-05 00:27:27 +08:00
requires = ["hatchling"]
2026-03-06 17:57:44 +08:00
[project]
2026-05-05 00:27:27 +08:00
dependencies = [
"aiofiles",
"aiosqlite",
"apscheduler",
"bcrypt",
"diskcache",
"fastapi[uvicorn]",
"gunicorn",
"module-bank",
"pyjwt",
"python-multipart",
"sqlite-vfs",
"sqlmodel[aiosqlite]",
"tomli",
"typing-extensions",
"uvicorn",
]
2026-03-06 17:57:44 +08:00
description = "基于 modules-bank 的 fastapi 打包脚手架"
2026-05-05 00:27:27 +08:00
name = "chongming"
2026-03-06 17:57:44 +08:00
readme = "README.md"
requires-python = ">=3.8"
2026-05-05 00:27:27 +08:00
version = "0.1.0"
2026-03-06 17:57:44 +08:00
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]]
default = true
2026-05-05 00:27:27 +08:00
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
2026-03-06 17:57:44 +08:00
[[tool.uv.index]]
url = "https://mirrors.ustc.edu.cn/pypi/web/simple/"
[dependency-groups]
dev = [
2026-05-05 00:27:27 +08:00
"nuitka>=4.0.8",
"pyarmor",
"pyinstaller",
"ruff>=0.15.10",
"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"