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

Bartłomiej Piotrowski bpiotrowski at archlinux.org
Sun Dec 25 02:43:32 UTC 2016


    Date: Sunday, December 25, 2016 @ 02:43:31
  Author: bpiotrowski
Revision: 201798

archrelease: copy trunk to community-staging-any

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

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

Copied: python-aspectlib/repos/community-staging-any/PKGBUILD (from rev 201797, python-aspectlib/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 02:43:31 UTC (rev 201798)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-aspectlib
+pkgname=('python-aspectlib' 'python2-aspectlib')
+pkgver=1.4.2
+pkgrel=2
+pkgdesc="Development library for quickly writing configurable applications and daemons"
+arch=('any')
+license=('BSD')
+url="https://github.com/ionelmc/python-aspectlib"
+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' 'python2-trollius' 'python-profilestats'
+              'python2-profilestats') # 'mysql-python')
+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
+  py.test2
+}
+
+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