diff --git a/python-eventlet.spec b/python-eventlet.spec index 7536cc2..af94c1e 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -5,6 +5,13 @@ scalability by using non-blocking io while at the same time retaining high programmer usability by using coroutines to make the non-blocking io operations appear blocking at the source code level.} +# RHEL9 doesn't have nose, and it won't be added to EPEL9 because it's +# abandoned upstream (and deprecated in Fedora). +# https://bugzilla.redhat.com/show_bug.cgi?id=2041068 +%if %{undefined el9} +%bcond_without tests +%endif + Name: python-%{srcname} Version: 0.33.1 Release: 4%{?dist} @@ -21,8 +28,10 @@ BuildArch: noarch %package -n python3-%{srcname} Summary: %{summary} BuildRequires: python3-devel +%if %{with tests} BuildRequires: python3-nose BuildRequires: python3-pyOpenSSL +%endif %description -n python3-%{srcname} %{_description} @@ -50,10 +59,13 @@ BuildRequires: python3-zmq %pyproject_save_files %{srcname} %check +%if %{with tests} # Disable setting up dns (we have no /etc/resolv.conf in mock export EVENTLET_NO_GREENDNS=yes -# Tests are written only for Python 3 nosetests-%{python3_version} -v -e greendns_test -e socket_test -e test_patcher_existing_locks_locked -e test_017_ssl_zeroreturnerror +%else +%pyproject_check_import -t +%endif %files -n python3-%{srcname} -f %{pyproject_files} %doc README.rst AUTHORS NEWS @@ -66,6 +78,7 @@ nosetests-%{python3_version} -v -e greendns_test -e socket_test -e test_patcher_ * Tue Jul 26 2022 Carl George - 0.33.1-4 - Convert to pyproject macros - Build docs with make +- Disable tests on EPEL9 * Fri Jul 22 2022 Fedora Release Engineering - 0.33.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild