Date: Tuesday, February 28, 2023 @ 10:26:51
  Author: alerque
Revision: 1405602

archrelease: copy trunk to community-any

Added:
  python-pylint/repos/community-any/PKGBUILD
    (from rev 1405601, python-pylint/trunk/PKGBUILD)

----------+
 PKGBUILD |   70 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 70 insertions(+)

Copied: python-pylint/repos/community-any/PKGBUILD (from rev 1405601, 
python-pylint/trunk/PKGBUILD)
===================================================================
--- PKGBUILD                            (rev 0)
+++ PKGBUILD    2023-02-28 10:26:51 UTC (rev 1405602)
@@ -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.16.2
+pkgrel=2
+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-py
+              python-pytest{,-timeout,-benchmark})
+optdepends=('graphviz: Enable output formats other than dot or vcg')
+_archive="$_pyname-$pkgver"
+source=("https://github.com/PyCQA/pylint/archive/v$pkgver/$_archive.tar.gz";)
+sha256sums=('55e7cb236f706807bfecd2e3d710e98fb5657adffb5c8ef7fd7eb843c41c5841')
+
+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
+}

Reply via email to