From e5227723da1a7881bdcba5faf16226d5153ac8f8 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Fri, 10 Feb 2023 12:13:28 -0500 Subject: [PATCH] Disable tests by default in RHEL builds This avoids unwanted dependencies (particularly python-hypothesis) in the RHEL buildroot. --- python-attrs.spec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python-attrs.spec b/python-attrs.spec index 664d392..862aab2 100644 --- a/python-attrs.spec +++ b/python-attrs.spec @@ -1,7 +1,7 @@ %global modname attrs -%if 0%{?rhel} && 0%{?rhel} <= 7 -# Can't run tests on EPEL7 due to need for pytest >= 2.8 +%if 0%{?rhel} +# Avoid unwanted/unavailable dependencies in RHEL builds %bcond_with tests %else # Turn the tests off when bootstrapping Python, because pytest requires attrs