diff --git a/python-tomli-w.spec b/python-tomli-w.spec index 1cb4b1f..b705703 100644 --- a/python-tomli-w.spec +++ b/python-tomli-w.spec @@ -37,7 +37,10 @@ sed -i '/pytest-randomly/d' tests/requirements.txt %generate_buildrequires -%pyproject_buildrequires %{?with_check:-t} +# We intentionally don't use tox here to avoid a dependency on it in ELN/RHEL, +# the tox deps only list -r tests/requirements.txt anyway and sometimes +# did not run any tests at all. +%pyproject_buildrequires %{?with_check:tests/requirements.txt} %build @@ -52,7 +55,7 @@ sed -i '/pytest-randomly/d' tests/requirements.txt %check %pyproject_check_import tomli_w %if %{with check} -%tox +%pytest -v %endif