[project]
name = "lora-training-worker"
version = "0.1.0"
description = "Host service that runs sd-scripts LoRA training on demand for arbo (in-arbo LoRA training Phase 1, contract §4.1/§2). Fixed-invocation only (INV-T7)."
requires-python = ">=3.11"
dependencies = [
    "fastapi>=0.115",
    "uvicorn[standard]>=0.34",
    "pydantic>=2.9",
]

[project.optional-dependencies]
test = [
    "pytest>=8.0",
    "httpx>=0.27",  # fastapi TestClient
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.build.targets.wheel]
packages = ["worker"]

[tool.pytest.ini_options]
testpaths = ["tests"]
