diff --git a/python-tox-current-env.spec b/python-tox-current-env.spec index efb9db4..4dc4fd1 100644 --- a/python-tox-current-env.spec +++ b/python-tox-current-env.spec @@ -52,6 +52,13 @@ Use current environment instead of virtualenv for tox testenvs %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# hooks[34].py are imported in hooks.py based on tox version so we have to +# exclude them here. +%pyproject_check_import -e '*.hooks?' +%if %{with tests} +# deselected tests run tox without the options for this plugin and hence they need internet +%pytest -k "not regular and not noquiet_installed_packages[None]" +%endif %files %{python_files} %doc README.rst