Date: Wednesday, November 28, 2018 @ 17:37:50 Author: felixonmars Revision: 340549
archrelease: copy trunk to testing-any Added: python-pylint/repos/testing-any/PKGBUILD (from rev 340548, python-pylint/trunk/PKGBUILD) Deleted: python-pylint/repos/testing-any/PKGBUILD ----------+ PKGBUILD | 92 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 46 insertions(+), 46 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-11-28 17:37:33 UTC (rev 340548) +++ PKGBUILD 2018-11-28 17:37:50 UTC (rev 340549) @@ -1,46 +0,0 @@ -# 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.2.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=('9e556df190344206deb9494ffa806afb818977b0095ed92b8b5c439f1f70e7177909f0ae7521e25f477dcda58c7c070c58b125e90856fbe3a722b7808ccb6c21') - -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 -} Copied: python-pylint/repos/testing-any/PKGBUILD (from rev 340548, python-pylint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-11-28 17:37:50 UTC (rev 340549) @@ -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.2.2 +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=('5c581c6719e7d8c5d7ffe8c252144b327fc1f4875bc43ba8f2aa14f6176f50b58ac0afa511fb34ff1db2d56764f004809b04dbbc012b5ad7b55fee89dd9b9bc5') + +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 +}