From 15b6eb7b16b39365008028c462b6add6e72a4407 Mon Sep 17 00:00:00 2001 From: Parag Nemade Date: Sat, 9 Jul 2022 06:52:41 +0530 Subject: [PATCH] Add %pyproject_check_import to detect runtime errors --- python-rich.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/python-rich.spec b/python-rich.spec index 8669f24..3b605d9 100644 --- a/python-rich.spec +++ b/python-rich.spec @@ -47,6 +47,9 @@ code, tracebacks, and more — out of the box. %pyproject_save_files rich %check +# add below to make sure initial build will catch runtime import errors +%pyproject_check_import + # some tests are skipped so python-rich builds during Python 3.11 mass rebuild # downstream report: https://bugzilla.redhat.com/show_bug.cgi?id=2049619 %pytest -k "not test_inspect_text and not test_inspect_integer_with_methods and not test_log and not test_attrs_broken and not test_inspect_builtin_function"