[arch-commits] Commit in python-retrying/repos (staging-any staging-any/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:45:41 UTC 2020


    Date: Monday, November 9, 2020 @ 15:45:41
  Author: felixonmars
Revision: 399755

archrelease: copy trunk to staging-any

Added:
  python-retrying/repos/staging-any/
  python-retrying/repos/staging-any/PKGBUILD
    (from rev 399754, python-retrying/trunk/PKGBUILD)

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

Copied: python-retrying/repos/staging-any/PKGBUILD (from rev 399754, python-retrying/trunk/PKGBUILD)
===================================================================
--- staging-any/PKGBUILD	                        (rev 0)
+++ staging-any/PKGBUILD	2020-11-09 15:45:41 UTC (rev 399755)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Arvedui <arvedui at posteo.de>
+
+pkgbase=python-retrying
+pkgname=(python-retrying python2-retrying)
+pkgver=1.3.3
+pkgrel=8
+pkgdesc="A general purpose Python retyring library"
+arch=('any')
+url="https://github.com/rholder/retrying/releases"
+license=('Apache')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+source=("https://github.com/rholder/retrying/archive/v$pkgver.tar.gz")
+md5sums=(85ccf5a3a8b32d4091bcde8dabfce060)
+
+prepare() {
+  cd "$srcdir"
+  cp -a retrying-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/retrying-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/retrying-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/retrying-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/retrying-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-retrying() {
+  depends=('python-six')
+
+  cd "$srcdir/retrying-$pkgver"
+  python setup.py install --root="$pkgdir/" --optimize=1
+}
+
+package_python2-retrying() {
+  depends=('python2-six')
+
+  cd "$srcdir/retrying-$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