38 lines
1.2 KiB
Bash
38 lines
1.2 KiB
Bash
|
# Template file for 'python3-pycodestyle'
|
||
|
pkgname=python3-pycodestyle
|
||
|
version=2.7.0
|
||
|
revision=1
|
||
|
wrksrc="pycodestyle-${version}"
|
||
|
build_style=python3-module
|
||
|
hostmakedepends="python3-setuptools"
|
||
|
depends="python3"
|
||
|
short_desc="Python style guide checker (formerly called pep8)"
|
||
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
||
|
license="MIT"
|
||
|
homepage="https://github.com/PyCQA/pycodestyle"
|
||
|
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
||
|
checksum=c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef
|
||
|
|
||
|
do_check() {
|
||
|
# from tox.ini and alpine
|
||
|
python3 -m pycodestyle --statistics pycodestyle.py
|
||
|
python3 -m pycodestyle --max-doc-length=72 --testsuite testsuite
|
||
|
python3 -m pycodestyle --max-doc-length=72 --doctest
|
||
|
python3 -m unittest discover testsuite -vv
|
||
|
|
||
|
python -m pycodestyle --statistics pycodestyle.py
|
||
|
python -m pycodestyle --max-doc-length=72 --testsuite testsuite
|
||
|
python -m pycodestyle --max-doc-length=72 --doctest
|
||
|
python -m unittest discover testsuite -vv
|
||
|
}
|
||
|
|
||
|
post_install() {
|
||
|
vlicense LICENSE
|
||
|
}
|
||
|
|
||
|
python-pycodestyle_package() {
|
||
|
build_style=meta
|
||
|
short_desc+=" (transitional dummy package)"
|
||
|
depends="python3-pycodestyle>=${version}_${revision}"
|
||
|
}
|