testing/py3-recommonmark: build with gpep517

This commit is contained in:
ptrcnull 2024-08-05 22:33:59 +02:00
parent 96cba284d5
commit 68e8173ff2

View File

@ -3,29 +3,34 @@
pkgname=py3-recommonmark pkgname=py3-recommonmark
_pyname=recommonmark _pyname=recommonmark
pkgver=0.7.1 pkgver=0.7.1
pkgrel=3 pkgrel=4
pkgdesc="A docutils-compatibility bridge to CommonMark" pkgdesc="A docutils-compatibility bridge to CommonMark"
url="https://github.com/readthedocs/recommonmark" url="https://github.com/readthedocs/recommonmark"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="python3 py3-commonmark>=0.8.1 py3-docutils py3-sphinx" depends="python3 py3-commonmark>=0.8.1 py3-docutils py3-sphinx"
makedepends="py3-setuptools" makedepends="py3-setuptools py3-gpep517"
checkdepends="py3-pytest" checkdepends="py3-pytest"
subpackages="$pkgname-pyc" subpackages="$pkgname-pyc"
source="$_pyname-$pkgver.tar.gz::https://github.com/readthedocs/$_pyname/archive/$pkgver.tar.gz" source="$_pyname-$pkgver.tar.gz::https://github.com/readthedocs/$_pyname/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver" builddir="$srcdir/$_pyname-$pkgver"
build() { build() {
python3 setup.py build gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
} }
check() { check() {
rm -f tests/test_sphinx.py rm -f tests/test_sphinx.py
pytest-3 python3 -m venv --clear --without-pip --system-site-packages .testenv
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
.testenv/bin/python3 -m pytest
} }
package() { package() {
python3 setup.py install --skip-build --root="$pkgdir" gpep517 install-wheel --destdir "$pkgdir" \
.dist/*.whl
} }
sha512sums=" sha512sums="