mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-11 13:16:45 +02:00
36 lines
1.1 KiB
Text
36 lines
1.1 KiB
Text
# Contributor: Galen Abell <galen@galenabell.com>
|
|
# Maintainer: Galen Abell <galen@galenabell.com>
|
|
pkgname=py3-sphinx-autoapi
|
|
_pyname=sphinx-autoapi
|
|
pkgver=3.6.0
|
|
pkgrel=0
|
|
pkgdesc="Automatic API documentation for Sphinx"
|
|
url="https://sphinx-autoapi.readthedocs.io"
|
|
arch="noarch !x86" # build breaks on x86
|
|
license="MIT"
|
|
depends="python3 py3-astroid py3-jinja2 py3-sphinx py3-anyascii py3-yaml"
|
|
makedepends="py3-gpep517 py3-flit-core py3-wheel"
|
|
checkdepends="py3-mock py3-pytest py3-beautifulsoup4"
|
|
subpackages="$pkgname-pyc"
|
|
source="$_pyname-$pkgver.tar.gz::https://github.com/readthedocs/sphinx-autoapi/archive/refs/tags/v$pkgver.tar.gz"
|
|
builddir="$srcdir/$_pyname-$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 -m 'not network'
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
sha512sums="
|
|
9b671e3ca66ae40e95ce6df89952e9c1f2bf644087d9deaeb0e305de217fc8154445ff947ad9806949603f0956d95ae6d97c711fea52dcd44aa8f828b74f6c3d sphinx-autoapi-3.6.0.tar.gz
|
|
"
|