[arch-commits] Commit in python-tenacity/trunk (PKGBUILD)

Felix Yan felixonmars at archlinux.org
Sun Nov 12 14:42:25 UTC 2017


    Date: Sunday, November 12, 2017 @ 14:42:24
  Author: felixonmars
Revision: 266365

upgpkg: python-tenacity 4.7.0-1

Modified:
  python-tenacity/trunk/PKGBUILD

----------+
 PKGBUILD |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-12 14:23:33 UTC (rev 266364)
+++ PKGBUILD	2017-11-12 14:42:24 UTC (rev 266365)
@@ -3,7 +3,7 @@
 
 pkgbase=python-tenacity
 pkgname=('python-tenacity' 'python2-tenacity')
-pkgver=4.6.1
+pkgver=4.7.0
 pkgrel=1
 pkgdesc='Retry code until it succeeeds'
 arch=('any')
@@ -11,14 +11,14 @@
 url='https://github.com/jd/tenacity'
 makedepends=('python-setuptools' 'python2-setuptools' 'python2-futures' 'python2-monotonic'
              'python-pbr' 'python2-pbr')
-checkdepends=('python-nose' 'python2-nose')
+checkdepends=('python-nose' 'python2-nose' 'python-tornado' 'python2-tornado')
 source=("$pkgbase-$pkgver.tar.gz::https://github.com/jd/tenacity/archive/$pkgver.tar.gz")
-sha512sums=('1e446db7fa4a69c1a364f1e8880f36c9162ec1a61e3f3b588259b4481a19246ee654f917ed395f2930ddffe949046b57a79547b294e97cb9f8462b223569fe1c')
+sha512sums=('463e85833ec3f860f358e273ecb76df4fad46fdf4294d91e103cef900e4f76f35a34f03038b00d88e2cb2fd2fc910b804e36dcd289d0ea6458fc57458875f839')
 
 prepare() {
   cp -a tenacity-$pkgver{,-py2}
   sed -i '/monotonic/d' tenacity-$pkgver/requirements.txt
-  sed -i 's/from monotonic import monotonic/from time import monotonic/' tenacity-$pkgver/tenacity/{__init__,async}.py
+  sed -i 's/from monotonic import monotonic/from time import monotonic/' tenacity-$pkgver/tenacity/{__init__,async,tornadoweb}.py
 
   export PBR_VERSION=$pkgver
 }
@@ -41,6 +41,7 @@
 
 package_python-tenacity() {
   depends=('python-six')
+  optdepends=('python-tornado: for Tornado coroutines support')
 
   cd tenacity-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
@@ -48,6 +49,7 @@
 
 package_python2-tenacity() {
   depends=('python2-six' 'python2-futures' 'python2-monotonic')
+  optdepends=('python2-tornado: for Tornado coroutines support')
 
   cd tenacity-$pkgver-py2
   python2 setup.py install --root="$pkgdir" --optimize=1



More information about the arch-commits mailing list