mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 19:36:48 +02:00
38 lines
1 KiB
Text
38 lines
1 KiB
Text
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=py3-xdoctest
|
|
pkgver=1.2.0
|
|
pkgrel=0
|
|
pkgdesc="A rewrite of the builtin doctest module"
|
|
url="https://github.com/Erotemic/xdoctest"
|
|
arch="noarch"
|
|
license="Apache-2.0"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
source="https://pypi.python.org/packages/source/x/xdoctest/xdoctest-$pkgver.tar.gz"
|
|
builddir="$srcdir/xdoctest-$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
|
|
# Disabled tests require xdoctest installed in system
|
|
.testenv/bin/python3 -m pytest -k "not test_xdoc_console_script_location and not test_xdoc_console_script_exec"
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
326ff3c0a8451a258675e7c4a8239d48565f5b0f56a01ddb3cea08a5c865659463dc4884b6748e68dd3cc1e59741afe8456b05e1aac22e5284a7febc34102f4e xdoctest-1.2.0.tar.gz
|
|
"
|