# Contributor: Leonardo Arena # Maintainer: Keith Maxwell pkgname=py3-pycodestyle _pkgname=pycodestyle pkgver=2.5.0 pkgrel=5 pkgdesc="Check your Python code against some of the style conventions in PEP 8" url="https://pypi.python.org/pypi/pycodestyle/" arch="noarch" license="MIT" depends="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() { python3 setup.py test } package() { mkdir -p "$pkgdir"/usr/bin ln -s pycodestyle "$pkgdir"/usr/bin/pycodestyle-3 python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="b40d2b4fd6673f4115cb0fa056056ef39f4705ba8826bb2a4b91c98e542132951471e1226d697daeb6fac9a5520df5f8dde0931462e540ee2eb8b5f275eb2288 py3-pycodestyle-2.5.0.tar.gz"