From 44da404e852dedc099783ebd9b16dc6a07a9fb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 7 Jun 2023 00:45:23 +0200 Subject: [PATCH] At least run an import check when built --without tests (e.g. in RHEL) --- python-requests.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python-requests.spec b/python-requests.spec index 63c8792..1213499 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -85,8 +85,9 @@ sed -i 's/ --doctest-modules//' pyproject.toml %pyproject_save_files requests -%if %{with tests} %check +%pyproject_check_import +%if %{with tests} %pytest -v %endif