Date: Friday, May 24, 2019 @ 18:03:29 Author: felixonmars Revision: 353946
archrelease: copy trunk to testing-any Added: python-pylint/repos/testing-any/ python-pylint/repos/testing-any/PKGBUILD (from rev 353945, python-pylint/trunk/PKGBUILD) ----------+ PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) Copied: python-pylint/repos/testing-any/PKGBUILD (from rev 353945, python-pylint/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2019-05-24 18:03:29 UTC (rev 353946) @@ -0,0 +1,46 @@ +# Maintainer: Angel Velasquez <an...@archlinux.org> +# Maintainer: Felix Yan <felixonm...@archlinux.org> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> +# Contributor: Alexander Fehr <pizzapunk gmail com> + +pkgname=python-pylint +pkgver=2.3.1 +pkgrel=1 +pkgdesc="Analyzes Python code looking for bugs and signs of poor quality" +arch=('any') +url="http://pylint.org" +license=('GPL') +depends=('python-astroid' 'python-setuptools' 'python-mccabe' 'python-isort') +checkdepends=('python-pytest-runner' 'mpdecimal') +optdepends=('tk: Pylint GUI' + 'graphviz: To have other output formats than dot or vcg') +source=("$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pylint/archive/pylint-$pkgver.tar.gz") +sha512sums=('9f3081325f6486e1e9c57cf68c3b81b35f34cdda9839ddc566f732989e06821c64713dc61b21bcc5177fb73fa7fb5ee626b53fcdb7eef620ff4620115e59b4cf') + +prepare() { + sed -i 's/pytest<3.3/pytest/' pylint-pylint-$pkgver/setup.py + + cd "$srcdir"/pylint-pylint-$pkgver/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 "$srcdir"/pylint-pylint-$pkgver + python setup.py build +} + +check() { + cd "$srcdir"/pylint-pylint-$pkgver + # https://github.com/PyCQA/pylint/issues/2288 + python setup.py pytest || warning "Tests failed" +} + +package() { + depends=('python-astroid' 'python-setuptools' 'python-mccabe' 'python-isort') + + cd pylint-pylint-$pkgver + python 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 +}