aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-pycodestyle/APKBUILD
blob: 7a9b9a2ff08e72509e3a5106beaa7564b05a4749 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
# Maintainer: Keith Maxwell <keith.maxwell@gmail.com>
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"