From ce957fce6ec82c2e4fbdcec822c971e74c9b5144 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 6 Jun 2023 18:55:35 +0200 Subject: [PATCH] At least check import the Python module when built --without tests --- python-pyproject-hooks.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-pyproject-hooks.spec b/python-pyproject-hooks.spec index 116238c..454f8dc 100644 --- a/python-pyproject-hooks.spec +++ b/python-pyproject-hooks.spec @@ -46,8 +46,9 @@ sed -i "/flake8/d" dev-requirements.txt %pyproject_save_files pyproject_hooks -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} %pytest %endif