Date: Friday, April 14, 2023 @ 18:58:19
Author: jelle
Revision: 1446080
archrelease: copy trunk to community-staging-any
Added:
python-opentracing/repos/community-staging-any/PKGBUILD
(from rev 1446078, python-opentracing/trunk/PKGBUILD)
python-opentracing/repos/community-staging-any/python-3.11-compat.patch
(from rev 1446078, python-opentracing/trunk/python-3.11-compat.patch)
Deleted:
python-opentracing/repos/community-staging-any/PKGBUILD
--------------------------+
PKGBUILD | 66 ++++++++++++++++++++++++---------------------
python-3.11-compat.patch | 42 ++++++++++++++++++++++++++++
2 files changed, 78 insertions(+), 30 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-04-14 18:58:16 UTC (rev 1446079)
+++ PKGBUILD 2023-04-14 18:58:19 UTC (rev 1446080)
@@ -1,30 +0,0 @@
-# Maintainer: Felix Yan <[email protected]>
-
-pkgname=python-opentracing
-pkgver=2.4.0
-pkgrel=4
-pkgdesc="OpenTracing API for Python"
-url="https://github.com/opentracing/opentracing-python"
-license=('Apache')
-arch=('any')
-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')
-
-build() {
- cd opentracing-python-$pkgver
- python setup.py build
-}
-
-check() {
- cd opentracing-python-$pkgver
- pytest tests
- python -m testbed
-}
-
-package() {
- cd opentracing-python-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1
-}
Copied: python-opentracing/repos/community-staging-any/PKGBUILD (from rev
1446078, python-opentracing/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-04-14 18:58:19 UTC (rev 1446080)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-opentracing
+pkgver=2.4.0
+pkgrel=5
+pkgdesc="OpenTracing API for Python"
+url="https://github.com/opentracing/opentracing-python"
+license=('Apache')
+arch=('any')
+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"
"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
+}
+
+check() {
+ cd opentracing-python-$pkgver
+ pytest tests
+ python -m testbed
+}
+
+package() {
+ cd opentracing-python-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
Copied: python-opentracing/repos/community-staging-any/python-3.11-compat.patch
(from rev 1446078, python-opentracing/trunk/python-3.11-compat.patch)
===================================================================
--- python-3.11-compat.patch (rev 0)
+++ python-3.11-compat.patch 2023-04-14 18:58:19 UTC (rev 1446080)
@@ -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())
+