[arch-commits] Commit in pylint/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Wed Mar 11 17:22:38 UTC 2015


    Date: Wednesday, March 11, 2015 @ 18:22:38
  Author: fyan
Revision: 233358

upgpkg: pylint 1.4.2-1

Modified:
  pylint/trunk/PKGBUILD

----------+
 PKGBUILD |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-03-11 16:41:58 UTC (rev 233357)
+++ PKGBUILD	2015-03-11 17:22:38 UTC (rev 233358)
@@ -6,7 +6,7 @@
 
 pkgbase=pylint
 pkgname=('python2-pylint' 'python-pylint')
-pkgver=1.4.1
+pkgver=1.4.2
 pkgrel=1
 pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
 arch=('any')
@@ -15,16 +15,16 @@
 makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools' 'python2-six' 'python-six')
 optdepends=('tk: Pylint GUI')
 source=("http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
-sha1sums=('8422341d4e02ad1516f4e6bc04931e6f480764bb')
+sha1sums=('72e486d9db139e3ed2425ba589345043b877c229')
 
 prepare() {
   cp -a ${pkgbase}-${pkgver}{,-py3}
 
-  cd ${pkgbase}-${pkgver}
-  sed -i "s|/usr/bin/env python|/usr/bin/env python2|" epylint.py __main__.py test/input/noext
+  cd ${pkgbase}-${pkgver}/pylint
+  sed -e "s|/usr/bin/env python|/usr/bin/env python2|" -e "s|/usr/bin/python$|/usr/bin/python2|" -i epylint.py __main__.py test/input/noext test/data/ascript
 
-  cd ../${pkgbase}-${pkgver}-py3
-  sed -i "s|/usr/bin/env python|/usr/bin/env python3|" epylint.py __main__.py test/input/noext
+  cd ../../${pkgbase}-${pkgver}-py3/pylint
+  sed -e "s|/usr/bin/env python|/usr/bin/env python3|" -e "s|/usr/bin/python$|/usr/bin/python3|" -i epylint.py __main__.py test/input/noext test/data/ascript
 }
 
 build() {
@@ -37,10 +37,10 @@
 
 check() {
   cd ${pkgbase}-${pkgver}
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s test/ -p *test_*.py
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
 
   cd ../${pkgbase}-${pkgver}-py3
-  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s test/ -p *test_*.py || warning "Tests failed"
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
 }
 
 package_python2-pylint() {



More information about the arch-commits mailing list