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 2022-12-12 18:59:12 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-aiohttp (Old) and /work/SRC/openSUSE:Factory/.python-aiohttp.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-aiohttp" Mon Dec 12 18:59:12 2022 rev:30 rq:1042420 version:3.8.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-aiohttp/python-aiohttp.changes 2022-11-09 12:56:18.515966761 +0100 +++ /work/SRC/openSUSE:Factory/.python-aiohttp.new.1835/python-aiohttp.changes 2022-12-12 18:59:14.571997610 +0100 @@ -1,0 +2,12 @@ +Mon Dec 12 16:16:31 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Update py3109-compat.patch to work with python <= 3.10.8 too. + +------------------------------------------------------------------- +Mon Dec 12 11:26:26 UTC 2022 - Daniel Garcia <daniel.gar...@suse.com> + +- Add py3109-compat.patch to make tests compatible with python 3.10.9. These + tests are not present anymore in upstream master version so this patch could + be removed in future releases. + +------------------------------------------------------------------- New: ---- py3109-compat.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-aiohttp.spec ++++++ --- /var/tmp/diff_new_pack.cDvNlF/_old 2022-12-12 18:59:15.132000764 +0100 +++ /var/tmp/diff_new_pack.cDvNlF/_new 2022-12-12 18:59:15.136000787 +0100 @@ -28,6 +28,8 @@ 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 # SECTION build requirements BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.6} ++++++ py3109-compat.patch ++++++ Index: aiohttp-3.8.3/tests/test_client_request.py =================================================================== --- aiohttp-3.8.3.orig/tests/test_client_request.py +++ aiohttp-3.8.3/tests/test_client_request.py @@ -2,6 +2,7 @@ import asyncio import hashlib import io import os.path +import sys import urllib.parse import zlib from http.cookies import BaseCookie, Morsel, SimpleCookie @@ -19,7 +20,6 @@ from aiohttp.client_reqrep import ( Fingerprint, _merge_ssl_params, ) -from aiohttp.helpers import PY_310 from aiohttp.test_utils import make_mocked_coro @@ -276,7 +276,7 @@ def test_host_header_ipv6_with_port(make @pytest.mark.xfail( - PY_310, + 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 =================================================================== --- aiohttp-3.8.3.orig/tests/test_streams.py +++ aiohttp-3.8.3/tests/test_streams.py @@ -4,6 +4,7 @@ import abc import asyncio import gc import types +import sys from collections import defaultdict from itertools import groupby from unittest import mock @@ -12,7 +13,6 @@ import pytest from re_assert import Matches from aiohttp import streams -from aiohttp.helpers import PY_310 DATA = b"line1\nline2\nline3\n" @@ -84,7 +84,7 @@ class TestStreamReader: await stream._wait("test") @pytest.mark.xfail( - PY_310, + 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 =================================================================== --- aiohttp-3.8.3.orig/tests/test_web_app.py +++ aiohttp-3.8.3/tests/test_web_app.py @@ -1,12 +1,13 @@ import asyncio import gc +import sys from unittest import mock import pytest 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 from aiohttp.test_utils import make_mocked_coro from aiohttp.typedefs import Handler @@ -40,9 +41,9 @@ async def test_set_loop() -> None: @pytest.mark.xfail( - PY_310, - 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), + reason="No idea why ClientRequest() is constructed out of loop but " + "it calls `asyncio.get_event_loop()`", raises=DeprecationWarning, ) def test_set_loop_default_loop() -> None: