Date: Sunday, April 9, 2023 @ 18:29:11
Author: felixonmars
Revision: 1443418
archrelease: copy trunk to community-staging-any
Added:
python-opentracing/repos/community-staging-any/
python-opentracing/repos/community-staging-any/PKGBUILD
(from rev 1443417, python-opentracing/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-opentracing/repos/community-staging-any/PKGBUILD (from rev
1443417, python-opentracing/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 18:29:11 UTC (rev 1443418)
@@ -0,0 +1,30 @@
+# 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
+}