[arch-commits] Commit in python-tenacity/repos/community-any (PKGBUILD PKGBUILD)

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


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

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-03-19 06:30:15 UTC (rev 442561)
+++ PKGBUILD	2019-03-19 06:30:22 UTC (rev 442562)
@@ -1,55 +0,0 @@
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-
-pkgbase=python-tenacity
-pkgname=('python-tenacity' 'python2-tenacity')
-pkgver=5.0.3
-pkgrel=1
-pkgdesc='Retry code until it succeeeds'
-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")
-sha512sums=('19ad1885521e234103cce1e03b40290324f5c4a307b0cf7a3cf0c3f704502953432cff02dc4a676ce32241d229f91f4982fd053eee8019af813d99ae679cb199')
-
-prepare() {
-  cp -a tenacity-$pkgver{,-py2}
-
-  export PBR_VERSION=$pkgver
-}
-
-build() {
-  cd "$srcdir"/tenacity-$pkgver
-  python setup.py build
-
-  cd "$srcdir"/tenacity-$pkgver-py2
-  python2 setup.py build
-}
-
-check() {
-  cd "$srcdir"/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')
-
-  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:

Copied: python-tenacity/repos/community-any/PKGBUILD (from rev 442561, python-tenacity/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-03-19 06:30:22 UTC (rev 442562)
@@ -0,0 +1,32 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-tenacity
+pkgver=5.0.3
+pkgrel=1
+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-pbr')
+checkdepends=('python-pytest-runner' 'python-tornado')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/jd/tenacity/archive/$pkgver.tar.gz")
+sha512sums=('19ad1885521e234103cce1e03b40290324f5c4a307b0cf7a3cf0c3f704502953432cff02dc4a676ce32241d229f91f4982fd053eee8019af813d99ae679cb199')
+
+export PBR_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