2026-02-02 13:36:57 +08:00
|
|
|
[build-system]
|
|
|
|
|
requires = ["hatchling"]
|
|
|
|
|
build-backend = "hatchling.build"
|
|
|
|
|
|
2026-01-31 16:00:12 +08:00
|
|
|
[project]
|
|
|
|
|
name = "{{ cookiecutter.project_name }}"
|
|
|
|
|
version = "0.1.0"
|
|
|
|
|
description = "基于 modules-bank 的 fastapi 打包脚手架"
|
|
|
|
|
readme = "README.md"
|
|
|
|
|
requires-python = ">=3.8"
|
|
|
|
|
dependencies = [
|
2026-03-06 14:30:10 +08:00
|
|
|
"aiosqlite",
|
|
|
|
|
"bcrypt==4.0.1",
|
2026-01-31 16:00:12 +08:00
|
|
|
"fastapi[uvicorn]",
|
|
|
|
|
"module-bank",
|
2026-02-02 13:36:57 +08:00
|
|
|
"passlib[bcrypt]",
|
2026-03-06 14:30:10 +08:00
|
|
|
"pyjwt",
|
2026-01-31 16:00:12 +08:00
|
|
|
"sqlite-vfs",
|
2026-02-02 13:36:57 +08:00
|
|
|
"sqlitedict",
|
2026-03-06 14:30:10 +08:00
|
|
|
"sqlmodel[aiosqlite]",
|
|
|
|
|
"tomli",
|
|
|
|
|
"typing-extensions",
|
|
|
|
|
"uvicorn",
|
2026-01-31 16:00:12 +08:00
|
|
|
]
|
|
|
|
|
|
2026-03-06 14:30:10 +08:00
|
|
|
|
2026-01-31 16:00:12 +08:00
|
|
|
[[tool.uv.index]]
|
2026-02-02 13:36:57 +08:00
|
|
|
url = "https://pypi.tuna.tsinghua.edu.cn/simple"
|
|
|
|
|
default = true
|
2026-01-31 16:00:12 +08:00
|
|
|
|
2026-02-02 13:36:57 +08:00
|
|
|
[[tool.uv.index]]
|
|
|
|
|
url = "https://mirrors.ustc.edu.cn/pypi/web/simple/"
|
2026-01-31 16:00:12 +08:00
|
|
|
|
|
|
|
|
[dependency-groups]
|
|
|
|
|
dev = [
|
2026-03-06 14:30:10 +08:00
|
|
|
"pyarmor",
|
|
|
|
|
"pyinstaller",
|
2026-01-31 16:00:12 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
|
|
|
packages = ["src/{{ cookiecutter.project_name }}"]
|
|
|
|
|
|
|
|
|
|
[project.scripts]
|
2026-01-31 22:25:11 +08:00
|
|
|
build = "{{ cookiecutter.project_name }}.scripts.build:main"
|
2026-02-02 13:48:53 +08:00
|
|
|
serve = "{{ cookiecutter.project_name }}:serve"
|