# Contributor: Leonardo Arena # Maintainer: Keith Maxwell pkgname=py3-pycodestyle _pkgname=pycodestyle pkgver=2.11.0 pkgrel=0 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" checkdepends="py3-pytest" subpackages="$pkgname-pyc" 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() { python3 -m pytest tests } package() { mkdir -p "$pkgdir"/usr/bin ln -s pycodestyle "$pkgdir"/usr/bin/pycodestyle-3 python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" fd688544a7fb01a7e3f4f8cb411cf7bc5b6dfc357de616a2ef61944748ad670c239148766b8ea48a3c316396251ed8a8d8937446f400c28e631621a0d16d3cf5 py3-pycodestyle-2.11.0.tar.gz "