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-aiohttp] rawhide: Update to 3.14.4 (close RHBZ#2546012)
Date: Tue, 06 Oct 2026 09:05:35 GMT [thread overview]
Message-ID: <179127753582.1.10334762143832112492.rpms-python-aiohttp-aa894bf4eec2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-aiohttp
Branch : rawhide
Commit : aa894bf4eec2a1a32bb2fdb20eeb2df433da340f
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-10-05T22:20:01+01:00
Stats : +10/-141 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/python-aiohttp/c/aa894bf4eec2a1a32bb2fdb20eeb2df433da340f?branch=rawhide
Log:
Update to 3.14.4 (close RHBZ#2546012)
---
diff --git a/0001-Fix-Cython-3.3.0-compiler-crash-when-compiling-the-W.patch b/0001-Fix-Cython-3.3.0-compiler-crash-when-compiling-the-W.patch
deleted file mode 100644
index 050a767..0000000
--- a/0001-Fix-Cython-3.3.0-compiler-crash-when-compiling-the-W.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-From 110336d7669893d05b21566724caef4f89dc2a6f Mon Sep 17 00:00:00 2001
-From: Georgefifth <yapisaac0@gmail.com>
-Date: Mon, 24 Aug 2026 09:18:43 +0800
-Subject: [PATCH] Fix Cython 3.3.0 compiler crash when compiling the WebSocket
- reader (#13521)
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-## What do these changes do?
-
-Problem: building aiohttp with Cython 3.3.0 crashes in
-`AnalyseDeclarationsTransform` while compiling the WebSocket reader
-(`make cythonize` / `python -m cython -3 --module-name
-aiohttp._websocket.reader_c aiohttp/_websocket/reader_py.py`). The crash
-is a `NoneType` annotation type in Cython's
-`_analyse_target_declaration`, triggered by `ALLOWED_CLOSE_CODES:
-Final[set[int]] = {...}` while the same name is declared `cdef set` in
-`reader_c.pxd`.
-
-Solution: drop the `Final` wrapper from that module-level annotation (a
-bare `set[int]` annotation compiles fine under both Cython 3.2.9 and
-3.3.0, verified in isolation) and remove the now-unused `Final` import.
-With the crash gone, Cython 3.3.0 also rejects `start_pos: int = 0` in
-`WebSocketReader._feed_data` as a redeclaration of the
-`start_pos=Py_ssize_t` local from `reader_c.pxd`, so that annotation is
-dropped too — the `.pxd` declaration already provides the Cython type
-and pure-Python behavior is unchanged.
-
-Result: `reader_c.c` regenerates cleanly with both Cython 3.3.0
-(previously: compiler crash) and Cython 3.2.9 (the pinned version, so no
-regression for current builds), using the exact command from the
-Makefile. WebSocket test suites pass with the pure-Python reader:
-`tests/test_websocket_parser.py` + `test_websocket_data_queue.py` (95
-passed, 2 skipped) and `test_websocket_writer.py` +
-`test_web_websocket.py` (92 passed).
-
-## Are there changes in behavior for the user?
-
-No runtime behavior change. `Final` is only a type-checker hint, and the
-removed local annotation changes nothing in pure-Python mode; the
-generated Cython code still gets `start_pos` typed as `Py_ssize_t` from
-the `.pxd`.
-
-## Is it a substantial burden for the maintainers to support this?
-
-No — three lines removed, no new code paths. It just keeps the existing
-source compatible with newer Cython releases.
-
-## Related issue number
-
-Fixes #13520
-
-## Checklist
-
-- [x] I think the code is well written
-- [ ] Unit tests for the changes exist
-- [ ] Documentation reflects the changes
-- [x] If you provide code modification, please add yourself to
-`CONTRIBUTORS.txt`
- * The format is <Name> <Surname>.
- * Please keep alphabetical order, the file is sorted by names.
-- [x] Add a new news fragment into the `CHANGES/` folder
- * name it `<issue_or_pr_num>.<type>.rst` (e.g. `588.bugfix.rst`)
- * if you don't have an issue number, change it to the pull request
- number after creating the PR
- * `.bugfix`: A bug fix for something the maintainers deemed an
- improper undesired behavior that got corrected to match
- pre-agreed expectations.
----
- CHANGES/13520.bugfix.rst | 5 +++++
- CONTRIBUTORS.txt | 1 +
- aiohttp/_websocket/reader_py.py | 5 ++---
- 3 files changed, 8 insertions(+), 3 deletions(-)
- create mode 100644 CHANGES/13520.bugfix.rst
-
-diff --git a/CHANGES/13520.bugfix.rst b/CHANGES/13520.bugfix.rst
-new file mode 100644
-index 000000000..61d59dc2f
---- /dev/null
-+++ b/CHANGES/13520.bugfix.rst
-@@ -0,0 +1,5 @@
-+Fixed Cython 3.3.0 failing to compile the WebSocket reader: dropped the
-+``Final[...]`` annotation from ``ALLOWED_CLOSE_CODES`` and the ``int``
-+annotation from the local ``start_pos`` in ``WebSocketReader._feed_data``,
-+both of which conflicted with declarations in ``reader_c.pxd`` under
-+Cython 3.3.0 -- by :user:`Georgefifth`.
-diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
-index 4bb43d068..b052d57b2 100644
---- a/CONTRIBUTORS.txt
-+++ b/CONTRIBUTORS.txt
-@@ -146,6 +146,7 @@ Gary Leung
- Gary Wilson Jr.
- Gene Hoffman
- Gennady Andreyev
-+George Fifth
- Georges Dubus
- goingforstudying-ctrl
- Greg Holt
-diff --git a/aiohttp/_websocket/reader_py.py b/aiohttp/_websocket/reader_py.py
-index ff5a5b362..0b0b8ab10 100644
---- a/aiohttp/_websocket/reader_py.py
-+++ b/aiohttp/_websocket/reader_py.py
-@@ -3,7 +3,6 @@
- import asyncio
- import builtins
- from collections import deque
--from typing import Final
-
- from ..base_protocol import BaseProtocol
- from ..compression_utils import ZLibDecompressor
-@@ -19,7 +18,7 @@ from .models import (
- WSMsgType,
- )
-
--ALLOWED_CLOSE_CODES: Final[set[int]] = {int(i) for i in WSCloseCode}
-+ALLOWED_CLOSE_CODES: set[int] = {int(i) for i in WSCloseCode}
-
- # States for the reader, used to parse the WebSocket frame
- # integer values are used so they can be cythonized
-@@ -328,7 +327,7 @@ class WebSocketReader:
- if self._tail:
- data, self._tail = self._tail + data, b""
-
-- start_pos: int = 0
-+ start_pos = 0
- data_len = len(data)
- data_cstr = data
-
---
-2.55.0
-
diff --git a/python-aiohttp.spec b/python-aiohttp.spec
index 9156d83..b1a4273 100644
--- a/python-aiohttp.spec
+++ b/python-aiohttp.spec
@@ -6,7 +6,7 @@
%bcond uvloop 0
Name: python-aiohttp
-Version: 3.14.3
+Version: 3.14.4
Release: %autorelease
Summary: Python HTTP client/server for asyncio
@@ -16,11 +16,6 @@ URL: https://github.com/aio-libs/aiohttp
# present in the PyPI sdist, so we must use the GitHub archive.
Source: %{url}/archive/v%{version}/aiohttp-%{version}.tar.gz
-# Fix Cython 3.3.0 compiler crash when compiling the WebSocket reader
-# https://github.com/aio-libs/aiohttp/commit/fdebfa2b81c7f85c6dccddcbf4ab45d311970b03
-# Cherry-picked on v3.14.3.
-Patch: 0001-Fix-Cython-3.3.0-compiler-crash-when-compiling-the-W.patch
-
BuildSystem: pyproject
BuildOption(generate_buildrequires): %{shrink:
requirements/cython.in
@@ -37,6 +32,7 @@ BuildOption(check): --exclude aiohttp.worker
BuildRequires: make
BuildRequires: gcc
+BuildRequires: tomcli
# Explicit BR needed for %%{py3_shebang_fix} in %%prep, before generated BR’s
BuildRequires: python3-devel
@@ -65,6 +61,8 @@ Recommends: python3-aiohttp+speedups
%prep -a
# Remove bundled llhttp
rm --recursive --verbose vendor/llhttp
+tomcli set pyproject.toml lists delitem project.license-files \
+ vendor/llhttp/LICENSE
%if %{without gunicorn}
%pyproject_patch_dependency gunicorn:ignore
@@ -92,9 +90,12 @@ rm --recursive --verbose vendor/llhttp
%pyproject_patch_dependency pytest-cov:ignore
%pyproject_patch_dependency pytest_codspeed:ignore
%pyproject_patch_dependency mypy:ignore
-# Since we patched out coverage, we must also remove warning filters for it.
+# Patch out pre-load and options for removed pytest-cov, and warning filters
+# for removed coverage.
sed --regexp-extended --in-place \
- 's/^([[:blank:]]*)(ignore:.*:coverage\.)/\1# \2/' setup.cfg
+ --expression='s/^([[:blank:]]*)(-p pytest_cov|--cov|--no-cov)/\1# \2/' \
+ --expression='s/^([[:blank:]]*)(ignore:.*:coverage\.)/\1# \2/' \
+ pytest.ini
# Make sure the source archive does not include any files generated by Cython
grep --recursive --files-with-matches '/\* Generated by Cython' |
diff --git a/sources b/sources
index aae3775..a8626a0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (aiohttp-3.14.3.tar.gz) = 29b1de5386581a20b31d4e6497c3fb07bbf5d020125cb2eef507b0477f461cf528db1d942a469a943cbff4e9f51d490af78cb92666077b46a57d0e7ee1727320
+SHA512 (aiohttp-3.14.4.tar.gz) = 439368504c5c485a16f5db81c36d71e83ed2edd1f376543aca18929e74072db05d5d2e422b19c198ebe783fbb03d716eebbd70cd15fd9661357b07828adc942f
reply other threads:[~2026-10-06 9:05 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=179127753582.1.10334762143832112492.rpms-python-aiohttp-aa894bf4eec2@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