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

Felix Yan felixonmars at archlinux.org
Wed Aug 21 11:34:28 UTC 2019


    Date: Wednesday, August 21, 2019 @ 11:34:28
  Author: felixonmars
Revision: 500407

archrelease: copy trunk to community-testing-x86_64

Added:
  python-logbook/repos/community-testing-x86_64/
  python-logbook/repos/community-testing-x86_64/PKGBUILD
    (from rev 500406, python-logbook/trunk/PKGBUILD)

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

Copied: python-logbook/repos/community-testing-x86_64/PKGBUILD (from rev 500406, python-logbook/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2019-08-21 11:34:28 UTC (rev 500407)
@@ -0,0 +1,56 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Tomas Schertel<tschertel at gmail.com>
+
+pkgbase=python-logbook
+pkgname=(python-logbook python2-logbook)
+pkgver=1.5.2
+pkgrel=1
+pkgdesc="Logging sytem for Python that replaces the standard library’s logging module"
+arch=('x86_64')
+url="https://logbook.readthedocs.io/en/stable/"
+license=('BSD')
+makedepends=('python-setuptools' 'python2-setuptools' 'cython' 'cython2' 'python-six' 'python2-six')
+checkdepends=('redis' 'python-pytest' 'python2-pytest' 'python-sqlalchemy' 'python2-sqlalchemy'
+              'python-mock' 'python2-mock' 'python-redis' 'python2-redis' 'python-pyzmq'
+              'python2-pyzmq' 'python-execnet' 'python2-execnet' 'python-jinja' 'python2-jinja'
+              'python-brotli' 'python2-brotli' 'pifpaf')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/mitsuhiko/logbook/archive/$pkgver.tar.gz")
+sha512sums=('71bdc14edd1db0490bddb068198fd670270f084a6234e17a46542c2c19436994b61348f18c6813c71d988b37ecaec6a48fac9409125050d4023b3389a6da9c21')
+
+prepare() {
+  cp -a logbook-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/logbook-$pkgver
+  cython logbook/_speedups.pyx
+  python setup.py build
+
+  cd "$srcdir"/logbook-$pkgver-py2
+  cython2 logbook/_speedups.pyx
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/logbook-$pkgver
+  LC_CTYPE=en_US.UTF-8 pifpaf run redis py.test tests
+
+  cd "$srcdir"/logbook-$pkgver-py2
+  LC_CTYPE=en_US.UTF-8 pifpaf run redis py.test2 tests
+}
+
+package_python-logbook() {
+  depends=('python-six')
+
+  cd logbook-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-logbook() {
+  depends=('python2-six')
+
+  cd logbook-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm664 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list