From 9a245c1e0c5bf9fad77390daa54f0668f19c75cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 25 Jul 2023 13:55:24 +0200 Subject: [PATCH] Pin Cython < 3 at least until we upgrade to lxml 5+ --- python-lxml.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-lxml.spec b/python-lxml.spec index fb91a3a..a2ce417 100644 --- a/python-lxml.spec +++ b/python-lxml.spec @@ -68,6 +68,8 @@ Python 3 version. %autosetup -n lxml-%{version} -p1 # Don't run html5lib tests --without extras %{!?without_extras:rm src/lxml/html/tests/test_html5parser.py} +# lxml 4.9 is not yet ready for Cython 3 +sed -Ei 's/Cython>=([^,]+)/Cython>=\1,<3/' requirements.txt %generate_buildrequires %pyproject_buildrequires -x source%{?with_extras:,cssselect,html5,htmlsoup}