public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-engineio] epel9: Conditionalize eventlet integration tests
@ 2026-09-28  6:10 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-28  6:10 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-engineio
            Branch : epel9
            Commit : 87e6d4af020e3f41237068f6012d7c435a2672c3
            Author : Benjamin A. Beasley <code@musicinmybrain.net>
            Date   : 2026-09-24T14:42:02+01:00
            Stats  : +22/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-engineio/c/87e6d4af020e3f41237068f6012d7c435a2672c3?branch=epel9

            Log:
            Conditionalize eventlet integration tests

Keep them enabled, since eventlet still works fine in EPEL9. Backporting
the conditional gives us options and keeps us better aligned with
Fedora.

---
diff --git a/python-engineio.spec b/python-engineio.spec
index 9a1de7e..6a4cd8f 100644
--- a/python-engineio.spec
+++ b/python-engineio.spec
@@ -4,6 +4,9 @@
 # We can generate PDF documentation as a substitute.
 %bcond doc_pdf 1
 
+# Run eventlet integration tests?
+%bcond eventlet 1
+
 Name:           python-engineio
 Version:        4.9.1
 Release:        %autorelease
@@ -94,6 +97,10 @@ awk --assign v='%{version}' '$1 == "version" && $2 == "=" && $3 == v { ok=1 }
 find examples -type f \( -name 'engine.io.js' -o -name 'package-lock.json' \) \
     -print -delete
 
+%if %{without eventlet}
+sed -r -i 's/^([[:blank:]]+)(eventlet)\b/\1# \2/' tox.ini
+%endif
+
 
 %generate_buildrequires
 %pyproject_buildrequires -x client,asyncio_client%{?doc_pdf:,docs} -t
@@ -114,7 +121,21 @@ PYTHONPATH="${PWD}/src" %make_build -C docs latex \
 
 
 %check
-%pytest
+# Since we may skip some tests, let’s do a “smoke test” for completeness. We
+# omit the async drivers for gevent and uwsgi since there are no integration
+# tests for them and they are not otherwise BuildRequires, and we don’t want to
+# add them solely for this purpose.
+%{pyproject_check_import \
+    %{?!with_eventlet:-e engineio.async_drivers.eventlet} \
+    -e engineio.async_drivers.gevent \
+    -e engineio.async_drivers.gevent_uwsgi }
+
+%if %{without eventlet}
+ignore="${ignore-} --ignore=tests/common/test_async_eventlet.py"
+k="${k-}${k+ and }not (TestServer and test_async_mode_eventlet)"
+%endif
+
+%pytest ${ignore-} -k "${k-}"
 
 
 %files -n python3-engineio -f %{pyproject_files}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-28  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-28  6:10 [rpms/python-engineio] epel9: Conditionalize eventlet integration tests Benjamin A. Beasley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox