[arch-commits] Commit in pylint/trunk (PKGBUILD)
Felix Yan
fyan at archlinux.org
Mon Sep 21 06:08:56 UTC 2015
Date: Monday, September 21, 2015 @ 08:08:56
Author: fyan
Revision: 247023
upgpkg: pylint 1.4.4.20150921-1
bumping to git master for compatibility with new astroid
Modified:
pylint/trunk/PKGBUILD
----------+
PKGBUILD | 29 +++++++++++++++--------------
1 file changed, 15 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-21 06:01:44 UTC (rev 247022)
+++ PKGBUILD 2015-09-21 06:08:56 UTC (rev 247023)
@@ -6,40 +6,41 @@
pkgbase=pylint
pkgname=('python2-pylint' 'python-pylint')
-pkgver=1.4.4
-pkgrel=2
+pkgver=1.4.4.20150921
+_commit=794a019236afead67c745777f5927cbe6b3f0711
+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' 'python2-six' 'python-six')
+makedepends=('python2-astroid' 'python-astroid' 'python2-setuptools' 'python-setuptools' 'python2-six' 'python-six' 'mercurial')
optdepends=('tk: Pylint GUI')
-source=("http://pypi.python.org/packages/source/p/${pkgbase}/${pkgbase}-${pkgver}.tar.gz")
-sha1sums=('4f46ee34830cebb51a1c5f8fa27e132bd0952ae3')
+source=("hg+https://felixonmars@bitbucket.org/logilab/pylint#revision=$_commit")
+sha1sums=('SKIP')
prepare() {
- cp -a ${pkgbase}-${pkgver}{,-py3}
+ cp -a ${pkgbase}{,-py3}
- cd ${pkgbase}-${pkgver}/pylint
+ cd ${pkgbase}/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/pylint
+ cd ../../${pkgbase}-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() {
- cd ${pkgbase}-${pkgver}
+ cd ${pkgbase}
python2 setup.py build
- cd ../${pkgbase}-${pkgver}-py3
+ cd ../${pkgbase}-py3
python3 setup.py build
}
check() {
- cd ${pkgbase}-${pkgver}
+ cd ${pkgbase}
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python2 -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
- cd ../${pkgbase}-${pkgver}-py3
+ cd ../${pkgbase}-py3
PYTHONPATH="$PWD/build/lib:$PYTHONPATH" python -Wi -m unittest discover -s pylint/test/ -p *test_*.py || warning "Tests failed"
}
@@ -46,7 +47,7 @@
package_python2-pylint() {
depends=('python2-astroid' 'python2-setuptools' 'python2-six')
- cd ${pkgbase}-${pkgver}
+ cd ${pkgbase}
python2 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
@@ -62,7 +63,7 @@
package_python-pylint() {
depends=('python-astroid' 'python-setuptools' 'python-six')
- cd ${pkgbase}-${pkgver}-py3
+ cd ${pkgbase}-py3
python3 setup.py install --prefix=/usr --root="${pkgdir}" --skip-build --optimize=1
More information about the arch-commits
mailing list