void-packages/srcpkgs/flake8/template
Michal Vasilek 80b41e8fc2 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
2021-07-14 11:39:24 -03:00

35 lines
1.1 KiB
Bash

# Template file for 'flake8'
pkgname=flake8
version=3.9.2
revision=1
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-pycodestyle python3-pyflakes python3-mccabe"
checkdepends="$depends python3-mock python3-pytest"
short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe"
maintainer="Michal Vasilek <michal@vasilek.cz>"
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=07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b
do_check() {
# 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() {
vlicense LICENSE
}
python3-flake8_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="flake8>=${version}_${revision}"
}