mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/urlwatch: build with gpep517
This commit is contained in:
parent
e63513bbd6
commit
c531d9be54
@ -2,7 +2,7 @@
|
|||||||
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
|
||||||
pkgname=urlwatch
|
pkgname=urlwatch
|
||||||
pkgver=2.28
|
pkgver=2.28
|
||||||
pkgrel=1
|
pkgrel=2
|
||||||
pkgdesc="Tool for monitoring webpages for updates"
|
pkgdesc="Tool for monitoring webpages for updates"
|
||||||
url="https://thp.io/2008/urlwatch/"
|
url="https://thp.io/2008/urlwatch/"
|
||||||
arch="noarch !ppc64le" # blocked by py3-keyring
|
arch="noarch !ppc64le" # blocked by py3-keyring
|
||||||
@ -17,7 +17,7 @@ depends="
|
|||||||
py3-requests
|
py3-requests
|
||||||
py3-yaml
|
py3-yaml
|
||||||
"
|
"
|
||||||
makedepends="py3-setuptools"
|
makedepends="py3-setuptools py3-gpep517"
|
||||||
checkdepends="py3-pytest py3-docutils py3-pycodestyle"
|
checkdepends="py3-pytest py3-docutils py3-pycodestyle"
|
||||||
subpackages="$pkgname-doc $pkgname-pyc"
|
subpackages="$pkgname-doc $pkgname-pyc"
|
||||||
source="https://files.pythonhosted.org/packages/source/u/urlwatch/urlwatch-$pkgver.tar.gz
|
source="https://files.pythonhosted.org/packages/source/u/urlwatch/urlwatch-$pkgver.tar.gz
|
||||||
@ -25,15 +25,20 @@ source="https://files.pythonhosted.org/packages/source/u/urlwatch/urlwatch-$pkgv
|
|||||||
"
|
"
|
||||||
|
|
||||||
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 --root="$pkgdir" --skip-build
|
gpep517 install-wheel --destdir "$pkgdir" \
|
||||||
|
.dist/*.whl
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="
|
sha512sums="
|
||||||
|
Loading…
Reference in New Issue
Block a user