Subject: [alpine-aports] [PATCH 1/2] py3-cairocffi: upgrade to 1.0.2

From: Drew DeVault <[email-masked]>
Date: Mon, 8 Jul 2019 16:47:23 -0400

---
 testing/py3-cairocffi/APKBUILD | 15 +++++++++++----
 1 file changed, 11 insertions(+), 4 deletions(-)

diff --git a/testing/py3-cairocffi/APKBUILD b/testing/py3-cairocffi/APKBUILD
index 2c817b85db..fcc49615e7 100644
--- a/testing/py3-cairocffi/APKBUILD
+++ b/testing/py3-cairocffi/APKBUILD
@@ -3,14 +3,16 @@
 # Maintainer: Stefan Wagner <[email-masked]>
 pkgname=py3-cairocffi
 _pkgname=cairocffi
-pkgver=0.9.0
-pkgrel=2
+pkgver=1.0.2
+pkgrel=0
 pkgdesc="Python CFFI-based binding to Cairo and GDK-PixBuf"
 url="https://pythonhosted.org/cairocffi/"
 arch="noarch"
 license="BSD-3-Clause"
 depends="python3 py3-cffi cairo gdk-pixbuf"
-checkdepends="py3-pytest py3-pytest-cov ttf-dejavu"
+checkdepends="
+	py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8 ttf-dejavu
+"
 makedepends="py3-setuptools"
 source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
 builddir="$srcdir"/$_pkgname-$pkgver
@@ -18,6 +20,11 @@ builddir="$srcdir"/$_pkgname-$pkgver
 replaces="py-cairocffi" # For backwards compatibiltiy
 provides="py-cairocffi=$pkgver-r$pkgrel" # For backwards compatibility
 
+prepare() {
+	# import ordering is broken upstream; remove in next version
+	sed -i setup.cfg -e 's/addopts = --flake8 --isort/addopts = --flake8/'
+}
+
 build() {
 	python3 setup.py build
 }
@@ -31,4 +38,4 @@ package() {
 }

-sha512sums="0d3d54e0d54b3696c8336d8b3a6d745628da51d9d9f8c50f36006c007e1432a95dd9bafd8d865923059d040cc4e9f7989b3670a5318383b357ffc979eeb920d5  cairocffi-0.9.0.tar.gz"
+sha512sums="0ae63be9d6ca4591d806e259ecb385086b053739de2e5098541078d4c142dd100b593a7712d5410a92ed7dbf6e9a7f7a5287f00425cd8d54ada421dae0cfd762  cairocffi-1.0.2.tar.gz"
-- 
2.22.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---