pylint: update to 2.9.6, adopt
This commit is contained in:
parent
85090282f7
commit
609a4c5542
2 changed files with 21 additions and 16 deletions
13
srcpkgs/pylint/patches/fix-tests.patch
Normal file
13
srcpkgs/pylint/patches/fix-tests.patch
Normal 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:
|
|
@ -1,34 +1,26 @@
|
||||||
# Template file for 'pylint'
|
# Template file for 'pylint'
|
||||||
pkgname=pylint
|
pkgname=pylint
|
||||||
version=2.7.4
|
version=2.9.6
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="pylint-${version}"
|
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
|
make_check_args="--deselect=tests/benchmark/test_baseline_benchmarks.py"
|
||||||
hostmakedepends="python3-setuptools"
|
hostmakedepends="python3-setuptools"
|
||||||
depends="python3-astroid python3-six python3-isort python3-mccabe python3-toml"
|
depends="python3-astroid python3-isort python3-mccabe python3-toml"
|
||||||
checkdepends="python3-astroid python3-isort python3-mccabe python3-pytest python3-toml"
|
checkdepends="$depends python3-pytest python3-tkinter python3-six"
|
||||||
short_desc="Python code static checker"
|
short_desc="Python code static checker"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
||||||
license="GPL-2.0-or-later"
|
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"
|
changelog="https://raw.githubusercontent.com/PyCQA/pylint/master/ChangeLog"
|
||||||
distfiles="${PYPI_SITE}/p/pylint/pylint-${version}.tar.gz"
|
distfiles="https://github.com/PyCQA/pylint/archive/refs/tags/v$version.tar.gz"
|
||||||
checksum=bd38914c7731cdc518634a8d3c5585951302b6e2b6de60fbb3f7a0220e21eeee
|
checksum=e6335c810ee3ff4b59e3990db49cf0d1e263e122b766853755436d88133c9496
|
||||||
make_check=no
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# no tests
|
|
||||||
rm -rf ${DESTDIR}/usr/lib/python*/site-packages/pylint/test
|
|
||||||
|
|
||||||
# install example config and emacs files
|
# install example config and emacs files
|
||||||
vsconf examples/pylintrc
|
vsconf examples/pylintrc
|
||||||
vsconf examples/pylintrc_camelcase
|
vsconf examples/pylintrc_camelcase
|
||||||
vsconf elisp/pylint.el
|
vsconf elisp/pylint.el
|
||||||
vsconf elisp/pylint-flymake.el
|
vsconf elisp/pylint-flymake.el
|
||||||
|
|
||||||
for f in man/*; do
|
|
||||||
vman "$f"
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-pylint_package() {
|
python3-pylint_package() {
|
||||||
|
|
Loading…
Reference in a new issue