From f569ac0485c258d3676e42befd70635ce55e2642 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Mon, 10 Jan 2022 08:29:38 +0100 Subject: [PATCH] py3-weasyprint: upgrade to 54.0 --- sr.ht/py3-weasyprint/APKBUILD | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/sr.ht/py3-weasyprint/APKBUILD b/sr.ht/py3-weasyprint/APKBUILD index 72fcf61..962c833 100644 --- a/sr.ht/py3-weasyprint/APKBUILD +++ b/sr.ht/py3-weasyprint/APKBUILD @@ -1,8 +1,8 @@ # Maintainer: Drew DeVault pkgname=py3-weasyprint _pyname=weasyprint -pkgver=53.4 -pkgrel=2 +pkgver=54.0 +pkgrel=0 pkgdesc="cairo-based HTML renderer for python" url="https://weasyprint.org" arch="noarch" @@ -11,24 +11,38 @@ depends=" pango cairo py3-cairocffi py3-cairosvg py3-cssselect2 py3-tinycss2 py3-pyphen py3-lxml py3-pdfrw py3-fonttools py3-pydyf " -makedepends="py3-setuptools" -checkdepends="py3-pytest-runner ghostscript" +makedepends="py3-setuptools pyproject2setuppy" +checkdepends=" + py3-pytest + py3-pytest-cov + py3-pytest-isort + py3-pytest-flake8 + py3-pytest-runner + ghostscript +" _pypiprefix="${_pyname%${_pyname#?}}" source="https://files.pythonhosted.org/packages/source/$_pypiprefix/$_pyname/$_pyname-$pkgver.tar.gz" builddir="$srcdir"/$_pyname-$pkgver +prepare() { + # Here's a cool idea: let's add a style linter to our test suite, then ship + # releases with style errors so that our release tarballs have failing + # tests! Brilliant! + sed -i pyproject.toml -e 's/--isort//' +} + build() { - python3 setup.py build + python3 -m pyproject2setuppy.main build } check() { - python3 setup.py check + python3 -m pytest } package() { - python3 setup.py install --prefix=/usr --root="$pkgdir" + python3 -m pyproject2setuppy.main install --prefix=/usr --root="$pkgdir" } sha512sums=" -7fcdedbecfa13434217b08491db62b9afd3e716d4ac6378490a04120c407ab1b20883227c32a77c9bd8c8dd7324fb505920264db3c9105d712fa4d7dcf3a1578 weasyprint-53.4.tar.gz +3f6595fa856a5ef97e6c0009de34c3c614b829618fc9a28d5728047bbb6edf4972576a5577ef57d588a645d09a76e87ceb8928cc5536fb3900e6525559bf643b weasyprint-54.0.tar.gz " -- 2.45.2