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