2023-02-03 08:17:48 +00:00
|
|
|
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
|
|
pkgname=py3-sphinxcontrib-autoprogram
|
2023-05-05 05:21:40 +00:00
|
|
|
pkgver=0.1.8
|
2024-04-16 03:17:47 +00:00
|
|
|
pkgrel=2
|
2023-02-03 08:17:48 +00:00
|
|
|
pkgdesc="Sphinx extension to document CLI programs"
|
|
|
|
url="https://github.com/sphinx-contrib/autoprogram"
|
|
|
|
arch="noarch"
|
|
|
|
license="BSD-2-Clause"
|
|
|
|
depends="python3 py3-six py3-sphinx"
|
2023-05-05 05:21:40 +00:00
|
|
|
makedepends="
|
|
|
|
py3-gpep517
|
|
|
|
py3-setuptools
|
|
|
|
py3-wheel
|
|
|
|
"
|
|
|
|
subpackages="$pkgname-pyc"
|
2023-02-03 08:17:48 +00:00
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/sphinx-contrib/autoprogram/archive/refs/tags/$pkgver.tar.gz
|
|
|
|
"
|
|
|
|
builddir="$srcdir/autoprogram-$pkgver"
|
2023-05-05 05:21:40 +00:00
|
|
|
options="!check" # no tests
|
2023-02-03 08:17:48 +00:00
|
|
|
|
|
|
|
build() {
|
2023-05-05 05:21:40 +00:00
|
|
|
gpep517 build-wheel \
|
2023-11-24 18:30:06 +00:00
|
|
|
--wheel-dir .dist \
|
2023-05-05 05:21:40 +00:00
|
|
|
--output-fd 3 3>&1 >&2
|
2023-02-03 08:17:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2023-11-24 18:30:06 +00:00
|
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
|
|
.testenv/bin/python3 -m unittest discover
|
2023-02-03 08:17:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-05-05 05:21:40 +00:00
|
|
|
python3 -m installer -d "$pkgdir" \
|
2023-11-24 18:30:06 +00:00
|
|
|
.dist/*.whl
|
2023-02-03 08:17:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-05-05 05:21:40 +00:00
|
|
|
bc07f25c34884f8e3130bbe5d2d6fb645f45aca5794c6b11a772f0351d680380d3e63cfe4b60aabf05ad8c6f44bae72e592500454598d31cc3c98dcbc8dbf899 py3-sphinxcontrib-autoprogram-0.1.8.tar.gz
|
2023-02-03 08:17:48 +00:00
|
|
|
"
|