[build-system]
requires = ["setuptools>=61", "wheel"]
build-backend = "setuptools.build_meta"

[project]
name = "pygitweb"
version = "0.1.0"
description = "Gitweb reimplementation with FastAPI and Pygit2"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
    "pygittools",
    "fastapi[standard-no-fastapi-cloud-cli]>=0.104.0",
    "uvicorn[standard]>=0.24.0",
    "python-multipart>=0.0.6",
    "jinja2>=3.1.0",
    "orjson>=0.19.0",
    "pygit2>=1.12.0",
    "pydantic-settings>=2.13.0",
    "httpx>=0.27.0",
    "python-ripgrep==0.0.9",
]

[tool.setuptools]
packages = ["pygitweb", "pygitweb.api", "pygitweb.api.plugins"]

[tool.setuptools.package-dir]
pygitweb = "."

[tool.setuptools.package-data]
pygitweb = ["templates/**/*", "static/**/*"]

[tool.uv.sources]
pygittools = { workspace = true }