mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
testing/py3-pygfm: build with gpep517
This commit is contained in:
parent
7f75215eda
commit
481b88914b
@ -4,14 +4,14 @@
|
||||
pkgname=py3-pygfm
|
||||
_pkgname=py-gfm
|
||||
pkgver=2.0.0
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Github-Flavored Markdown for Python-Markdown"
|
||||
options="!check"
|
||||
url="https://github.com/zopieux/py-gfm"
|
||||
arch="noarch !armv7"
|
||||
license="BSD-3-Clause"
|
||||
depends="python3 py3-markdown"
|
||||
makedepends="py3-setuptools"
|
||||
makedepends="py3-setuptools py3-gpep517"
|
||||
checkdepends="py3-codecov py3-coverage py3-coveralls"
|
||||
subpackages="$pkgname-pyc"
|
||||
source="$pkgname-$pkgver.tar.gz::https://github.com/Zopieux/py-gfm/archive/$pkgver.tar.gz"
|
||||
@ -21,15 +21,20 @@ replaces="py-pygfm" # Backwards compatibility
|
||||
provides="py-pygfm=$pkgver-r$pkgrel" # Backwards compatibility
|
||||
|
||||
build() {
|
||||
python3 setup.py build
|
||||
gpep517 build-wheel \
|
||||
--wheel-dir .dist \
|
||||
--output-fd 3 3>&1 >&2
|
||||
}
|
||||
|
||||
check() {
|
||||
python3 test.py
|
||||
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
||||
gpep517 install-wheel --destdir .testenv --prefix '' .dist/*.whl
|
||||
.testenv/bin/python3 test.py
|
||||
}
|
||||
|
||||
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