Date: Saturday, October 29, 2022 @ 20:03:19
Author: alerque
Revision: 1339328
archrelease: copy trunk to community-testing-any
Added:
python-pylint/repos/community-testing-any/
python-pylint/repos/community-testing-any/PKGBUILD
(from rev 1339326, python-pylint/trunk/PKGBUILD)
----------+
PKGBUILD | 70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
Copied: python-pylint/repos/community-testing-any/PKGBUILD (from rev 1339326,
python-pylint/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-10-29 20:03:19 UTC (rev 1339328)
@@ -0,0 +1,70 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: David Runge <[email protected]>
+# Contributor: Angel Velasquez <[email protected]>
+# Contributor: Felix Yan <[email protected]>
+# Contributor: Stéphane Gaudreault <[email protected]>
+# Contributor: Alexander Fehr <pizzapunk gmail com>
+
+_pyname=pylint
+pkgname=python-$_pyname
+pkgver=2.15.5
+pkgrel=1
+pkgdesc='Analyzes Python code looking for bugs and signs of poor quality'
+arch=(any)
+url=https://pylint.pycqa.org
+license=(GPL)
+_pydeps=(astroid
+ colorama
+ 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=('05a51f3382651642bae32a4e5036b340f6d3b2e666713fb139ce3bbc274f04dc')
+
+prepare() {
+ cd "$_archive"
+ # Remove build time dependency pinning that conflicts with Arch packages
+ sed -i -E '/^requires/s/~=[0-9.]+//g' pyproject.toml
+ # Remove overly restrictive dependency pinning that ends up in runtime
checks
+ sed -i -e '/>=/{s/>.*//;p}' -e '/python_requires/d' setup.cfg
+}
+
+build() {
+ cd "$_archive"
+ python -m build -wn
+ make PYTHONPATH="$PWD/build/lib" -C doc man
+}
+
+check() {
+ local deselected=(
+ --deselect tests/test_functional.py::test_functional
+ --deselect
tests/test_self.py::TestRunTC::test_do_not_import_files_from_local_directory
+ --deselect
tests/testutils/test_testutils_utils.py::test__test_environ_pythonpath_no_arg
+ --deselect tests/benchmark/test_baseline_benchmarks.py
+ )
+ cd "$_archive"
+ export PYTHONPATH="$PWD:$PWD/build/lib"
+ pytest -vv --color=yes "${deselected[@]}"
+}
+
+package() {
+ cd "$_archive"
+ python -m installer -d "$pkgdir" dist/*.whl
+ install -Dm0644 -t "$pkgdir/usr/share/man/man1/" doc/_build/man/*.1
+}