[project]
name = "dspace-statistics-api"
version = "1.4.5-dev"
description = "A simple REST API to expose Solr view and download statistics for items, communities, and collections in a DSpace repository."
authors = [
    { name = "Alan Orth", email = "git@mjanja.mozmail.com" }
]

requires-python = ">= 3.9"

license = "GPL-3.0-only"
license-files = ["LICENSE.txt"]
dependencies = [
    "gunicorn==23.0.*",
    "falcon==4.0.*",
    "psycopg==3.2.*",
    "requests==2.32.*",
    "falcon-swagger-ui",
]

[project.urls]
repository = "https://github.com/ilri/dspace-statistics-api"
homepage = "https://github.com/ilri/dspace-statistics-api"

[tool.uv.sources]
falcon-swagger-ui = { git = "https://github.com/alanorth/falcon-swagger-ui", rev = "falcon3-update-swagger-ui" }

# So uv doesn't fall back to setuptools
# See: https://packaging.python.org/en/latest/tutorials/packaging-projects/#choosing-build-backend
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
    "flake8==7.1.*",
    "isort==5.13.*",
    "pytest==8.3.*",
]

[tool.isort]
profile = "black"
line_length=88