Files
t2a_v2/pyproject.toml
dom 5b58886ebf feat: versioning sémantique (single source of truth)
- Crée src/__version__.py comme source unique de version (2.1.0)
- pyproject.toml utilise dynamic version via setuptools attr
- Affiche la version dans le footer de la sidebar (base.html)
- Ajoute endpoint /health avec version et status

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-08 11:47:44 +01:00

74 lines
1.6 KiB
TOML

[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.backends._legacy:_Backend"
[project]
name = "t2a"
dynamic = ["version"]
description = "Pipeline de codage CIM-10/CCAM automatise pour le PMSI hospitalier"
readme = "README.md"
requires-python = ">=3.11"
authors = [
{ name = "Equipe T2A" },
]
dependencies = [
"pdfplumber>=0.10.0",
"transformers>=4.35.0,<6.0.0",
"torch>=2.1.0",
"protobuf>=3.20.0,<7.0.0",
"regex>=2023.0",
"pydantic>=2.5.0",
"sentencepiece>=0.1.99,<0.3.0",
"edsnlp[ml]>=0.17.0",
"faiss-cpu>=1.7.0",
"sentence-transformers>=2.2.0",
"requests>=2.28.0",
"flask>=3.0.0",
"flask-httpauth>=4.0.0",
"python-dotenv>=1.0.0",
"openpyxl>=3.0.0",
"pandas>=2.0.0",
"PyMuPDF>=1.24.0",
"python-docx>=1.0.0",
"PyYAML>=6.0",
"gunicorn>=22.0.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.0",
"ruff>=0.4.0",
]
[project.scripts]
t2a = "src.main:main"
[tool.setuptools.dynamic]
version = {attr = "src.__version__.__version__"}
[tool.setuptools.packages.find]
include = ["src*"]
[tool.ruff]
target-version = "py311"
line-length = 120
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
addopts = "--strict-markers -x -q"
markers = ["integration: tests requiring Ollama"]
[tool.coverage.run]
source = ["src"]
omit = ["src/viewer/templates/*"]
[tool.coverage.report]
fail_under = 55
show_missing = true
exclude_lines = ["pragma: no cover", "if __name__", "except ImportError"]