Files
docai/pyproject.toml
Breno Zanato Detomini cb3ea98890 refactor: migrate to pyproject.toml and update CLI entry point
• Move dependencies from requirements.txt to pyproject.toml with static
listing
 • Add project.scripts entry for docai CLI app
 • Update main.py to use docai.cli:app instead of main.py
 • Remove obsolete main.py and requirements.txt files

This modernizes packaging and simplifies the CLI setup.
2025-12-01 16:18:15 -03:00

47 lines
831 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "docai"
version = "0.0.0"
requires-python = ">=3.12,<3.14"
dependencies = [
"rich>=14.2",
"typer>=0.20.0",
"langchain>=1.1",
"langchain-openai>=1.1",
"xdg-base-dirs>=6.0.2",
"in_place>=1.0.1",
"tree-sitter>=0.25.2",
"tree-sitter-python>=0.25.0",
"tree-sitter-c>=0.24.1",
"tree-sitter-cpp>=0.23.4",
]
dynamic = []
[project.scripts]
docai = "docai.cli:app"
[tool.hatch.build.targets.wheel]
packages = ["src/docai"]
[tool.hatch.build]
skip-excluded-dirs = true
[tool.hatch.envs.dev]
python = "3.13"
dependencies = [
"coverage[toml]",
"pytest",
"pytest-cov",
"pytest-mock",
"mypy"
]
[tool.mypy]
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true