mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-sphinxcontrib-programoutput: build with gpep517
This commit is contained in:
parent
19f9f272fc
commit
b87ba9e6f4
@ -3,13 +3,14 @@
|
||||
pkgname=py3-sphinxcontrib-programoutput
|
||||
_pkgname=sphinxcontrib-programoutput
|
||||
pkgver=0.17
|
||||
pkgrel=4
|
||||
pkgrel=5
|
||||
pkgdesc="Sphinx programoutput extension"
|
||||
url="https://sphinxcontrib-programoutput.readthedocs.io/en/latest/"
|
||||
arch="noarch"
|
||||
license="BSD-2-Clause"
|
||||
depends="python3 py3-sphinx"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-pytest"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/NextThought/$_pkgname/archive/$pkgver.tar.gz"
|
||||
|
||||
@ -19,15 +20,25 @@ provides="py-sphinxcontrib-programoutput=$pkgver-r$pkgrel" # Backwards compatibi
|
||||
builddir="$srcdir"/$_pkgname-$pkgver
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 setup.py test
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
local sitedir="$(echo .testenv/lib/python3*/site-packages)"
|
||||
export PYTHONPATH="$sitedir:$PYTHONPATH"
|
||||
# https://github.com/OpenNTI/sphinxcontrib-programoutput/issues/61
|
||||
.testenv/bin/python3 -m pytest "$sitedir" \
|
||||
--deselect "$sitedir/sphinxcontrib/programoutput/tests/test_directive.py::TestDirective::test_shell_with_unexpected_return_code" \
|
||||
--deselect "$sitedir/sphinxcontrib/programoutput/tests/test_directive.py::TestDirective::test_unexpected_return_code"
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
Loading…
Reference in New Issue
Block a user