mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 05:17:07 +02:00
testing/py3-protego: build with gpep517
This commit is contained in:
parent
e1cf6fd6df
commit
4c488270ec
@ -2,28 +2,33 @@
|
|||||||
# Maintainer: prspkt <prspkt@protonmail.com>
|
# Maintainer: prspkt <prspkt@protonmail.com>
|
||||||
pkgname=py3-protego
|
pkgname=py3-protego
|
||||||
pkgver=0.3.0
|
pkgver=0.3.0
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
|
pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
|
||||||
url="https://github.com/scrapy/protego"
|
url="https://github.com/scrapy/protego"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
license="BSD-3-Clause"
|
license="BSD-3-Clause"
|
||||||
depends="python3"
|
depends="python3"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest"
|
checkdepends="py3-pytest"
|
||||||
subpackages="$pkgname-pyc"
|
subpackages="$pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
|
source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
|
||||||
builddir="$srcdir/Protego-$pkgver"
|
builddir="$srcdir/Protego-$pkgver"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
python3 setup.py build
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir .dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
}
|
}
|
||||||
|
|
||||||
check() {
|
check() {
|
||||||
PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m 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