[arch-commits] Commit in python-aspectlib/repos (community-any community-any/PKGBUILD)

Felix Yan fyan at archlinux.org
Fri Oct 30 09:59:11 UTC 2015


    Date: Friday, October 30, 2015 @ 10:59:10
  Author: fyan
Revision: 145297

archrelease: copy trunk to community-any

Added:
  python-aspectlib/repos/community-any/
  python-aspectlib/repos/community-any/PKGBUILD
    (from rev 145296, python-aspectlib/trunk/PKGBUILD)

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

Copied: python-aspectlib/repos/community-any/PKGBUILD (from rev 145296, python-aspectlib/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2015-10-30 09:59:10 UTC (rev 145297)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-aspectlib
+pkgname=('python-aspectlib' 'python2-aspectlib')
+pkgver=1.3.3
+pkgrel=1
+pkgdesc="Development library for quickly writing configurable applications and daemons"
+arch=('any')
+license=('BSD')
+url="https://aspectlib.readthedocs.org"
+makedepends=('python-setuptools' 'python2-setuptools' 'git')
+checkdepends=('python-pytest-capturelog' 'python2-pytest-capturelog' 'python-mock'
+              'python2-mock' 'python-tornado' 'python2-tornado' 'python-process-tests'
+              'python2-process-tests')
+source=("git+https://github.com/ionelmc/python-aspectlib.git#tag=v$pkgver")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -a python-aspectlib{,-py2}
+}
+
+build() {
+  cd "$srcdir/python-aspectlib"
+  python setup.py build
+
+  cd "$srcdir/python-aspectlib-py2"
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir/python-aspectlib"
+  LC_CTYPE=en_US.UTF-8 py.test
+
+  cd "$srcdir/python-aspectlib-py2"
+  # We don't have trollius packaged
+  py.test2 || warning "Tests failed"
+}
+
+package_python-aspectlib() {
+  depends=('python')
+
+  cd python-aspectlib
+  python setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-aspectlib() {
+  depends=('python2')
+
+  cd python-aspectlib-py2
+  python2 setup.py install --root="${pkgdir}" --optimize=1
+  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list