From 8fbcd522dae3f5150d2842b39fe2663ba82281c1 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 10 Mar 2026 18:03:53 +0000 Subject: [PATCH] Package the use_chardet_on_py3 extra This has the helpful side effect of exercizing the runtime chardet version test at build time. --- python-requests.spec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python-requests.spec b/python-requests.spec index eaeeea1..4797e8a 100644 --- a/python-requests.spec +++ b/python-requests.spec @@ -1,7 +1,7 @@ # When bootstrapping Python, we cannot test this yet # RHEL does not include the test dependencies %bcond tests %{undefined rhel} -# The extras are disabled on RHEL to avoid pysocks and deprecated requests[security] +# The extras are disabled on RHEL to avoid pysocks, chardet, and deprecated requests[security] %bcond extras %[%{undefined rhel} || %{defined eln}] %bcond extradeps %{undefined rhel} @@ -57,12 +57,12 @@ designed to make HTTP requests easy for developers. %if %{with extras} -%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks +%pyproject_extras_subpkg -n python%{python3_pkgversion}-requests security socks use_chardet_on_py3 %endif %generate_buildrequires -%pyproject_buildrequires %{?with_extradeps:-x security,socks} +%pyproject_buildrequires %{?with_extradeps:-x security,socks,use_chardet_on_py3} %prep