mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-25 21:08:35 -07:00
dev-python/matplotlib: Fix flaky usage and test deps
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -89,6 +89,7 @@ BDEPEND="
|
||||
>=media-gfx/graphviz-2.42.3[cairo]
|
||||
)
|
||||
test? (
|
||||
dev-python/flaky[${PYTHON_USEDEP}]
|
||||
dev-python/mock[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[cairo?,${PYTHON_USEDEP}]
|
||||
x11-libs/gtk+:3[introspection]
|
||||
@@ -99,7 +100,7 @@ BDEPEND="
|
||||
# Other than that, the ebuild shall be fit for out-of-source build.
|
||||
DISTUTILS_IN_SOURCE_BUILD=1
|
||||
|
||||
distutils_enable_tests nose
|
||||
distutils_enable_tests pytest
|
||||
|
||||
pkg_setup() {
|
||||
unset DISPLAY # bug #278524
|
||||
@@ -139,6 +140,9 @@ python_prepare_all() {
|
||||
-i lib/matplotlib/{mathtext,fontconfig_pattern}.py \
|
||||
|| die "sed pyparsing failed"
|
||||
|
||||
sed -e 's:\(@pytest.mark.flaky\)(reruns=3):\1:' \
|
||||
-i lib/matplotlib/tests/test_*.py || die
|
||||
|
||||
hprefixify setupext.py
|
||||
|
||||
rm -rf libqhull || die
|
||||
|
||||
Reference in New Issue
Block a user