public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-engineio] epel9: Conditionalize eventlet integration tests
Date: Mon, 28 Sep 2026 06:10:35 GMT	[thread overview]
Message-ID: <179057583571.1.10118287337052721585.rpms-python-engineio-87e6d4af020e@fedoraproject.org> (raw)

            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}

                 reply	other threads:[~2026-09-28  6:10 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179057583571.1.10118287337052721585.rpms-python-engineio-87e6d4af020e@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox