mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-08 09:21:30 +01:00
39 lines
1.2 KiB
Plaintext
39 lines
1.2 KiB
Plaintext
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
|
|
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
|
|
pkgname=py3-pycodestyle
|
|
_pkgname=pycodestyle
|
|
pkgver=2.7.0
|
|
pkgrel=0
|
|
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="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 --prefix=/usr --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="9066ab243f98f5fe6f4d764289b5be2bd2a2b063e6273bd977025509faa2eabd197480b7a2522d4de89b0c6cec388950dad3c69c6d1aa3184883e00909815a2d py3-pycodestyle-2.7.0.tar.gz"
|