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: Update to 4.8.0 (close RHBZ#2238547)
Date: Mon, 28 Sep 2026 06:10:32 GMT	[thread overview]
Message-ID: <179057583203.1.281515732114696991.rpms-python-engineio-efe938184f73@fedoraproject.org> (raw)

            A new commit has been pushed.

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

            Log:
            Update to 4.8.0 (close RHBZ#2238547)

Use older build system from 4.7.1 for setuptools 53 compatibility.

---
diff --git a/.gitignore b/.gitignore
index eb0dd6b..9e4d0a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
 /python-engineio-4.6.1.tar.gz
 /python-engineio-4.7.0.tar.gz
 /python-engineio-4.7.1.tar.gz
+/python-engineio-4.8.0.tar.gz

diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..374b58c
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,6 @@
+[build-system]
+requires = [
+    "setuptools>=42",
+    "wheel"
+]
+build-backend = "setuptools.build_meta"

diff --git a/python-engineio.spec b/python-engineio.spec
index 5588174..81f3120 100644
--- a/python-engineio.spec
+++ b/python-engineio.spec
@@ -5,14 +5,29 @@
 %bcond doc_pdf 1
 
 Name:           python-engineio
-Version:        4.7.1
+Version:        4.8.0
 Release:        %autorelease
 Summary:        Python Engine.IO server and client
 
 # SPDX
 License:        MIT
 URL:            https://github.com/miguelgrinberg/python-engineio/
-Source:         %{url}/archive/v%{version}/python-engineio-%{version}.tar.gz
+# The PyPI sdist now contains documentation and tests, but it still lacks
+# examples and the CHANGES.md file, so we continue to use a GitHub archive.
+Source0:        %{url}/archive/v%{version}/python-engineio-%{version}.tar.gz
+# Upstream switched to pyproject.toml metadata, and we want to keep up for
+# security-update reasons, but EL9’s setuptools is too old (version 53, need
+# version 61). Therefore we maintain a downstream copy of version 4.7.1’s build
+# files, updated as needed. Messy but workable.
+#
+# https://github.com/miguelgrinberg/python-engineio/blob/v4.7.1/setup.py
+Source1:        https://github.com/miguelgrinberg/python-engineio/raw/refs/tags/v4.7.1/pyproject.toml
+# https://github.com/miguelgrinberg/python-engineio/blob/v4.7.1/setup.py
+Source2:        https://github.com/miguelgrinberg/python-engineio/raw/refs/tags/v4.7.1/setup.py
+# Derived from
+# https://github.com/miguelgrinberg/python-engineio/blob/v4.7.1/setup.cfg;
+# needs to be updated for each release!
+Source3:        setup.cfg
 
 # Downstream-only: patch out test coverage analysis
 # https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
@@ -25,7 +40,6 @@ BuildRequires:  python3-devel
 # Documentation
 %if %{with doc_pdf}
 BuildRequires:  make
-BuildRequires:  python3dist(sphinx)
 BuildRequires:  python3-sphinx-latex
 BuildRequires:  latexmk
 %endif
@@ -58,6 +72,14 @@ Summary:        Documentation for python-engineio
 %prep
 %autosetup -p1
 
+# Use an updated copy of the pre-4.8.0 build system for setuptools 53
+# compatibility.
+cp --preserve '%{SOURCE1}' '%{SOURCE2}' '%{SOURCE3}' .
+# Verify that the version field was updated in the downstream metadata.
+awk --assign v='%{version}' '$1 == "version" && $2 == "=" && $3 == v { ok=1 }
+    END { if (!ok) { print "Wrong version in setup.cfg"; exit 1 } }' \
+    setup.cfg
+
 # Remove pre-compiled/pre-minified browser build of
 # https://github.com/socketio/engine.io from the examples. This makes them less
 # useful, but satisfies
@@ -74,7 +96,7 @@ find examples -type f \( -name 'engine.io.js' -o -name 'package-lock.json' \) \
 
 
 %generate_buildrequires
-%pyproject_buildrequires -x client,asyncio_client -t
+%pyproject_buildrequires -x client,asyncio_client%{?doc_pdf:,docs} -t
 
 
 %build

diff --git a/setup.cfg b/setup.cfg
new file mode 100644
index 0000000..ebe2177
--- /dev/null
+++ b/setup.cfg
@@ -0,0 +1,39 @@
+[metadata]
+name = python-engineio
+version = 4.8.0
+author = Miguel Grinberg
+author_email = miguel.grinberg@gmail.com
+description = Engine.IO server and client for Python
+long_description = file: README.md
+long_description_content_type = text/markdown
+url = https://github.com/miguelgrinberg/python-engineio
+project_urls =
+    Bug Tracker = https://github.com/miguelgrinberg/python-engineio/issues
+classifiers =
+    Environment :: Web Environment
+    Intended Audience :: Developers
+    Programming Language :: Python :: 3
+    License :: OSI Approved :: MIT License
+    Operating System :: OS Independent
+
+[options]
+zip_safe = False
+include_package_data = True
+package_dir =
+    = src
+packages = find:
+python_requires = >=3.6
+install_requires =
+    simple-websocket >= 0.10.0
+
+[options.packages.find]
+where = src
+
+[options.extras_require]
+client =
+    requests >= 2.21.0
+    websocket-client >= 0.54.0
+asyncio_client =
+    aiohttp >= 3.4
+docs =
+    sphinx

diff --git a/setup.py b/setup.py
new file mode 100644
index 0000000..b908cbe
--- /dev/null
+++ b/setup.py
@@ -0,0 +1,3 @@
+import setuptools
+
+setuptools.setup()

diff --git a/sources b/sources
index cb041cf..f88470b 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (python-engineio-4.7.1.tar.gz) = fa71efb885628b9337d3f6d20cc92ac990fadb5fafdb020904e6e2bb452957a437f6467724897729f2f9e30eb713d8ce88f254fbfe49258fa33ba38572206289
+SHA512 (python-engineio-4.8.0.tar.gz) = 351d982bf729a9747215d5845d9b547ecc5dd031cb3c32cd98d75b42374455e625ba0a8f7edf0db63354f7d905eedeb749145a851f8744571f0f2ab9d1142b47

                 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=179057583203.1.281515732114696991.rpms-python-engineio-efe938184f73@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