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

Felix Yan fyan at archlinux.org
Mon Aug 25 00:44:56 UTC 2014


    Date: Monday, August 25, 2014 @ 02:44:56
  Author: fyan
Revision: 220643

upgpkg: pylint 1.3.1-1

Modified:
  pylint/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-25 00:32:34 UTC (rev 220642)
+++ PKGBUILD	2014-08-25 00:44:56 UTC (rev 220643)
@@ -6,7 +6,7 @@
 
 pkgbase=pylint
 pkgname=('python2-pylint' 'python-pylint')
-pkgver=1.3.0
+pkgver=1.3.1
 pkgrel=1
 pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
 arch=('any')
@@ -13,10 +13,9 @@
 url="http://pylint.org"
 license=('GPL')
 makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools')
-checkdepends=('python-pytest' 'python2-pytest')
 optdepends=('tk: Pylint GUI')
 source=("http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.zip")
-sha1sums=('f2be4efd219ba520e6a8fb208478e1beb0393c7e')
+sha1sums=('08ec434b33cc297b3bc3bd129908ab167f21c52e')
 
 prepare() {
   cp -a ${pkgbase}-${pkgver}{,-py3}
@@ -37,13 +36,11 @@
 }
 
 check() {
-  # doesn't run this way
-
   cd ${pkgbase}-${pkgver}
-  #pytest2
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s test/ -p *test_*.py || warning "Tests failed"
 
   cd ../${pkgbase}-${pkgver}-py3
-  #pytest
+  PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s test/ -p *test_*.py || warning "Tests failed"
 }
 
 package_python2-pylint() {
@@ -54,7 +51,6 @@
   python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
 
   install -d "${pkgdir}"/usr/share/man/man1
-
   install -m644 man/* "${pkgdir}/usr/share/man/man1"
 
   for i in epylint pylint pylint-gui pyreverse symilar; do




More information about the arch-commits mailing list