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

Felix Yan felixonmars at archlinux.org
Wed Aug 7 06:25:58 UTC 2019


    Date: Wednesday, August 7, 2019 @ 06:25:57
  Author: felixonmars
Revision: 498131

archrelease: copy trunk to community-testing-any

Added:
  python-daiquiri/repos/community-testing-any/
  python-daiquiri/repos/community-testing-any/PKGBUILD
    (from rev 498130, python-daiquiri/trunk/PKGBUILD)

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

Copied: python-daiquiri/repos/community-testing-any/PKGBUILD (from rev 498130, python-daiquiri/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-08-07 06:25:57 UTC (rev 498131)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-daiquiri
+pkgname=('python-daiquiri' 'python2-daiquiri')
+pkgver=1.6.0
+pkgrel=1
+pkgdesc='Library to configure Python logging easily'
+arch=('any')
+license=('Apache')
+url='https://github.com/jd/daiquiri'
+makedepends=('python-pbr' 'python2-pbr')
+checkdepends=('python-testrepository' 'python2-testrepository' 'python-testtools'
+              'python2-testtools' 'python-json-logger' 'python2-json-logger')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/jd/daiquiri/archive/$pkgver.tar.gz")
+sha512sums=('29eb2aa70267042703307ad7776ad022620f08f9edd23b0be97e4afde1c2efa6193a928d04dfdf410220bceec4bc2a3288a614a1a7259df891751488d62bf629')
+
+prepare() {
+  cp -a daiquiri-$pkgver{,-py2}
+
+  export PBR_VERSION=$pkgver
+}
+
+build() {
+  cd "$srcdir"/daiquiri-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/daiquiri-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/daiquiri-$pkgver
+  python setup.py testr
+
+  cd "$srcdir"/daiquiri-$pkgver-py2
+  python2 setup.py testr
+}
+
+package_python-daiquiri() {
+  depends=('python')
+  optdepends=('python-json-logger: For JSON support')
+
+  cd daiquiri-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-daiquiri() {
+  depends=('python2')
+  optdepends=('python2-json-logger: For JSON support')
+
+  cd daiquiri-$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