From 80b41e8fc25910b0d1daa9c0849a698a3cd516ac Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Mon, 5 Jul 2021 21:27:02 +0200 Subject: [PATCH] flake8: update to 3.9.2 * remove python3-entrypoints dependency (not necessary since 3.8.0) * remove version restrictions on runtime dependencies * fix tests * adopt --- srcpkgs/flake8/template | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/srcpkgs/flake8/template b/srcpkgs/flake8/template index 8a7d34b0e81..5b5d795f741 100644 --- a/srcpkgs/flake8/template +++ b/srcpkgs/flake8/template @@ -1,22 +1,26 @@ # Template file for 'flake8' pkgname=flake8 -version=3.8.4 +version=3.9.2 revision=1 build_style=python3-module hostmakedepends="python3-setuptools" -depends="python3-setuptools python3-pycodestyle>=2.6.0<2.7.0 - python3-pyflakes>=2.2.0<2.3.0 python3-mccabe>=0.6.0<0.7.0 - python3-entrypoints>=0.3<0.4" -checkdepends="python3-mock python3-pycodestyle python3-pytest python3-pyflakes" +depends="python3-pycodestyle python3-pyflakes python3-mccabe" +checkdepends="$depends python3-mock python3-pytest" short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe" -maintainer="Alessio Sergi " +maintainer="Michal Vasilek " license="MIT" homepage="https://gitlab.com/pycqa/flake8" +changelog="https://raw.githubusercontent.com/PyCQA/flake8/master/docs/source/release-notes/$version.rst" distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz" -checksum=aadae8761ec651813c24be05c6f7b4680857ef6afaae4651a4eccaef97ce6c3b +checksum=07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b do_check() { - PYTHONPATH="${wrksrc}/src" python3 -m pytest + # from alpine + PYTHONPATH=build/lib python3 -m pytest \ + --deselect=tests/integration/test_api_legacy.py::test_legacy_api \ + --deselect=tests/integration/test_main.py \ + --deselect=tests/integration/test_plugins.py \ + --deselect=tests/unit/test_setuptools_command.py::test_package_files_removes_submodules } post_install() {