[project]
name = "xmpp-api"
version = "0.1.3"
description = "A Discord-like API for XMPP bots"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
    # Config
    "pydantic",
    "pydantic-yaml",

    # Web service
    "fastapi[standard]",
    "sqlmodel",

    # XMPP
    "slixmpp@git+https://codeberg.org/poezio/slixmpp"
]

[project.optional-dependencies]
# For connecting to Postgres databases
postgres = [
    "psycopg2>=2.9.10"
]

# Development tooling
dev = [
    "ruff>=0.11.6",
    "black>=25.1.0",
    "mypy>=1.15.0",
    "bandit>=1.8.3"
]

[project.scripts]
xmpp-api-useradd = "xmpp_api.cli.add_user:main"

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

[tool.hatch.metadata]
allow-direct-references = true