Allow %check on EL branches, just don't BR pytest-randomly

epel9^2
Miro Hrončok 3 years ago
parent 01ed1aafc4
commit b0740428c0

@ -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

Loading…
Cancel
Save