Date: Sunday, December 25, 2016 @ 16:15:31 Author: felixonmars Revision: 284723
archrelease: copy trunk to staging-any Added: python-astroid/repos/staging-any/ python-astroid/repos/staging-any/PKGBUILD (from rev 284722, python-astroid/trunk/PKGBUILD) ----------+ PKGBUILD | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) Copied: python-astroid/repos/staging-any/PKGBUILD (from rev 284722, python-astroid/trunk/PKGBUILD) =================================================================== --- staging-any/PKGBUILD (rev 0) +++ staging-any/PKGBUILD 2016-12-25 16:15:31 UTC (rev 284723) @@ -0,0 +1,59 @@ +# $Id$ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-astroid +pkgname=('python2-astroid' 'python-astroid') +pkgver=1.4.9.20161218 +_commit=9f8e6f074ba7d9d060355a67a22c30a0c2cb44fd +pkgrel=1 +pkgdesc="Useful miscellaneous modules used by Logilab projects" +arch=('any') +url="https://github.com/PyCQA/astroid" +license=('LGPL') +makedepends=('python-setuptools' 'python2-setuptools' 'python-six' 'python2-six' 'git' + 'python-lazy-object-proxy' 'python2-lazy-object-proxy' 'python-wrapt' 'python2-wrapt' + 'python2-singledispatch' 'python2-enum34') +source=("git+https://github.com/PyCQA/astroid.git#commit=$_commit") +sha1sums=('SKIP') + +prepare() { + cp -a astroid{,-py2} +} + +build() { + cd "$srcdir"/astroid + python setup.py build + + cd "$srcdir"/astroid-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/astroid + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" + + cd "$srcdir"/astroid-py2 + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" +} + +package_python-astroid() { + depends=('python-six' 'python-lazy-object-proxy' 'python-wrapt') + replaces=('python-logilab-astng') + conflicts=('python-logilab-astng') + + cd astroid + + python setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" +} + +package_python2-astroid() { + depends=('python2-six' 'python2-lazy-object-proxy' 'python2-wrapt' 'python2-singledispatch' + 'python2-enum34') + replaces=('python2-logilab-astng') + conflicts=('python2-logilab-astng') + + cd astroid-py2 + + python2 setup.py install --optimize=1 --skip-build --prefix=/usr --root="$pkgdir" +}