From e15d7ba134f2e76969184dcfa65d8bdbf3383040 Mon Sep 17 00:00:00 2001 From: Luna Date: Thu, 23 May 2024 13:28:00 +0530 Subject: [PATCH] add %check --- python-tox-current-env.spec | 7 +++++++ 1 file changed, 7 insertions(+) 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