mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
testing/m2r2: build with gpep517
This commit is contained in:
parent
9aaf7fa2e9
commit
eb48a5303b
@ -2,12 +2,13 @@
|
|||||||
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
|
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
|
||||||
pkgname=m2r2
|
pkgname=m2r2
|
||||||
pkgver=0.3.3
|
pkgver=0.3.3
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc="Markdown to reStructuredText converter"
|
pkgdesc="Markdown to reStructuredText converter"
|
||||||
url="https://crossnox.github.io/m2r2"
|
url="https://crossnox.github.io/m2r2"
|
||||||
arch="all"
|
arch="all"
|
||||||
license="MIT"
|
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"
|
checkdepends="py3-pytest py3-six"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="$pkgname-$pkgver.tar.gz::https://github.com/CrossNox/m2r2/archive/v$pkgver.tar.gz
|
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
|
options="!check" # fail for some reason
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
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() {
|
package() {
|
||||||
python3 setup.py install --skip-build --root="$pkgdir"
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user