From 9100fc98b13cb84144fe6a3679168c71c0ee09b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 14 Sep 2022 16:08:44 +0200 Subject: [PATCH] Relax the minimal tomli version to support Fedora 35 and 36 --- python-tox.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python-tox.spec b/python-tox.spec index d4e6a36..a0e45a4 100644 --- a/python-tox.spec +++ b/python-tox.spec @@ -91,6 +91,11 @@ Obsoletes: python3-tox < 3.24.4-2 %prep %autosetup -p1 -n tox-%{version} +# In https://github.com/tox-dev/tox/pull/2463 upstream insisted on pinning tomli to >=2.0.1. +# However, it works fine with 1.2.3 we have in Fedora 35+36, so we relax the dependency. +# We rely on the Fedora CI to catch problems. +sed -i 's/tomli>=2.0.1/tomli>=1.2.3/' setup.cfg + %generate_buildrequires %pyproject_buildrequires -r %{?with_tests:-x testing}