Files
agent-safe-middleware/pyproject.toml
T
starrrLight f905aa22cc chore(依赖): 调整模型依赖安装方式
将 torch 与 transformers 纳入默认运行依赖,并让 Docker 镜像安装完整项目依赖。
2026-10-15 15:47:19 +08:00

42 lines
896 B
TOML

[build-system]
requires = ["setuptools>=78"]
build-backend = "setuptools.build_meta"
[project]
name = "agent-safe-middleware"
version = "0.1.0"
description = "Lua-first HTTP/SSE safety middleware for Python agents"
requires-python = ">=3.12"
dependencies = [
"fastapi==0.142.4",
"aiohttp==3.14.4",
"PyYAML==6.0.3",
"lupa==2.8",
"uvicorn>=0.35,<1",
"torch>=2.2",
"transformers>=4.51,<5"
]
[project.optional-dependencies]
dev = ["pytest>=8,<10", "pytest-asyncio>=1,<2", "httpx>=0.28,<1", "ruff>=0.14,<1"]
[project.scripts]
agent-safe-middleware = "middleware.cli:main"
[tool.setuptools.packages.find]
include = ["middleware*"]
[tool.setuptools.package-data]
middleware = ["lua/*.lua"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
[tool.ruff]
target-version = "py312"
line-length = 100
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F", "I", "UP", "B"]