Date: Friday, April 14, 2023 @ 18:58:06
  Author: jelle
Revision: 1446078

upgpkg: python-opentracing 2.4.0-5: python 3.11 rebuild

Added:
  python-opentracing/trunk/python-3.11-compat.patch
Modified:
  python-opentracing/trunk/PKGBUILD

--------------------------+
 PKGBUILD                 |   12 +++++++++---
 python-3.11-compat.patch |   42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 51 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-14 18:57:55 UTC (rev 1446077)
+++ PKGBUILD    2023-04-14 18:58:06 UTC (rev 1446078)
@@ -2,7 +2,7 @@
 
 pkgname=python-opentracing
 pkgver=2.4.0
-pkgrel=4
+pkgrel=5
 pkgdesc="OpenTracing API for Python"
 url="https://github.com/opentracing/opentracing-python";
 license=('Apache')
@@ -10,9 +10,15 @@
 depends=('python')
 makedepends=('python-setuptools')
 checkdepends=('python-gevent' 'python-mock' 'python-pytest' 'python-tornado')
-source=("https://github.com/opentracing/opentracing-python/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('de5e5a211fd487039e5658fc6303f3521ee038e205d9d1560cb33f3a66fd0de8d666b2adc785fe2683b4993879e5124ba25467feb17fe68b1cbddc0581ca16b3')
+source=("https://github.com/opentracing/opentracing-python/archive/$pkgver/$pkgname-$pkgver.tar.gz";
 "python-3.11-compat.patch")
+sha512sums=('de5e5a211fd487039e5658fc6303f3521ee038e205d9d1560cb33f3a66fd0de8d666b2adc785fe2683b4993879e5124ba25467feb17fe68b1cbddc0581ca16b3'
+            
'920ae7fd81d33957dbc46105a62371022391645a40a23debe52764771f9562e287cae7f3485894bb562ce5bf6f91b6b9ae37a16ff8c1dec6099e235e4fba3dad')
 
+prepare() {
+  cd opentracing-python-$pkgver
+  patch -Np1 -i ${srcdir}/python-3.11-compat.patch
+}
+
 build() {
   cd opentracing-python-$pkgver
   python setup.py build

Added: python-3.11-compat.patch
===================================================================
--- python-3.11-compat.patch                            (rev 0)
+++ python-3.11-compat.patch    2023-04-14 18:58:06 UTC (rev 1446078)
@@ -0,0 +1,42 @@
+From 4cb5d333eabcb05153a586dc1a7db0df555f0453 Mon Sep 17 00:00:00 2001
+From: "Benjamin A. Beasley" <[email protected]>
+Date: Sat, 11 Jun 2022 08:35:03 -0400
+Subject: [PATCH] [email protected]=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