From 4a4614d13ae58ca3cc6640f945f19bc0d26ea671 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 5 Sep 2024 17:40:10 +0200 Subject: [PATCH] CI: Use poetry-core in python-clikit.spec for EL10 compatibility --- tests/python-clikit.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/python-clikit.spec b/tests/python-clikit.spec index 0454c28..d5d2156 100644 --- a/tests/python-clikit.spec +++ b/tests/python-clikit.spec @@ -13,7 +13,7 @@ BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel %description -Tests building with the poetry build backend. +Tests building with the poetry(-core) build backend. %package -n python3-%{pypi_name} @@ -25,6 +25,11 @@ Summary: %{summary} %prep %autosetup -p1 -n %{pypi_name}-%{version} +%if 0%{?rhel} +# force the poetry-core build backend, as that is available rather than full poetry +sed -i 's/"poetry>=0.12"/"poetry-core"/' pyproject.toml +sed -i 's/"poetry.masonry.api"/"poetry.core.masonry.api"/' pyproject.toml +%endif %generate_buildrequires