Disable tests by default in RHEL builds

RHEL does not include the test dependencies.  This is based on c9s:

dca5fdb5e0
This commit is contained in:
Yaakov Selkowitz 2023-05-16 17:47:00 -04:00
parent c01f448241
commit 794c8daefa

View File

@ -1,11 +1,16 @@
%global srcname urllib3 %global srcname urllib3
# When bootstrapping Python, we cannot test this yet # When bootstrapping Python, we cannot test this yet
# RHEL does not include the test dependencies
%if 0%{?rhel}
%bcond_with tests
%else
%bcond_without tests %bcond_without tests
%endif
Name: python-%{srcname} Name: python-%{srcname}
Version: 1.26.12 Version: 1.26.12
Release: 3%{?dist} Release: 4%{?dist}
Summary: Python HTTP library with thread-safe connection pooling and file post Summary: Python HTTP library with thread-safe connection pooling and file post
License: MIT License: MIT
@ -118,6 +123,9 @@ ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc \
%changelog %changelog
* Tue May 16 2023 Yaakov Selkowitz <yselkowi@redhat.com> - 1.26.12-4
- Disable tests by default in RHEL builds
* Tue May 16 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.26.12-3 * Tue May 16 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 1.26.12-3
- Accomodate the test to the changed behavior of SSLContext.shared_ciphers() in CPython - Accomodate the test to the changed behavior of SSLContext.shared_ciphers() in CPython
- Fixes: rhbz#2203773 - Fixes: rhbz#2203773