[arch-commits] Commit in python-daiquiri/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 19:53:13 UTC 2019
Date: Friday, October 25, 2019 @ 19:53:10
Author: felixonmars
Revision: 519610
archrelease: copy trunk to community-staging-any
Added:
python-daiquiri/repos/community-staging-any/
python-daiquiri/repos/community-staging-any/PKGBUILD
(from rev 519609, python-daiquiri/trunk/PKGBUILD)
----------+
PKGBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 55 insertions(+)
Copied: python-daiquiri/repos/community-staging-any/PKGBUILD (from rev 519609, python-daiquiri/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2019-10-25 19:53:10 UTC (rev 519610)
@@ -0,0 +1,55 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-daiquiri
+pkgname=('python-daiquiri' 'python2-daiquiri')
+pkgver=1.6.0
+pkgrel=2
+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