Files
chongming_template_fastapi/{{ cookiecutter.project_name }}/pyproject.toml
T
2026-04-29 11:24:19 +08:00

51 lines
1.0 KiB
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "{{ cookiecutter.project_name }}"
version = "0.1.0"
description = "基于 modules-bank 的 fastapi 打包脚手架"
readme = "README.md"
requires-python = ">=3.8"
dependencies = [
"aiofiles",
"aiosqlite",
"apscheduler",
"bcrypt",
"diskcache",
"fastapi[uvicorn]",
"gunicorn",
"module-bank",
"pyjwt",
"python-multipart",
"sqlite-vfs",
"sqlmodel[aiosqlite]",
"tomli",
"typing-extensions",
"uvicorn",
]
[[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 = [
"pyarmor",
"pyinstaller",
"ruff>=0.15.10",
]
[tool.hatch.build.targets.wheel]
packages = ["src/{{ cookiecutter.project_name }}"]
[project.scripts]
build = "{{ cookiecutter.project_name }}.scripts.build:build"
serve = "{{ cookiecutter.project_name }}:serve"
gunicorn = "{{ cookiecutter.project_name }}:gunicorn_serve"