From 6b36dd46a43b9b9b23deb8282c136dbedb7d470f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Fri, 10 Feb 2023 20:00:19 +0100 Subject: [PATCH] When not running the tests, at least check the imports --- python-packaging.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-packaging.spec b/python-packaging.spec index 64c4171..be4d504 100644 --- a/python-packaging.spec +++ b/python-packaging.spec @@ -114,8 +114,9 @@ echo '%{python3_sitelib}/packaging*' > %{pyproject_files} %endif -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} %pytest %endif