[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64", "setuptools_scm>=8"]

[project]
authors = [
    {email = "hello@futurehouse.org", name = "FutureHouse technical staff"},
]
classifiers = [
    "Intended Audience :: Developers",
    "License :: OSI Approved :: Apache Software License",
    "Operating System :: OS Independent",
    "Programming Language :: Python :: 3 :: Only",
    "Programming Language :: Python :: 3.11",
    "Programming Language :: Python :: 3.12",
    "Programming Language :: Python :: 3.13",
    "Programming Language :: Python",
    "Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
    "fhaviary>=0.14",  # For MultipleChoiceQuestion
    "fhlmi",
    "ldp>=0.25.2",  # Pin for lmi migration
    "paper-qa>=5.14.0",  # Pin for lmi migration
    "pydantic~=2.0",
    "tenacity",
    "typing-extensions; python_version <= '3.12'",  # For TypeVar default
]
description = "LitQA environment implemented with aviary"
dynamic = ["version"]
name = "aviary.litqa"
readme = "README.md"
requires-python = ">=3.11"

[project.optional-dependencies]
datasets = [
    "datasets>=2.15",  # Lower pin for https://github.com/huggingface/datasets/pull/6404
]
dev = [
    "aviary.litqa[datasets]",
    "paper-qa>=5.29.1",  # Pin for gen_answer's EmptyDocsError, with fix
]

[tool.ruff]
extend = "../../pyproject.toml"

[tool.setuptools.packages.find]
where = ["src"]

[tool.setuptools_scm]
root = "../.."
version_file = "src/aviary/envs/litqa/version.py"
