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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 15:17:16 UTC 2019


    Date: Friday, October 25, 2019 @ 15:17:15
  Author: felixonmars
Revision: 518959

archrelease: copy trunk to community-staging-any

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

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

Copied: python-structlog/repos/community-staging-any/PKGBUILD (from rev 518958, python-structlog/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 15:17:15 UTC (rev 518959)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-structlog
+pkgver=19.2.0
+pkgrel=2
+pkgdesc="Structured Logging for Python"
+url="https://www.structlog.org"
+license=('Apache')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-simplejson'
+              'python-twisted' 'python-rapidjson' 'python-greenlet')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hynek/structlog/archive/$pkgver.tar.gz")
+sha512sums=('a000601477c155545ff359b8cd4439508cbc28809aa7216395bf2bc85539da481224aa6f265f801ada0a52e03574957bf384718e6793efe697125bf467ffcd7a')
+
+build() {
+  cd structlog-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd structlog-$pkgver
+  PYTHONPATH="$PWD"/build/lib pytest
+}
+
+package() {
+  cd structlog-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+}



More information about the arch-commits mailing list