aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-pydocstyle/APKBUILD
blob: 392a63e132b036fb4819a6f1f9410fe1feada3bf (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
# Contributor: Russ Webber <russ@rw.id.au>
# Maintainer: Russ Webber <russ@rw.id.au>
pkgname="py3-pydocstyle"
_pkgname="pydocstyle"
pkgver="5.0.2"
pkgrel=1
pkgdesc="Static analysis tool for checking compliance with Python docstring conventions"
url="https://www.pydocstyle.org/"
arch="noarch"
license="MIT"
depends="python3 py3-snowballstemmer"
makedepends="py3-setuptools py3-pytest py3-mock py3-six"
source="$_pkgname-$pkgver.tar.gz::https://github.com/PyCQA/$_pkgname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# integration tests call pip which doesn't exist
	PYTHONPATH="$builddir/build/lib" py.test --deselect src/tests/test_integration.py -vv src/tests
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="5ac2e017ae95ff5c7759d6a2cb9ac990f94f668f5fd940792d927cc62628cd036afcf39ab5db6a11100dcca32af344b47f4a7319dd3a47c36367844d0c06d34a  pydocstyle-5.0.2.tar.gz"