From bafd1c7a9269e54e708fc44f4774b44e1ebc1a88 Mon Sep 17 00:00:00 2001 From: Lumir Balhar Date: Jun 20 2022 13:20:10 +0000 Subject: Allow charset_normalizer 2.1.0 and newer up to 3.0.0 --- diff --git a/python-requests.spec b/python-requests.spec index a9510b6..e454808 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -10,7 +10,7 @@ Name: python-requests Version: 2.27.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: HTTP library, written in Python, for human beings License: ASL 2.0 @@ -84,6 +84,10 @@ sed -i '/#!\/usr\/.*python/d' requests/certs.py # change the docs. Thus, we set pytest not to run doctests at all. sed -i 's/ --doctest-modules//' pytest.ini +# Allow charset_normalizer 2.1.0 and newer up to 3.0.0 +# Backport of: https://github.com/psf/requests/pull/6169 +sed -i "s/charset_normalizer~=2.0.0/charset_normalizer~=2.0/" setup.py + %build %pyproject_wheel @@ -105,6 +109,9 @@ sed -i 's/ --doctest-modules//' pytest.ini %changelog +* Mon Jun 20 2022 Lumír Balhar - 2.27.1-5 +- Allow charset_normalizer 2.1.0 and newer up to 3.0.0 + * Tue Jun 14 2022 Python Maint - 2.27.1-4 - Rebuilt for Python 3.11