[arch-commits] Commit in pylint/trunk (PKGBUILD)
Felix Yan
fyan at nymeria.archlinux.org
Fri May 16 02:55:36 UTC 2014
Date: Friday, May 16, 2014 @ 04:55:36
Author: fyan
Revision: 212876
upgpkg: pylint 1.2.1-1
Modified:
pylint/trunk/PKGBUILD
----------+
PKGBUILD | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2014-05-16 02:36:58 UTC (rev 212875)
+++ PKGBUILD 2014-05-16 02:55:36 UTC (rev 212876)
@@ -1,35 +1,51 @@
# $Id$
-# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Angel Velasquez <angvp at archlinux.org>
+# Maintainer: Felix Yan <felixonmars at gmail.com>
# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
pkgbase=pylint
pkgname=('python2-pylint' 'python-pylint')
-pkgver=1.2.0
+pkgver=1.2.1
pkgrel=1
pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
arch=('any')
url="http://pylint.org"
license=('GPL')
-makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools')
+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}.tar.gz)
-sha1sums=('f57bd440edcaee3743ad18c45706ad015a408137')
+sha1sums=('6a98e9ee4e3b16d2dcd87d5c9af3bde937b473f4')
-build() {
+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
- sed -i "s|/usr/bin/env python|/usr/bin/env python2|" epylint.py __main__.py test/input/noext
+ cd ../${pkgbase}-${pkgver}-py3
+ sed -i "s|/usr/bin/env python|/usr/bin/env python3|" epylint.py __main__.py test/input/noext
+}
+
+build() {
+ cd ${pkgbase}-${pkgver}
python2 setup.py build
cd ../${pkgbase}-${pkgver}-py3
-
- sed -i "s|/usr/bin/env python|/usr/bin/env python3|" epylint.py __main__.py test/input/noext
python3 setup.py build
}
+check() {
+ # doesn't run this way
+
+ cd ${pkgbase}-${pkgver}
+ #pytest2
+
+ cd ../${pkgbase}-${pkgver}-py3
+ #pytest
+}
+
package_python2-pylint() {
depends=('python2-astroid' 'python2-setuptools')
@@ -45,7 +61,6 @@
mv "${pkgdir}"/usr/bin/${i}{,2}
mv "${pkgdir}"/usr/share/man/man1/${i}{,2}.1
done
-
}
package_python-pylint() {
More information about the arch-commits
mailing list