Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-aiohttp for openSUSE:Factory checked in at 2023-04-27 19:59:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-aiohttp (Old) and /work/SRC/openSUSE:Factory/.python-aiohttp.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiohttp" Thu Apr 27 19:59:58 2023 rev:34 rq:1083129 version:3.8.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-aiohttp/python-aiohttp.changes 2023-04-22 22:03:12.070199599 +0200 +++ /work/SRC/openSUSE:Factory/.python-aiohttp.new.1533/python-aiohttp.changes 2023-04-27 19:59:59.385592302 +0200 @@ -1,0 +2,18 @@ +Wed Apr 26 07:35:37 UTC 2023 - Daniel Garcia <daniel.gar...@suse.com> + +- Add Update-update_query-calls-to-work-with-latest-yarl.patch to fix + problems with latest python-yarl +- Delete aiohttp-pr7057-bump-charset-normalizer.patch not needed + anymore +- Update to 3.8.4: + * Fixed incorrectly overwriting cookies with the same name and + domain, but different path. (#6638) + * Fixed ConnectionResetError not being raised after client + disconnection in SSL environments. (#7180) + +------------------------------------------------------------------- +Sun Apr 23 22:42:27 UTC 2023 - Matej Cepl <mc...@suse.com> + +- Move documentation into the main package for SLE15 + +------------------------------------------------------------------- Old: ---- aiohttp-3.8.3.tar.gz aiohttp-pr7057-bump-charset-normalizer.patch New: ---- Update-update_query-calls-to-work-with-latest-yarl.patch aiohttp-3.8.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-aiohttp.spec ++++++ --- /var/tmp/diff_new_pack.OQGci0/_old 2023-04-27 20:00:00.209597147 +0200 +++ /var/tmp/diff_new_pack.OQGci0/_new 2023-04-27 20:00:00.213597170 +0200 @@ -21,16 +21,16 @@ %bcond_with docs %{?sle15_python_module_pythons} Name: python-aiohttp -Version: 3.8.3 +Version: 3.8.4 Release: 0 Summary: Asynchronous HTTP client/server framework License: Apache-2.0 URL: https://github.com/aio-libs/aiohttp Source: https://files.pythonhosted.org/packages/source/a/aiohttp/aiohttp-%{version}.tar.gz -# PATCH-FIX-UPSTREAM aiohttp-pr7057-bump-charset-normalizer.patch gh#aio-libs/aiohttp#7057 -Patch0: aiohttp-pr7057-bump-charset-normalizer.patch # PATCH-FIX-OPENSUSE py3109-compat.patch Patch1: py3109-compat.patch +# PATCH-FIX-UPSTREAM Update-update_query-calls-to-work-with-latest-yarl.patch gh#aio-libs/aiohttp#7260 +Patch2: Update-update_query-calls-to-work-with-latest-yarl.patch # SECTION build requirements BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.6} @@ -94,9 +94,6 @@ # /SECTION %python_subpackages -%package -n %{name}-doc -Summary: Documentation files for %{name} - %description Asynchronous HTTP client/server framework for Python. @@ -104,6 +101,9 @@ - Supports both client and server WebSockets out-of-the-box. - Web-server has middleware and pluggable routing. +%package -n %{name}-doc +Summary: Documentation files for %{name} + %description -n %{name}-doc HTML documentation on the API and examples for %{name}. @@ -156,7 +156,9 @@ %{python_sitearch}/aiohttp-%{version}*-info %if %{with docs} +%if 0%{?suse_version} > 1500 %files -n %{name}-doc +%endif %doc docs/_build/html %endif ++++++ Update-update_query-calls-to-work-with-latest-yarl.patch ++++++ >From f984bea2a14c11cb5560aa02263126ed5e1d68bc Mon Sep 17 00:00:00 2001 From: Daniel Garcia Moreno <daniel.gar...@suse.com> Date: Wed, 26 Apr 2023 09:27:18 +0200 Subject: [PATCH] Update update_query calls to work with latest yarl This patch pass "{}" when params is "None" to the url.update_query to avoid setting the url params to None. Related to this change in yarl: https://github.com/aio-libs/yarl/commit/dd86b3435093b9ca251ecb7831346b92a3f16b25 Fix https://github.com/aio-libs/aiohttp/issues/7259 --- aiohttp/client.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) Index: aiohttp-3.8.4/aiohttp/client.py =================================================================== --- aiohttp-3.8.4.orig/aiohttp/client.py +++ aiohttp-3.8.4/aiohttp/client.py @@ -460,7 +460,7 @@ class ClientSession: ] for trace in traces: - await trace.send_request_start(method, url.update_query(params), headers) + await trace.send_request_start(method, url.update_query(params or {}), headers) timer = tm.timer() try: @@ -578,7 +578,7 @@ class ClientSession: for trace in traces: await trace.send_request_redirect( - method, url.update_query(params), headers, resp + method, url.update_query(params or {}), headers, resp ) redirects += 1 @@ -630,7 +630,7 @@ class ClientSession: headers.pop(hdrs.AUTHORIZATION, None) url = parsed_url - params = None + params = {} resp.release() continue @@ -653,7 +653,7 @@ class ClientSession: for trace in traces: await trace.send_request_end( - method, url.update_query(params), headers, resp + method, url.update_query(params or {}), headers, resp ) return resp @@ -666,7 +666,7 @@ class ClientSession: for trace in traces: await trace.send_request_exception( - method, url.update_query(params), headers, e + method, url.update_query(params or {}), headers, e ) raise ++++++ aiohttp-3.8.3.tar.gz -> aiohttp-3.8.4.tar.gz ++++++ /work/SRC/openSUSE:Factory/python-aiohttp/aiohttp-3.8.3.tar.gz /work/SRC/openSUSE:Factory/.python-aiohttp.new.1533/aiohttp-3.8.4.tar.gz differ: char 5, line 1 ++++++ py3109-compat.patch ++++++ --- /var/tmp/diff_new_pack.OQGci0/_old 2023-04-27 20:00:00.289597617 +0200 +++ /var/tmp/diff_new_pack.OQGci0/_new 2023-04-27 20:00:00.293597641 +0200 @@ -1,7 +1,7 @@ -Index: aiohttp-3.8.3/tests/test_client_request.py +Index: aiohttp-3.8.4/tests/test_client_request.py =================================================================== ---- aiohttp-3.8.3.orig/tests/test_client_request.py -+++ aiohttp-3.8.3/tests/test_client_request.py +--- aiohttp-3.8.4.orig/tests/test_client_request.py ++++ aiohttp-3.8.4/tests/test_client_request.py @@ -2,6 +2,7 @@ import asyncio import hashlib import io @@ -14,7 +14,7 @@ Fingerprint, _merge_ssl_params, ) --from aiohttp.helpers import PY_310 +-from aiohttp.helpers import PY_311 from aiohttp.test_utils import make_mocked_coro @@ -22,15 +22,15 @@ @pytest.mark.xfail( -- PY_310, +- PY_311, + sys.version_info >= (3, 10) and sys.version_info < (3, 10, 9), reason="No idea why ClientRequest() is constructed out of loop but " "it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, -Index: aiohttp-3.8.3/tests/test_streams.py +Index: aiohttp-3.8.4/tests/test_streams.py =================================================================== ---- aiohttp-3.8.3.orig/tests/test_streams.py -+++ aiohttp-3.8.3/tests/test_streams.py +--- aiohttp-3.8.4.orig/tests/test_streams.py ++++ aiohttp-3.8.4/tests/test_streams.py @@ -4,6 +4,7 @@ import abc import asyncio import gc @@ -43,7 +43,7 @@ from re_assert import Matches from aiohttp import streams --from aiohttp.helpers import PY_310 +-from aiohttp.helpers import PY_311 DATA = b"line1\nline2\nline3\n" @@ -51,15 +51,15 @@ await stream._wait("test") @pytest.mark.xfail( -- PY_310, +- PY_311, + sys.version_info >= (3, 10) and sys.version_info < (3, 10, 9), reason="No idea why ClientRequest() is constructed out of loop but " "it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, -Index: aiohttp-3.8.3/tests/test_web_app.py +Index: aiohttp-3.8.4/tests/test_web_app.py =================================================================== ---- aiohttp-3.8.3.orig/tests/test_web_app.py -+++ aiohttp-3.8.3/tests/test_web_app.py +--- aiohttp-3.8.4.orig/tests/test_web_app.py ++++ aiohttp-3.8.4/tests/test_web_app.py @@ -1,12 +1,13 @@ import asyncio import gc @@ -70,7 +70,7 @@ from aiohttp import log, web from aiohttp.abc import AbstractAccessLogger, AbstractRouter --from aiohttp.helpers import DEBUG, PY_36, PY_310 +-from aiohttp.helpers import DEBUG, PY_36, PY_311 +from aiohttp.helpers import DEBUG, PY_36 from aiohttp.test_utils import make_mocked_coro from aiohttp.typedefs import Handler @@ -79,7 +79,7 @@ @pytest.mark.xfail( -- PY_310, +- PY_311, - reason="No idea why _set_loop() is constructed out of loop " - "but it calls `asyncio.get_event_loop()`", + sys.version_info >= (3, 10) and sys.version_info < (3, 10, 9),