mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2024-09-20 11:23:16 +00:00
testing/m2r2: build with gpep517
This commit is contained in:
parent
9aaf7fa2e9
commit
eb48a5303b
1 changed files with 11 additions and 5 deletions
|
@ -2,12 +2,13 @@
|
|||
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
|
||||
pkgname=m2r2
|
||||
pkgver=0.3.3
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="Markdown to reStructuredText converter"
|
||||
url="https://crossnox.github.io/m2r2"
|
||||
arch="all"
|
||||
license="MIT"
|
||||
depends="python3 py3-docutils py3-mistune1 py3-setuptools py3-setuptools_scm"
|
||||
depends="python3 py3-docutils py3-mistune1 py3-setuptools"
|
||||
makedepends="py3-setuptools_scm py3-gpep517"
|
||||
checkdepends="py3-pytest py3-six"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/CrossNox/m2r2/archive/v$pkgver.tar.gz
|
||||
|
@ -17,15 +18,20 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/CrossNox/m2r2/archive/v$pkgv
|
|||
options="!check" # fail for some reason
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
pytest
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 -m pytest
|
||||
}
|
||||
|
||||
package() {
|
||||
python3 setup.py install --skip-build --root="$pkgdir"
|
||||
gpep517 install-wheel --destdir "$pkgdir" \
|
||||
.dist/*.whl
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
|
|
Loading…
Reference in a new issue