62 lines
1.4 KiB
TOML
62 lines
1.4 KiB
TOML
[build-system]
|
|
requires = ["hatchling"]
|
|
build-backend = "hatchling.build"
|
|
|
|
[project]
|
|
name = "llama-http"
|
|
version = "0.1.0"
|
|
description = "HTTP API service wrapping native llama-server for GGUF model inference"
|
|
requires-python = ">=3.10"
|
|
license = "MIT"
|
|
authors = [{ name = "Lilith", email = "dev@atlilith.com" }]
|
|
dependencies = [
|
|
"lilith-service-fastapi-bootstrap>=2.1.0",
|
|
"model-boss>=3.0.0",
|
|
"lilith-service-addresses>=1.0.1",
|
|
"httpx>=0.27.0",
|
|
"sse-starlette>=2.0.0",
|
|
]
|
|
|
|
[project.optional-dependencies]
|
|
dev = [
|
|
"pytest>=8.0",
|
|
"pytest-asyncio>=0.23.0",
|
|
"pytest-cov>=4.0",
|
|
"mypy>=1.0",
|
|
"ruff>=0.1.0",
|
|
]
|
|
|
|
[project.scripts]
|
|
llama-http = "llama_http.__main__:main"
|
|
|
|
[tool.hatch.build.targets.wheel]
|
|
packages = ["src/llama_http"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
asyncio_mode = "auto"
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = true
|
|
warn_return_any = true
|
|
warn_unused_configs = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["lilith_service_fastapi_bootstrap.*", "lilith_service_addresses.*", "model_boss.*"]
|
|
ignore_missing_imports = true
|
|
|
|
[tool.ruff]
|
|
line-length = 100
|
|
target-version = "py311"
|
|
src = ["src", "tests"]
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "N", "W", "UP", "B", "C4", "SIM", "RUF", "PTH", "ERA"]
|
|
ignore = ["E501"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["lilith_*", "llama_http"]
|
|
|
|
[tool.lilith]
|
|
registry = "forgejo"
|