flake8: various template changes

update dead homepage
revise changelog
fix tests
This commit is contained in:
icp 2023-02-26 14:49:05 +05:30 committed by Michal Vasilek
parent 8e28a98fc1
commit b13321c408
1 changed files with 9 additions and 3 deletions

View File

@ -3,18 +3,24 @@ pkgname=flake8
version=6.0.0 version=6.0.0
revision=1 revision=1
build_style=python3-module build_style=python3-module
make_check_args="--deselect=tests/unit/plugins/pycodestyle_test.py"
hostmakedepends="python3-setuptools" hostmakedepends="python3-setuptools"
depends="python3-pycodestyle python3-pyflakes python3-mccabe" depends="python3-pycodestyle python3-pyflakes python3-mccabe"
checkdepends="$depends python3-mock python3-pytest" checkdepends="$depends python3-mock python3-pytest"
short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe" short_desc="Modular source code checker: pycodestyle, pyflakes, mccabe"
maintainer="Michal Vasilek <michal@vasilek.cz>" maintainer="Michal Vasilek <michal@vasilek.cz>"
license="MIT" license="MIT"
homepage="https://gitlab.com/pycqa/flake8" homepage="https://flake8.pycqa.org/"
changelog="https://raw.githubusercontent.com/PyCQA/flake8/master/docs/source/release-notes/$version.rst" changelog="https://raw.githubusercontent.com/PyCQA/flake8/main/docs/source/release-notes/${version}.rst"
distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz" distfiles="${PYPI_SITE}/f/flake8/flake8-${version}.tar.gz"
checksum=c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181 checksum=c61007e76655af75e6785a931f452915b371dc48f56efd765247c8fe68f2b181
do_check() {
local testdir="tmp/$(date +%s)"
python3 setup.py install --prefix=/usr --root=${testdir}
PATH="${testdir}/usr/bin:${PATH}" PYTHONPATH="${testdir}/${py3_sitelib}" pytest3 \
--ignore tests/unit/plugins/pycodestyle_test.py
}
post_install() { post_install() {
vlicense LICENSE vlicense LICENSE
} }