Exclude hooks[34] from check import

This commit is contained in:
Lumir Balhar
2022-04-20 10:36:27 +02:00
parent 8ec0601a38
commit 0598f683e3
+4 -2
View File
@@ -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}