summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakov Smolic <jakov.smolic@sartura.hr>2021-05-06 22:20:11 +0100
committerMichał Górny <mgorny@gentoo.org>2021-05-07 12:33:21 +0200
commit67c364b23c3236bb929834197406f6111729e9be (patch)
tree0ee9514c1d533b87a56d01e891c39dd6ada50860 /dev-python/wcwidth
parentdev-python/psycopg: Port to python3.10 (diff)
downloadgentoo-67c364b23c3236bb929834197406f6111729e9be.tar.gz
gentoo-67c364b23c3236bb929834197406f6111729e9be.tar.bz2
gentoo-67c364b23c3236bb929834197406f6111729e9be.zip
dev-python/wcwidth: Port to python3.10
Closes: https://bugs.gentoo.org/775077 Closes: https://bugs.gentoo.org/726864 Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr> Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/wcwidth')
-rw-r--r--dev-python/wcwidth/wcwidth-0.2.5-r1.ebuild13
1 files changed, 10 insertions, 3 deletions
diff --git a/dev-python/wcwidth/wcwidth-0.2.5-r1.ebuild b/dev-python/wcwidth/wcwidth-0.2.5-r1.ebuild
index be8b8824c2f8..c4313c41c6fe 100644
--- a/dev-python/wcwidth/wcwidth-0.2.5-r1.ebuild
+++ b/dev-python/wcwidth/wcwidth-0.2.5-r1.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} pypy3 )
+PYTHON_COMPAT=( python3_{7..10} pypy3 )
inherit distutils-r1
@@ -24,13 +24,20 @@ RDEPEND="
distutils_enable_tests pytest
-DOCS=()
-
src_prepare() {
sed -e 's:--cov-append::' \
-e 's:--cov-report=html::' \
-e 's:--cov=wcwidth::' \
-i tox.ini || die
sed -i -e 's:test_package_version:_&:' tests/test_core.py || die
+
+ # causes pytest to fail, bug 775077
+ sed -i '/^looponfailroots =/d' tox.ini || die
distutils-r1_src_prepare
}
+
+python_install_all() {
+ docinto docs
+ dodoc docs/intro.rst
+ distutils-r1_python_install_all
+}