Date: Tuesday, December 19, 2017 @ 04:41:59 Author: felixonmars Revision: 313327
upgpkg: python-astroid 1.6.0-1 Modified: python-astroid/trunk/PKGBUILD ----------+ PKGBUILD | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2017-12-19 04:41:02 UTC (rev 313326) +++ PKGBUILD 2017-12-19 04:41:59 UTC (rev 313327) @@ -4,7 +4,7 @@ pkgbase=python-astroid pkgname=('python2-astroid' 'python-astroid') -pkgver=1.5.3 +pkgver=1.6.0 pkgrel=1 pkgdesc="Useful miscellaneous modules used by Logilab projects" arch=('any') @@ -16,7 +16,7 @@ checkdepends=('python-dateutil' 'python2-dateutil' 'python-pytest' 'python2-pytest' 'python-numpy' 'python2-numpy' 'python-nose' 'python2-nose') source=("$pkgbase-$pkgver.tar.gz::https://github.com/PyCQA/astroid/archive/astroid-$pkgver.tar.gz") -sha512sums=('dc475fbd11960584862f8c6e4f505114f70e9551c8bfb5a8d7061b268cb3313bf4d6fc59c46eca1ff12fcbf436c9c512b9bdebc7441a56265b16c830802b7423') +sha512sums=('c2551fa6412cbb55bdf48cd3da27b03dc370a927f75ec6317ab67f5b474bedc42bc9cda3400160a0069a932894e38a3d341a0e9ad72c228a05fba6be960d8fde') prepare() { cp -a astroid-astroid-$pkgver{,-py2} @@ -32,10 +32,12 @@ check() { cd "$srcdir"/astroid-astroid-$pkgver - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" + python -c "from astroid import __pkginfo__; print(__pkginfo__.version)" + # https://github.com/PyCQA/astroid/issues/472 + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" -v || warning "Tests failed" cd "$srcdir"/astroid-astroid-$pkgver-py2 - PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" + PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s build/lib/astroid/tests -p "unittest*.py" -v } package_python-astroid() {