shortstats/pyproject.toml
ploush 81ef12a9cd
Some checks failed
build / test (push) Failing after 2m48s
build / images (collector) (push) Has been skipped
build / images (web) (push) Has been skipped
upgrade 1.4.0
2026-11-29 20:43:50 +01:00

49 lines
1.3 KiB
TOML

[build-system]
requires = ["setuptools>=75"]
build-backend = "setuptools.build_meta"
[project]
name = "shortstats"
# numéro calculé à la construction (setup.py, scripts/version.sh), jamais écrit ici
dynamic = ["version"]
description = "Statistiques de Shorts YouTube : relevés de 1 h à 3 ans après la publication, relevé complet à J+7"
requires-python = ">=3.12"
dependencies = [
"psycopg[binary]==3.3.6",
"psycopg-pool==3.3.3",
]
[project.optional-dependencies]
collector = [
"httpx==0.28.1",
]
web = [
"fastapi==0.162.0",
"uvicorn==0.54.0",
"websockets==17.2",
"jinja2==3.1.6",
"argon2-cffi==25.1.0",
"itsdangerous==2.2.0",
"python-multipart==0.0.32",
]
dev = [
"pytest==9.2.0",
"httpx==0.28.1",
]
[project.scripts]
shortstats = "shortstats.cli:main"
[tool.setuptools.packages.find]
where = ["src"]
[tool.setuptools.package-data]
shortstats = ["migrations/*.sql", "web/templates/*.html", "web/static/*", "web/static/vendor/*",
"web/static/js/*.js", "web/static/js/editor/*.js"]
[tool.pytest.ini_options]
testpaths = ["tests"]
# pytester : vérifie l'affichage de la progression (tests/progression.py)
addopts = ["-p", "pytester"]
# avertissement interne au client de test de Starlette, sans effet sur l'application
filterwarnings = ["ignore:Using .httpx. with .starlette.testclient."]