EPEL9: allow python-setuptools_scm 6.0.1

- Skip test_fallback, as upstream does for Python 2.7, due to the
  downgraded setuptools-scm version.
epel9
Benjamin A. Beasley 2 years ago
parent 3a3f83c332
commit b49a85b0be

@ -43,6 +43,8 @@ Summary: %{summary}
%prep
%autosetup -n hatch_vcs-%{version}
# EPEL9-specific: allow python-setuptools_scm 6.0.1
sed -r -i 's/(setuptools-scm>=6\.)4\.0/\10\.1/' pyproject.toml
%generate_buildrequires
@ -60,7 +62,11 @@ Summary: %{summary}
%check
%if %{with tests}
%pytest
# EPEL9: This test fails with setuptools-scm < 6.4.0. Upstream assumes that
# happens only for Python 2 (and skips the test accordingly), but we have
# allowed setuptools-scm 6.0.1 on Python 3 as well.
k="${k-}${k+ and }not test_fallback"
%pytest -k "${k-}"
%else
%pyproject_check_import
%endif

Loading…
Cancel
Save