[arch-commits] Commit in (4 files)

Felix Yan fyan at archlinux.org
Fri Oct 30 09:58:47 UTC 2015


    Date: Friday, October 30, 2015 @ 10:58:47
  Author: fyan
Revision: 145296

addpkg: python-aspectlib 1.3.3-1

Added:
  python-aspectlib/
  python-aspectlib/repos/
  python-aspectlib/trunk/
  python-aspectlib/trunk/PKGBUILD

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

Added: python-aspectlib/trunk/PKGBUILD
===================================================================
--- python-aspectlib/trunk/PKGBUILD	                        (rev 0)
+++ python-aspectlib/trunk/PKGBUILD	2015-10-30 09:58:47 UTC (rev 145296)
@@ -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"
+}


Property changes on: python-aspectlib/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list