变更内容: - 删除 `src` 子目录,将模块引用路径从 `src.functional_scaffold` 更新为 `functional_scaffold`。 - 修改相关代码、文档、测试用例及配置文件中的路径引用,包括 `README.md`、`Dockerfile`、`uvicorn` 启动命令等。 - 优化项目目录结构,提升代码维护性和可读性。
52 lines
1.0 KiB
TOML
52 lines
1.0 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=65.0", "wheel"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "functional-scaffold"
|
|
version = "1.0.0"
|
|
description = "算法工程化 Serverless 脚手架"
|
|
requires-python = ">=3.9"
|
|
authors = [
|
|
{name = "FunctionalScaffold Team"}
|
|
]
|
|
readme = "README.md"
|
|
|
|
dependencies = [
|
|
"fastapi>=0.109.0",
|
|
"uvicorn[standard]>=0.27.0",
|
|
"pydantic>=2.5.0",
|
|
"pydantic-settings>=2.0.0",
|
|
"prometheus-client>=0.19.0",
|
|
"python-json-logger>=2.0.7",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=7.4.0",
|
|
"pytest-asyncio>=0.21.0",
|
|
"pytest-cov>=4.1.0",
|
|
"httpx>=0.26.0",
|
|
"black>=23.12.0",
|
|
"ruff>=0.1.0",
|
|
]
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
target-version = ['py39']
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py39"
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
python_files = ["test_*.py"]
|
|
python_classes = ["Test*"]
|
|
python_functions = ["test_*"]
|
|
addopts = "-v --strict-markers"
|
|
pythonpath = ["src"]
|