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