pylint: update to 2.9.6, adopt

This commit is contained in:
Michal Vasilek 2021-08-01 00:10:46 +02:00
parent 85090282f7
commit 609a4c5542
2 changed files with 21 additions and 16 deletions

View file

@ -0,0 +1,13 @@
https://github.com/PyCQA/pylint/pull/4781
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -643,7 +643,7 @@ def test_pylint_home():
assert config.PYLINT_HOME == pylintd
finally:
try:
- os.remove(pylintd)
+ rmtree(pylintd)
except FileNotFoundError:
pass
finally:

View file

@ -1,34 +1,26 @@
# Template file for 'pylint'
pkgname=pylint
version=2.7.4
version=2.9.6
revision=1
wrksrc="pylint-${version}"
build_style=python3-module
make_check_args="--deselect=tests/benchmark/test_baseline_benchmarks.py"
hostmakedepends="python3-setuptools"
depends="python3-astroid python3-six python3-isort python3-mccabe python3-toml"
checkdepends="python3-astroid python3-isort python3-mccabe python3-pytest python3-toml"
depends="python3-astroid python3-isort python3-mccabe python3-toml"
checkdepends="$depends python3-pytest python3-tkinter python3-six"
short_desc="Python code static checker"
maintainer="Orphaned <orphan@voidlinux.org>"
maintainer="Michal Vasilek <michal@vasilek.cz>"
license="GPL-2.0-or-later"
homepage="http://www.pylint.org/"
homepage="https://www.pylint.org/"
changelog="https://raw.githubusercontent.com/PyCQA/pylint/master/ChangeLog"
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
checksum=bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee
make_check=no
distfiles="https://github.com/PyCQA/pylint/archive/refs/tags/v$version.tar.gz"
checksum=e6335c810ee3ff4b59e3990db49cf0d1e263e122b766853755436d88133c9496
post_install() {
# no tests
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
# install example config and emacs files
vsconf examples/pylintrc
vsconf examples/pylintrc_camelcase
vsconf elisp/pylint.el
vsconf elisp/pylint-flymake.el
for f in man/*; do
vman "$f"
done
}
python3-pylint_package() {