aports/community/py3-pylint/APKBUILD

60 lines
1.3 KiB
Plaintext

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-pylint
pkgver=3.2.7
pkgrel=0
pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
url="https://github.com/PyCQA/pylint"
arch="noarch"
license="GPL-2.0-or-later"
depends="
py3-astroid
py3-dill
py3-isort
py3-mccabe
py3-platformdirs
py3-tomlkit
"
makedepends="
py3-gpep517
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="
py3-gitpython
py3-py
py3-pytest7
py3-pytest-benchmark
py3-pytest-cov
py3-pytest-runner
py3-pytest-timeout
py3-pytest-xdist
py3-requests
py3-typing-extensions
"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/pylint/archive/refs/tags/v$pkgver.tar.gz"
builddir="$srcdir"/pylint-$pkgver
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest --benchmark-disable --deselect tests/test_functional.py::test_functional tests
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/pylint-*.whl
}
sha512sums="
66dbf0f05aa7aac59f43cab6a1f23c29a3a37d9a19f2c54af0e0aa6f2630fc74d7602a6b6a250e1e02a24723d0513c54a7ee704026af16c8acc50b843708fd98 py3-pylint-3.2.7.tar.gz
"