mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
57 lines
1.3 KiB
Text
57 lines
1.3 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-pylint
|
|
pkgver=2.16.3
|
|
pkgrel=0
|
|
pkgdesc="Analyzes Python code looking for bugs and signs of poor quality"
|
|
url="https://github.com/PyCQA/pylint"
|
|
arch="noarch !s390x" # py3-dill
|
|
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-runner
|
|
py3-pytest-timeout
|
|
py3-pytest-xdist
|
|
py3-requests
|
|
py3-typing-extensions
|
|
"
|
|
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 -v tests
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/pylint-*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
3918c15bbf94de7a4150652dc1fc8cc2929255470198d52bcbfe1205017192e748a852aa0174bf864165ce5e9eac70e4f1a23ca3275fea3f584216c32b224b61 py3-pylint-2.16.3.tar.gz
|
|
"
|