|
|
@ -43,6 +43,8 @@ Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%prep
|
|
|
|
%autosetup -n hatch_vcs-%{version}
|
|
|
|
%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
|
|
|
|
%generate_buildrequires
|
|
|
@ -60,7 +62,11 @@ Summary: %{summary}
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
%check
|
|
|
|
%if %{with tests}
|
|
|
|
%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
|
|
|
|
%else
|
|
|
|
%pyproject_check_import
|
|
|
|
%pyproject_check_import
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|