vp-build/srcpkgs/python3-pycodestyle/template

33 lines
974 B
Bash

# Template file for 'python3-pycodestyle'
pkgname=python3-pycodestyle
version=2.8.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=eddd5847ef438ea1c7870ca7eb78a9d47ce0cdb4851a5523949f2601d0cbbe7f
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
}
post_install() {
vlicense LICENSE
}
python-pycodestyle_package() {
build_style=meta
short_desc+=" (transitional dummy package)"
depends="python3-pycodestyle>=${version}_${revision}"
}