From 32a3b5613fe1ed7a68274548290d49bdd3bbffe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 5 Sep 2024 17:36:08 +0200 Subject: [PATCH] CI: Use flit_core in python-entrypoints.spec for EL10 compatibility --- tests/python-entrypoints.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/python-entrypoints.spec b/tests/python-entrypoints.spec index 15c518e..f4876f6 100644 --- a/tests/python-entrypoints.spec +++ b/tests/python-entrypoints.spec @@ -11,7 +11,7 @@ BuildArch: noarch %description This package contains one .py module -Building this tests the flit build backend. +Building this tests the flit(_core) build backend. This package also has no explicit BuildRequires for python or the macros, testing the minimal implementation of %%pyproject_buildrequires from pyproject-srpm-macros. @@ -26,6 +26,10 @@ Summary: %{summary} %prep %autosetup -p1 -n %{pypi_name}-%{version} +%if 0%{?rhel} +# force the flit-core build backend, as that is available rather than full flit +sed -i 's/"flit/"flit_core/' pyproject.toml +%endif %generate_buildrequires