Date: Monday, April 10, 2023 @ 14:35:38
Author: felixonmars
Revision: 1444449
archrelease: copy trunk to community-staging-any
Added:
python-tenacity/repos/community-staging-any/
python-tenacity/repos/community-staging-any/PKGBUILD
(from rev 1444448, python-tenacity/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-tenacity/repos/community-staging-any/PKGBUILD (from rev 1444448,
python-tenacity/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-10 14:35:38 UTC (rev 1444449)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-tenacity
+pkgver=8.2.2
+_commit=548c5d490187af6f339cbffdd0add38aecc3ecb0
+pkgrel=2
+pkgdesc='Retry code until it succeeeds'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/tenacity'
+depends=('python')
+optdepends=('python-tornado: for Tornado coroutines support')
+makedepends=('git' 'python-setuptools-scm')
+checkdepends=('python-pytest' 'python-tornado' 'python-typeguard')
+source=("git+https://github.com/jd/tenacity.git#commit=$_commit")
+sha512sums=('SKIP')
+
+build() {
+ cd tenacity
+ python setup.py build
+}
+
+check() {
+ cd tenacity
+ pytest
+}
+
+package() {
+ cd tenacity
+ python setup.py install --root="$pkgdir" --optimize=1
+}