diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec index eec4417..24f8cf9 100644 --- a/python-tox-current-env.spec +++ b/python-tox-current-env.spec @@ -46,8 +46,10 @@ The tox-current-env plugin allows to run tests in current Python environment. %check # the tests currently only work within actual tox and with various Python -# versions installed, so we skip them and do an import check only instead: -%pyproject_check_import +# versions installed, so we skip them and do an import check only instead. +# hooks[34].py are imported in hooks.py based on tox version so we have to +# exclude them here. +%pyproject_check_import -e '*.hooks?' %files -n python%{python3_pkgversion}-%{pypi_name} -f %{pyproject_files}