Date: Wednesday, June 29, 2022 @ 18:00:27 Author: alerque Revision: 1241080
archrelease: copy trunk to community-any Added: python-pylint/repos/community-any/PKGBUILD (from rev 1241079, python-pylint/trunk/PKGBUILD) Deleted: python-pylint/repos/community-any/PKGBUILD ----------+ PKGBUILD | 128 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 64 insertions(+), 64 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-06-29 18:00:18 UTC (rev 1241079) +++ PKGBUILD 2022-06-29 18:00:27 UTC (rev 1241080) @@ -1,64 +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.14.3 -pkgrel=1 -pkgdesc='Analyzes Python code looking for bugs and signs of poor quality' -arch=(any) -url=https://pylint.org -license=(GPL) -_pydeps=(astroid - dill - isort - mccabe - platformdirs - tomli # for python <3.11 - tomlkit) -depends=(python - "${_pydeps[@]/#/python-}") -makedepends=(python-{build,installer} - python-myst-parser - python-setuptools - python-sphinx{,-reredirects} - python-wheel) -checkdepends=(mpdecimal - python-gitpython - python-pytest{,-timeout}) -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/$_archive.tar.gz") -sha256sums=('c041be9dca45802abb66eced004658d2210e631302320cc579d7adcdd1d5a356') - -prepare() { - cd "$_archive" - # Remove overly restrictive dependency pinning that ends up in runtime checks - sed -i -e '/>=/{s/>.*//;p}' -e '/python_requires/d' setup.cfg - # Give ourselves a way to granularly disable test dependent on installed path - sed -i -e '/^markers =/a\ pathdependent: Does not play nice' setup.cfg - sed -i -e '/test_do_not_import_files_from_local_directory_with_pythonpath/i\ @pytest.mark.pathdependent' tests/test_self.py -} - -build() { - cd "$_archive" - python -m build -wn - make PYTHONPATH="$PWD/build/lib" -C doc man -} - -check() { - cd "$_archive" - PYTHONPATH="$PWD:$PWD/build/lib" pytest \ - -m 'not pathdependent' \ - --deselect tests/benchmark/test_baseline_benchmarks.py -} - -package() { - cd "$_archive" - python -m installer -d "$pkgdir" dist/*.whl - install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/_build/man/*.1 -} Copied: python-pylint/repos/community-any/PKGBUILD (from rev 1241079, python-pylint/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-06-29 18:00:27 UTC (rev 1241080) @@ -0,0 +1,64 @@ +# 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.14.4 +pkgrel=1 +pkgdesc='Analyzes Python code looking for bugs and signs of poor quality' +arch=(any) +url=https://pylint.org +license=(GPL) +_pydeps=(astroid + dill + isort + mccabe + platformdirs + tomli # for python <3.11 + tomlkit) +depends=(python + "${_pydeps[@]/#/python-}") +makedepends=(python-{build,installer} + python-myst-parser + python-setuptools + python-sphinx{,-reredirects} + python-wheel) +checkdepends=(mpdecimal + python-gitpython + python-pytest{,-timeout}) +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/$_archive.tar.gz") +sha256sums=('fdd513198ccdf96f8b9a70aca3eb80050edf87b433595c67784c0f9ddac80bb5') + +prepare() { + cd "$_archive" + # Remove overly restrictive dependency pinning that ends up in runtime checks + sed -i -e '/>=/{s/>.*//;p}' -e '/python_requires/d' setup.cfg + # Give ourselves a way to granularly disable test dependent on installed path + sed -i -e '/^markers =/a\ pathdependent: Does not play nice' setup.cfg + sed -i -e '/test_do_not_import_files_from_local_directory_with_pythonpath/i\ @pytest.mark.pathdependent' tests/test_self.py +} + +build() { + cd "$_archive" + python -m build -wn + make PYTHONPATH="$PWD/build/lib" -C doc man +} + +check() { + cd "$_archive" + PYTHONPATH="$PWD:$PWD/build/lib" pytest \ + -m 'not pathdependent' \ + --deselect tests/benchmark/test_baseline_benchmarks.py +} + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/_build/man/*.1 +}