From b0740428c09fb2a5ca536d49c97be031b815c77b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 7 Mar 2022 21:08:30 +0100 Subject: [PATCH] Allow %check on EL branches, just don't BR pytest-randomly --- python-tomli-w.spec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/python-tomli-w.spec b/python-tomli-w.spec index a49adca..71860b8 100644 --- a/python-tomli-w.spec +++ b/python-tomli-w.spec @@ -1,9 +1,4 @@ -%if 0%{?rhel} -# many missing test dependencies that we don't want to maintain -%bcond_with check -%else %bcond_without check -%endif Name: python-tomli-w Version: 0.4.0 @@ -34,6 +29,11 @@ Summary: %{summary} %autosetup -p1 -n tomli-w-%{version} # Measuring coverage is discouraged in Python packaging guidelines: sed -i '/pytest-cov/d' tests/requirements.txt +# This testing dependency is optional and we don't have it in (EP)EL, +# it has many missing transitive dependencies that we don't want to maintain +%if 0%{?rhel} +sed -i '/pytest-randomly/d' tests/requirements.txt +%endif %generate_buildrequires