From 60678bc1930f84fe0b87a1e4efb9abd1aa978116 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 31 Jul 2021 19:57:01 +0200 Subject: [PATCH 1/2] python3-astroid: update to 2.6.5, adopt --- srcpkgs/python3-astroid/template | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python3-astroid/template b/srcpkgs/python3-astroid/template index a8fb9a7017fc..4c9f405e5f9e 100644 --- a/srcpkgs/python3-astroid/template +++ b/srcpkgs/python3-astroid/template @@ -1,18 +1,16 @@ # Template file for 'python3-astroid' pkgname=python3-astroid -version=2.5.3 +version=2.6.5 revision=1 wrksrc="astroid-${version}" build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-six python3-lazy-object-proxy python3-wrapt - python3-typed-ast" -checkdepends="$depends python3-attrs python3-pytest python3-wcwidth - python3-py python3-pluggy python3-more-itertools python3-parsing" +depends="python3-lazy-object-proxy python3-wrapt" +checkdepends="$depends python3-pytest python3-numpy" short_desc="Abstract syntax tree for Python3" -maintainer="Alessio Sergi " +maintainer="Michal Vasilek " license="GPL-2.0-or-later, LGPL-2.1-or-later" homepage="https://github.com/PyCQA/astroid" changelog="https://raw.githubusercontent.com/PyCQA/astroid/master/ChangeLog" -distfiles="${PYPI_SITE}/a/astroid/astroid-${version}.tar.gz" -checksum=ad63b8552c70939568966811a088ef0bc880f99a24a00834abd0e3681b514f91 +distfiles="https://github.com/PyCQA/astroid/archive/refs/tags/v$version.tar.gz" +checksum=4e22e703abc1220e6ec4a41740f5d8a51a5484a1b24d61cd4495f995ef2296a7 From e66a1b40c56904868e69f31d590a54d6f9ba55f2 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sun, 1 Aug 2021 00:10:46 +0200 Subject: [PATCH 2/2] 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 000000000000..9eda4571cc33 --- /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 e2c275d029dd..de5e3a0db56b 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 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 " +maintainer="Michal Vasilek " 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 +make_check_args="--deselect=tests/benchmark/test_baseline_benchmarks.py" 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() {