Files
kanbante/pyproject.toml
T
Spark 2060ca949d
CI / test (push) Successful in 1m38s
fix(ci): la collecte des tests échouait sous le binaire pytest
from tests.conftest import ... levait ModuleNotFoundError en CI :
le binaire pytest n'ajoute pas le répertoire courant à sys.path,
contrairement à python -m pytest (utilisé en local, qui masquait le
problème). Correctifs : tests/__init__.py (package), pythonpath=[.]
dans la config pytest, et étape CI en python -m pytest.
Vérifié : 36/36 dans les trois modes d'invocation.
2026-10-11 09:41:15 -04:00

31 lines
741 B
TOML

[project]
name = "kanbante"
version = "0.2.0"
description = "Kanban project manager integrated with Gitea"
requires-python = ">=3.11"
dependencies = [
"fastapi>=0.115",
"uvicorn[standard]>=0.32",
"jinja2>=3.1,<4",
"httpx>=0.28",
"python-dotenv>=1.0",
"python-multipart>=0.0.18",
]
[tool.setuptools.packages.find]
include = ["app*"]
[project.optional-dependencies]
dev = [
"pytest>=8",
"pytest-asyncio>=0.24",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
# Always put the repo root on sys.path: the plain `pytest` binary (CI)
# does not add the CWD, unlike `python -m pytest` — without this,
# `from tests.conftest import ...` fails at collection time in CI.
pythonpath = ["."]