build: fix tox environment creation with the latest updates

This commit is contained in:
2025-05-08 14:04:25 +03:00
parent 9e346530f2
commit 38571eba04

View File

@ -1,6 +1,6 @@
[tox] [tox]
envlist = check, tests envlist = check, tests
isolated_build = True isolated_build = true
labels = labels =
release = version, docs, publish release = version, docs, publish
dependencies = -e .[journald,pacman,s3,shell,stats,validator,web] dependencies = -e .[journald,pacman,s3,shell,stats,validator,web]
@ -27,7 +27,9 @@ description = Run common checks like linter, mypy, etc
deps = deps =
{[tox]dependencies} {[tox]dependencies}
-e .[check] -e .[check]
pip_pre = true
setenv = setenv =
CFLAGS="-Wno-unterminated-string-initialization"
MYPYPATH=src MYPYPATH=src
commands = commands =
autopep8 --exit-code --max-line-length 120 -aa -i -j 0 -r "src/{[tox]project_name}" "tests/{[tox]project_name}" autopep8 --exit-code --max-line-length 120 -aa -i -j 0 -r "src/{[tox]project_name}" "tests/{[tox]project_name}"
@ -65,7 +67,7 @@ description = Generate html documentation
deps = deps =
{[tox]dependencies} {[tox]dependencies}
-e .[docs] -e .[docs]
recreate = True recreate = true
commands = commands =
sphinx-build -b html -a -j auto -W docs {envtmpdir}{/}html sphinx-build -b html -a -j auto -W docs {envtmpdir}{/}html
@ -89,6 +91,7 @@ description = Run tests
deps = deps =
{[tox]dependencies} {[tox]dependencies}
-e .[tests] -e .[tests]
pip_pre = true
commands = commands =
pytest {posargs} pytest {posargs}