disabling checks in epel9

epel9
chedi 3 years ago
parent 652ed8d470
commit 1fc8a1806e

@ -47,7 +47,12 @@ Summary: %{summary}
sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py
%generate_buildrequires
%if 0%{?rhel} >= 9
%pyproject_buildrequires
%else
%pyproject_buildrequires -x testing
%endif
%build
@ -59,6 +64,9 @@ sed -r -i '/^[[:blank:]]*.hunter.,[[:blank:]]*$/d' setup.py
%pyproject_save_files pytest_cov
%if 0%{?rhel} >= 9
echo "disabling tests in epel until all the dependencies are satisfied"
%else
%check
k="$(awk 'NR>1 {pre=" and " } { printf "%snot %s", pre, $0 }' <<EOF
test_append_coverage_subprocess
@ -71,7 +79,7 @@ test_subprocess_with_path_aliasing
EOF
)"
%pytest -k "${k}"
%endif
%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE

Loading…
Cancel
Save