From 0598f683e33d55f4d56bff899ce39205f0b97159 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Wed, 20 Apr 2022 10:36:27 +0200 Subject: [PATCH] Exclude hooks[34] from check import --- python-tox-current-env.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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}