From 609a4c5542f9ad612db80339869488db51f9e176 Mon Sep 17 00:00:00 2001 From: Michal Vasilek <michal@vasilek.cz> Date: Sun, 1 Aug 2021 00:10:46 +0200 Subject: [PATCH] pylint: update to 2.9.6, adopt --- srcpkgs/pylint/patches/fix-tests.patch | 13 +++++++++++++ srcpkgs/pylint/template | 24 ++++++++---------------- 2 files changed, 21 insertions(+), 16 deletions(-) create mode 100644 srcpkgs/pylint/patches/fix-tests.patch diff --git a/srcpkgs/pylint/patches/fix-tests.patch b/srcpkgs/pylint/patches/fix-tests.patch new file mode 100644 index 00000000000..9eda4571cc3 --- /dev/null +++ b/srcpkgs/pylint/patches/fix-tests.patch @@ -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: diff --git a/srcpkgs/pylint/template b/srcpkgs/pylint/template index e2c275d029d..7b1b6e4fed2 100644 --- a/srcpkgs/pylint/template +++ b/srcpkgs/pylint/template @@ -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() {