/
template
34 lines (31 loc) · 1.14 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 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}"
}