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

Felix Yan felixonmars at archlinux.org
Tue Mar 19 06:30:07 UTC 2019


    Date: Tuesday, March 19, 2019 @ 06:30:06
  Author: felixonmars
Revision: 442560

upgpkg: python-tenacity 5.0.3-1

remove python2 sibling

Modified:
  python-tenacity/trunk/PKGBUILD

----------+
 PKGBUILD |   43 ++++++++++---------------------------------
 1 file changed, 10 insertions(+), 33 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-19 06:26:47 UTC (rev 442559)
+++ PKGBUILD	2019-03-19 06:30:06 UTC (rev 442560)
@@ -1,7 +1,6 @@
 # Maintainer: Felix Yan <felixonmars at archlinux.org>
 
-pkgbase=python-tenacity
-pkgname=('python-tenacity' 'python2-tenacity')
+pkgname=python-tenacity
 pkgver=5.0.3
 pkgrel=1
 pkgdesc='Retry code until it succeeeds'
@@ -8,48 +7,26 @@
 arch=('any')
 license=('Apache')
 url='https://github.com/jd/tenacity'
-makedepends=('python-setuptools' 'python2-setuptools' 'python2-futures' 'python2-monotonic'
-             'python-pbr' 'python2-pbr')
-checkdepends=('python-pytest-runner' 'python2-pytest-runner' 'python-tornado' 'python2-tornado')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/jd/tenacity/archive/$pkgver.tar.gz")
+depends=('python-six')
+optdepends=('python-tornado: for Tornado coroutines support')
+makedepends=('python-pbr')
+checkdepends=('python-pytest-runner' 'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jd/tenacity/archive/$pkgver.tar.gz")
 sha512sums=('19ad1885521e234103cce1e03b40290324f5c4a307b0cf7a3cf0c3f704502953432cff02dc4a676ce32241d229f91f4982fd053eee8019af813d99ae679cb199')
 
-prepare() {
-  cp -a tenacity-$pkgver{,-py2}
+export PBR_VERSION=$pkgver
 
-  export PBR_VERSION=$pkgver
-}
-
 build() {
-  cd "$srcdir"/tenacity-$pkgver
+  cd tenacity-$pkgver
   python setup.py build
-
-  cd "$srcdir"/tenacity-$pkgver-py2
-  python2 setup.py build
 }
 
 check() {
-  cd "$srcdir"/tenacity-$pkgver
+  cd tenacity-$pkgver
   python setup.py pytest
-
-  cd "$srcdir"/tenacity-$pkgver-py2
-  python2 setup.py pytest --addopts '--ignore=tenacity/tests/test_asyncio.py'
 }
 
-package_python-tenacity() {
-  depends=('python-six')
-  optdepends=('python-tornado: for Tornado coroutines support')
-
+package() {
   cd tenacity-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1
 }
-
-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
-}
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list