[arch-commits] Commit in (4 files)
Felix Yan
felixonmars at archlinux.org
Tue Jun 26 15:10:01 UTC 2018
Date: Tuesday, June 26, 2018 @ 15:10:01
Author: felixonmars
Revision: 346250
addpkg: python-structlog 18.1.0-1
Added:
python-structlog/
python-structlog/repos/
python-structlog/trunk/
python-structlog/trunk/PKGBUILD
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Added: python-structlog/trunk/PKGBUILD
===================================================================
--- python-structlog/trunk/PKGBUILD (rev 0)
+++ python-structlog/trunk/PKGBUILD 2018-06-26 15:10:01 UTC (rev 346250)
@@ -0,0 +1,52 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-structlog
+pkgname=(python-structlog python2-structlog)
+pkgver=18.1.0
+pkgrel=1
+pkgdesc="Structured Logging for Python"
+url="http://www.structlog.org"
+license=('Apache')
+arch=('any')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six')
+checkdepends=('python-pytest' 'python2-pytest' 'python-freezegun' 'python2-freezegun'
+ 'python-pretend' 'python2-pretend' 'python-simplejson' 'python2-simplejson'
+ 'python-twisted' 'python2-twisted' 'python-rapidjson' 'python-greenlet'
+ 'python2-greenlet')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz")
+sha512sums=('01ea560f16979312acd168c08994007e1116de470cf933a1524033884058114999f815cf3061b2d080c95453c9b628ed7747ea5d283bb2fcda7180edd977c09b')
+
+prepare() {
+ cp -a structlog-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/structlog-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/structlog-$pkgver-py2
+ python2 setup.py build
+}
+
+check() {
+ cd "$srcdir"/structlog-$pkgver
+ PYTHONPATH="$PWD"/build/lib pytest
+
+ cd "$srcdir"/structlog-$pkgver-py2
+ PYTHONPATH="$PWD"/build/lib pytest2
+}
+
+package_python-structlog() {
+ depends=('python-six')
+
+ cd structlog-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-structlog() {
+ depends=('python2-six')
+
+ cd structlog-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+}
Property changes on: python-structlog/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
More information about the arch-commits
mailing list