From b49a85b0bebebf796a55128f41c3e84944a8bfa3 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 14 Feb 2023 11:22:09 -0500 Subject: [PATCH] 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. --- python-hatch-vcs.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/python-hatch-vcs.spec b/python-hatch-vcs.spec index 110b7f7..42d54be 100644 --- a/python-hatch-vcs.spec +++ b/python-hatch-vcs.spec @@ -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