Package the use_chardet_on_py3 extra

This has the helpful side effect of exercizing the runtime chardet
version test at build time.
This commit is contained in:
Benjamin A. Beasley 2026-03-10 18:03:53 +00:00
commit 8fbcd522da

View file

@ -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