mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
45 lines
1.2 KiB
Text
45 lines
1.2 KiB
Text
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
|
|
pkgname=py3-pylint
|
|
pkgver=2.8.2
|
|
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-isort
|
|
py3-mccabe
|
|
py3-toml
|
|
"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="
|
|
py3-pytest
|
|
py3-pytest-runner
|
|
"
|
|
options="!check" # https://github.com/PyCQA/pylint/issues/3895
|
|
source="https://files.pythonhosted.org/packages/source/p/pylint/pylint-$pkgver.tar.gz
|
|
no_setuptools_scm.patch
|
|
"
|
|
builddir="$srcdir"/pylint-$pkgver
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
# Requires unpackaged 'pytest-benchmark'
|
|
rm -rf tests/benchmark
|
|
# PYTHONPATH="$PWD/build/lib" py.test-3
|
|
python3 setup.py pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
304cb32fc72a6efe89d3d6799b1bf5ffa2a16220b99d8f0aa39753aeea907c88ed81ddebfc4de91be33243dd47dd1bcde4077fb6428f6fa4fe80636c77be907e pylint-2.8.2.tar.gz
|
|
d3ec0c6acf7a3d32f30fe1dce1710e816b97de6e694c52097e4d5b3dc4edbbc04b93be56147dd7e4da6a34c9545328fa8b1b7db023434b74897e79c09b23b464 no_setuptools_scm.patch
|
|
"
|