python3-pycodestyle: update to 2.7.0

* adopt
* drop python-pycodestyle
* fix tests
This commit is contained in:
Michal Vasilek 2021-05-18 09:01:16 +02:00 committed by Érico Nogueira Rolim
parent f7c2793f6d
commit dd09ef817f
5 changed files with 38 additions and 31 deletions

1
srcpkgs/python-pycodestyle Symbolic link
View file

@ -0,0 +1 @@
python3-pycodestyle

View file

@ -1,30 +0,0 @@
# Template file for 'python-pycodestyle'
pkgname=python-pycodestyle
version=2.6.0
revision=3
wrksrc="pycodestyle-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Python2 style guide checker (formerly called pep8)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://github.com/PyCQA/pycodestyle"
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
checksum=c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
post_install() {
vlicense LICENSE
}
python3-pycodestyle_package() {
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3"
pkg_install() {
vmove usr/bin/*3
vmove usr/lib/python3*
vlicense LICENSE
}
}

View file

@ -1 +0,0 @@
python-pycodestyle

View file

@ -0,0 +1,37 @@
# 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}"
}