1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-21 10:15:12 +03:00
aports/community/py3-pycodestyle/APKBUILD
2023-03-01 23:37:51 +00:00

40 lines
1.2 KiB
Text

# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
pkgname=py3-pycodestyle
_pkgname=pycodestyle
pkgver=2.10.0
pkgrel=1
pkgdesc="Check your Python code against some of the style conventions in PEP 8"
url="https://pypi.org/project/pycodestyle/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
source="$pkgname-$pkgver.tar.gz::https://github.com/PyCQA/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-pycodestyle" # Backwards compatibility
provides="py-pycodestyle=$pkgver-r$pkgrel" # Backwards compatibility
build() {
python3 setup.py build
}
check() {
# test commands from tox.ini:
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
}
package() {
mkdir -p "$pkgdir"/usr/bin
ln -s pycodestyle "$pkgdir"/usr/bin/pycodestyle-3
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
b094421d4954fe3fa31b9ddb26a258caf035fe109c2addfbbab2ba8d94f0bb6bd9d71fcf0917da77b157d77056de0a218dd808d686f6d01e713a5bc0a890225a py3-pycodestyle-2.10.0.tar.gz
"