mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-26 12:45:20 +03:00
35 lines
1.1 KiB
Text
35 lines
1.1 KiB
Text
# Contributor: Duncan Bellamy <dunk@denkimushi.com>
|
|
# Maintainer: Duncan Bellamy <dunk@denkimushi.com>
|
|
pkgname=py3-sphinxcontrib-apidoc
|
|
pkgver=0.4.0
|
|
pkgrel=0
|
|
pkgdesc="A Sphinx extension for running sphinx-apidoc on each build"
|
|
url="https://github.com/sphinx-contrib/apidoc"
|
|
arch="noarch"
|
|
license="BSD-2-Clause"
|
|
depends="py3-sphinx"
|
|
makedepends="py3-gpep517 py3-pbr py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://files.pythonhosted.org/packages/source/s/sphinxcontrib-apidoc/sphinxcontrib-apidoc-$pkgver.tar.gz"
|
|
builddir="$srcdir/sphinxcontrib-apidoc-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
1e33fd6df91adfb65ea511fe5ee55ccff9a237488cca406f46b33a2bf8eb69b884b274e9c94bfd868fef67b2e0dfbb19f5e2d62486c54a85755a9034ca5c715c sphinxcontrib-apidoc-0.4.0.tar.gz
|
|
"
|