summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-04-20 09:05:30 +0200
committerMichał Górny <mgorny@gentoo.org>2020-04-20 09:41:38 +0200
commitc76d97f426da553bef178a216d48ec951dc50275 (patch)
treea8c67d923908289edf99d7a8f9a15558ba01f243 /dev-python/pdfrw
parentdev-python/pdfrw: Enable tests (diff)
downloadgentoo-c76d97f426da553bef178a216d48ec951dc50275.tar.gz
gentoo-c76d97f426da553bef178a216d48ec951dc50275.tar.bz2
gentoo-c76d97f426da553bef178a216d48ec951dc50275.zip
dev-python/pdfrw: Enable py3.{7,8}
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/pdfrw')
-rw-r--r--dev-python/pdfrw/pdfrw-0.4.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/dev-python/pdfrw/pdfrw-0.4.ebuild b/dev-python/pdfrw/pdfrw-0.4.ebuild
index 3c4fb0e43fe8..5059fdaf8e5c 100644
--- a/dev-python/pdfrw/pdfrw-0.4.ebuild
+++ b/dev-python/pdfrw/pdfrw-0.4.ebuild
@@ -3,7 +3,7 @@
EAPI=6
-PYTHON_COMPAT=( python2_7 python3_6 )
+PYTHON_COMPAT=( python2_7 python3_{6,7,8} )
inherit distutils-r1
@@ -38,8 +38,11 @@ src_prepare() {
sed -e 's:test_rl1_platypus:_&:' \
-i tests/test_examples.py || die
# fails with py3
- sed -e '/repaginate\/7037/s:dd41b0104f185206b51e7ffe5b07d261:skip:' \
+ sed -e '/repaginate\/7037/s:[0-9a-f]*$:skip:' \
+ -e '/.*\/72eb/s:[0-9a-f]*$:skip:' \
-i tests/expected.txt || die
+ # fix py3.7+
+ sed -i -e 's:raise StopIteration:return:' pdfrw/tokens.py || die
distutils-r1_src_prepare
}