Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-aiohttp_cors for 
openSUSE:Factory checked in at 2023-01-24 19:44:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-aiohttp_cors (Old)
 and      /work/SRC/openSUSE:Factory/.python-aiohttp_cors.new.32243 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-aiohttp_cors"

Tue Jan 24 19:44:07 2023 rev:4 rq:1060678 version:0.7.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-aiohttp_cors/python-aiohttp_cors.changes  
2022-08-20 20:27:44.561199500 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-aiohttp_cors.new.32243/python-aiohttp_cors.changes
       2023-01-24 20:30:23.531758635 +0100
@@ -1,0 +2,5 @@
+Tue Jan 24 16:49:45 UTC 2023 - Daniel Garcia <[email protected]>
+
+- Add 412.patch to support python 3.11 gh#aio-libs/aiohttp-cors#412
+
+-------------------------------------------------------------------

New:
----
  412.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-aiohttp_cors.spec ++++++
--- /var/tmp/diff_new_pack.INV0Fi/_old  2023-01-24 20:30:24.047761371 +0100
+++ /var/tmp/diff_new_pack.INV0Fi/_new  2023-01-24 20:30:24.051761392 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-aiohttp_cors
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
 #
 
 
-%{?!python_module:%define python_module() python3-%{**}}
 %define skip_python2 1
 Name:           python-aiohttp_cors
 Version:        0.7.0
@@ -29,6 +28,8 @@
 Patch0:         0001-Fix-tests.patch
 Patch1:         0001-215-fixing-exception-message-216.patch
 Patch2:         278.patch
+# PATCH-FIX-UPSTREAM 412.patch gh#aio-libs/aiohttp-cors#412
+Patch3:         412.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros

++++++ 412.patch ++++++
>From 1eb2226aaf664d0be746753a32f82ee2e04c2f0b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <[email protected]>
Date: Tue, 1 Mar 2022 15:31:54 +0100
Subject: [PATCH] Replace @asyncio.coroutine decorator with async def

In Python 3.11 @asyncio.coroutine decorator was removed and it should
be replaced with async def call.

Fixes: #280
---
 tests/unit/test_cors_config.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/unit/test_cors_config.py b/tests/unit/test_cors_config.py
index 817410e..9fe1052 100644
--- a/tests/unit/test_cors_config.py
+++ b/tests/unit/test_cors_config.py
@@ -29,8 +29,7 @@ async def _handler(request):
 
 class _View(web.View, CorsViewMixin):
 
-    @asyncio.coroutine
-    def get(self):
+    async def get(self):
         return web.Response(text="Done")
 
 

Reply via email to