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

Felix Yan felixonmars at archlinux.org
Sat Feb 2 16:22:28 UTC 2019


    Date: Saturday, February 2, 2019 @ 16:22:27
  Author: felixonmars
Revision: 429181

archrelease: copy trunk to community-testing-any

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

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

Copied: python-structlog/repos/community-testing-any/PKGBUILD (from rev 429180, python-structlog/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-02-02 16:22:27 UTC (rev 429181)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-structlog
+pkgname=(python-structlog python2-structlog)
+pkgver=19.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=('7d2705afab3ab2415e4ce636061572e1dce57b612d45e34b5f5b55947d180b8b69f97c084ce9e6e79fde270daab8506618fe7da881f2db1fd3a781b240b8a6c5')
+
+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
+}



More information about the arch-commits mailing list