[arch-commits] Commit in python-tenacity/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Oct 25 20:13:44 UTC 2019


    Date: Friday, October 25, 2019 @ 20:13:42
  Author: foutrelis
Revision: 519802

archrelease: copy trunk to community-staging-any

Added:
  python-tenacity/repos/community-staging-any/
  python-tenacity/repos/community-staging-any/PKGBUILD
    (from rev 519800, python-tenacity/trunk/PKGBUILD)

----------+
 PKGBUILD |   32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)

Copied: python-tenacity/repos/community-staging-any/PKGBUILD (from rev 519800, python-tenacity/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 20:13:42 UTC (rev 519802)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tenacity
+pkgver=5.1.1
+pkgrel=2
+pkgdesc='Retry code until it succeeeds'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/tenacity'
+depends=('python-six')
+optdepends=('python-tornado: for Tornado coroutines support')
+makedepends=('python-setuptools-scm')
+checkdepends=('python-pytest-runner' 'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jd/tenacity/archive/$pkgver.tar.gz")
+sha512sums=('572abdff0a92fc49f1a0d0edbed301b727b8ec3eed53eb543cb2eb20964db9d75603e81dd143a26df54fa0ee6b189d8a7bbab627782496f673942adf2a2f859d')
+
+export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
+
+build() {
+  cd tenacity-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd tenacity-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd tenacity-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list