Date: Saturday, September 4, 2021 @ 09:36:04 Author: alerque Revision: 1010917
archrelease: copy trunk to community-any Added: python-pylint/repos/community-any/PKGBUILD (from rev 1010916, python-pylint/trunk/PKGBUILD) Deleted: python-pylint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 109 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 55 insertions(+), 54 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-09-04 09:35:24 UTC (rev 1010916) +++ PKGBUILD 2021-09-04 09:36:04 UTC (rev 1010917) @@ -1,54 +0,0 @@ -# Maintainer: Caleb Maclennan <ca...@alerque.com> -# Contributor: Angel Velasquez <an...@archlinux.org> -# Contributor: Felix Yan <felixonm...@archlinux.org> -# Contributor: Stéphane Gaudreault <steph...@archlinux.org> -# Contributor: Alexander Fehr <pizzapunk gmail com> - -_pyname=pylint -pkgname=python-$_pyname -pkgver=2.10.2 -pkgrel=2 -pkgdesc='Analyzes Python code looking for bugs and signs of poor quality' -arch=(any) -url=https://pylint.org -license=(GPL) -depends=(python - python-astroid - python-isort - python-platformdirs) -makedepends=(python-setuptools - python-sphinx) -checkdepends=(mpdecimal - python-mccabe - python-toml - python-pytest) -optdepends=('graphviz: Enable output formats other than dot or vcg' - 'tk: Pylint GUI') -_archive="$_pyname-$pkgver" -source=("https://github.com/PyCQA/pylint/archive/v$pkgver/pylint-$pkgver.tar.gz") -sha256sums=('639254a0ef06dacfcfb27ce01bc3b1ddf27dbe702ba0685ae0286e0d02ff9194') - -prepare() { - cd "$_archive" - # Remove overly restrictive dependency pinning that ends up in runtime checks - sed -i -e '/>=/{s/>.*//;p}' setup.cfg -} - -build() { - cd "$_archive" - python setup.py build - make PYTHONPATH="$PWD/build/lib" -C doc man -} - -check() { - cd "$_archive" - PYTHONPATH="$PWD/build/lib" pytest \ - --deselect tests/benchmark/test_baseline_benchmarks.py -} - -package() { - cd "$_archive" - export PYTHONHASHSEED=0 - python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/_build/man/* -} Copied: python-pylint/repos/community-any/PKGBUILD (from rev 1010916, python-pylint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-09-04 09:36:04 UTC (rev 1010917) @@ -0,0 +1,55 @@ +# Maintainer: Caleb Maclennan <ca...@alerque.com> +# Contributor: Angel Velasquez <an...@archlinux.org> +# Contributor: Felix Yan <felixonm...@archlinux.org> +# Contributor: Stéphane Gaudreault <steph...@archlinux.org> +# Contributor: Alexander Fehr <pizzapunk gmail com> + +_pyname=pylint +pkgname=python-$_pyname +pkgver=2.10.2 +pkgrel=3 +pkgdesc='Analyzes Python code looking for bugs and signs of poor quality' +arch=(any) +url=https://pylint.org +license=(GPL) +_pydeps=(astroid + isort + mccabe + platformdirs + toml) +depends=(python + "${_pydeps[@]/#/python-}") +makedepends=(python-setuptools + python-sphinx) +checkdepends=(mpdecimal + python-pytest) +optdepends=('graphviz: Enable output formats other than dot or vcg' + 'tk: Pylint GUI') +_archive="$_pyname-$pkgver" +source=("https://github.com/PyCQA/pylint/archive/v$pkgver/pylint-$pkgver.tar.gz") +sha256sums=('639254a0ef06dacfcfb27ce01bc3b1ddf27dbe702ba0685ae0286e0d02ff9194') + +prepare() { + cd "$_archive" + # Remove overly restrictive dependency pinning that ends up in runtime checks + sed -i -e '/>=/{s/>.*//;p}' setup.cfg +} + +build() { + cd "$_archive" + python setup.py build + make PYTHONPATH="$PWD/build/lib" -C doc man +} + +check() { + cd "$_archive" + PYTHONPATH="$PWD/build/lib" pytest \ + --deselect tests/benchmark/test_baseline_benchmarks.py +} + +package() { + cd "$_archive" + export PYTHONHASHSEED=0 + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/_build/man/* +}