From 794c8daefaf6fc4b515a5f946d1fdabaf8f7530e Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Tue, 16 May 2023 17:47:00 -0400 Subject: [PATCH] Disable tests by default in RHEL builds RHEL does not include the test dependencies. This is based on c9s: https://gitlab.com/redhat/centos-stream/rpms/python-urllib3/-/commit/dca5fdb5e0f604b971c17f713cd26a987a6f5398 --- python-urllib3.spec | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index 2fc5a82..75a4afa 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -1,11 +1,16 @@ %global srcname urllib3 # 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 +%endif Name: python-%{srcname} Version: 1.26.12 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Python HTTP library with thread-safe connection pooling and file post License: MIT @@ -118,6 +123,9 @@ ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc \ %changelog +* Tue May 16 2023 Yaakov Selkowitz - 1.26.12-4 +- Disable tests by default in RHEL builds + * Tue May 16 2023 Tomáš Hrnčiar - 1.26.12-3 - Accomodate the test to the changed behavior of SSLContext.shared_ciphers() in CPython - Fixes: rhbz#2203773