aports/community/py3-pylint/APKBUILD

59 lines
1.3 KiB
Text

# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=py3-pylint
pkgver=3.3.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-pytest
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="
b9aa9510004642cd6463f66613bdcf0030cb8cf2ecbc288dbf2d6165c0d08d673bf7f2c38fa5b8c666e98f9644084e8cbbe572e9778bc56db3eefac70d145e6c py3-pylint-3.3.7.tar.gz
"