45 lines
1.1 KiB
TOML
45 lines
1.1 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=75"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "shortstats"
|
|
version = "1.3.0"
|
|
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/*"]
|
|
|
|
[tool.pytest.ini_options]
|
|
testpaths = ["tests"]
|
|
# avertissement interne au client de test de Starlette, sans effet sur l'application
|
|
filterwarnings = ["ignore:Using .httpx. with .starlette.testclient."]
|