File size: 922 Bytes
fa1140b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | [project]
name = "anuma2api"
version = "0.1.0"
description = "Anuma webchat → OpenAI/Anthropic-compatible local API gateway (2api)"
requires-python = ">=3.12"
dependencies = [
"fastapi>=0.115",
"httpx>=0.28",
"pydantic>=2.9",
"python-multipart>=0.0.32",
"tiktoken>=0.8",
"uvicorn[standard]>=0.30",
]
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.23",
"ruff>=0.6",
"anthropic>=0.40",
"openai>=1.50",
]
registrar = [
"curl-cffi>=0.7",
"playwright>=1.48,<1.60",
"camoufox>=0.4",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["app", "registrar"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
testpaths = ["tests"]
pythonpath = ["."]
[tool.ruff]
line-length = 110
target-version = "py312"
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP"]
ignore = ["E501"]
|