Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-opentracing for 
openSUSE:Factory checked in at 2023-02-27 12:55:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-opentracing (Old)
 and      /work/SRC/openSUSE:Factory/.python-opentracing.new.31432 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-opentracing"

Mon Feb 27 12:55:31 2023 rev:4 rq:1067868 version:2.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-opentracing/python-opentracing.changes    
2022-03-24 23:00:41.592406503 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-opentracing.new.31432/python-opentracing.changes
 2023-02-27 12:55:32.679487681 +0100
@@ -1,0 +2,6 @@
+Mon Feb 27 03:01:54 UTC 2023 - John Vandenberg <jay...@gmail.com>
+
+- Add pr_159.patch for testing under Python 3.11
+- Add BR python-six needed for Leap 13.4 tests
+
+-------------------------------------------------------------------

New:
----
  pr_159.patch

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

Other differences:
------------------
++++++ python-opentracing.spec ++++++
--- /var/tmp/diff_new_pack.6aI9wu/_old  2023-02-27 12:55:33.075490122 +0100
+++ /var/tmp/diff_new_pack.6aI9wu/_new  2023-02-27 12:55:33.079490147 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-opentracing
 #
-# 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
@@ -28,6 +28,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/o/opentracing/opentracing-%{version}.tar.gz
 # https://github.com/opentracing/opentracing-python/issues/156
 Patch0:         python-opentracing-no-mock.patch
+Patch1:         pr_159.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -38,6 +39,7 @@
 BuildRequires:  %{python_module gevent}
 BuildRequires:  %{python_module pytest-mock}
 BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module six}
 BuildRequires:  %{python_module tornado}
 # /SECTION
 %python_subpackages
@@ -49,6 +51,7 @@
 %prep
 %setup -q -n opentracing-%{version}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %python_build

++++++ pr_159.patch ++++++
>From 4cb5d333eabcb05153a586dc1a7db0df555f0453 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <c...@musicinmybrain.net>
Date: Sat, 11 Jun 2022 08:35:03 -0400
Subject: [PATCH] =?UTF-8?q?Replace=20@asyncio.coroutine=20with=20=E2=80=9C?=
 =?UTF-8?q?async=20def=E2=80=9D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 tests/scope_managers/test_asyncio.py     | 3 +--
 tests/scope_managers/test_contextvars.py | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/scope_managers/test_asyncio.py 
b/tests/scope_managers/test_asyncio.py
index 14079c4..4817f80 100644
--- a/tests/scope_managers/test_asyncio.py
+++ b/tests/scope_managers/test_asyncio.py
@@ -35,8 +35,7 @@ def scope_manager(self):
         return AsyncioScopeManager()
 
     def run_test(self, test_fn):
-        @asyncio.coroutine
-        def async_test_fn():
+        async def async_test_fn():
             test_fn()
         asyncio.get_event_loop().run_until_complete(async_test_fn())
 
diff --git a/tests/scope_managers/test_contextvars.py 
b/tests/scope_managers/test_contextvars.py
index dd1820f..c8c6f61 100644
--- a/tests/scope_managers/test_contextvars.py
+++ b/tests/scope_managers/test_contextvars.py
@@ -36,8 +36,7 @@ def scope_manager(self):
         return ContextVarsScopeManager()
 
     def run_test(self, test_fn):
-        @asyncio.coroutine
-        def async_test_fn():
+        async def async_test_fn():
             test_fn()
         asyncio.get_event_loop().run_until_complete(async_test_fn())
 

Reply via email to