From 69f24988ef14e24c9e2e286a03699a739d7f92d9 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 20 Jun 2024 05:25:06 +0200 Subject: dev-python/openpyxl: Fix numpy-2 compatibility (replace deselect) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/openpyxl/openpyxl-3.1.4.ebuild | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'dev-python/openpyxl') diff --git a/dev-python/openpyxl/openpyxl-3.1.4.ebuild b/dev-python/openpyxl/openpyxl-3.1.4.ebuild index e1d43c5174d6..fc85d81542c8 100644 --- a/dev-python/openpyxl/openpyxl-3.1.4.ebuild +++ b/dev-python/openpyxl/openpyxl-3.1.4.ebuild @@ -35,18 +35,19 @@ distutils_enable_sphinx doc \ dev-python/sphinx-rtd-theme distutils_enable_tests pytest +src_prepare() { + distutils-r1_src_prepare + + # https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2187 + sed -i -e 's:float_:float64:' openpyxl/compat/tests/test_compat.py || die +} + python_test() { local EPYTEST_DESELECT=( # GC assumptions (pypy) openpyxl/tests/test_iter.py::test_file_descriptor_leak ) - if has_version ">=dev-python/numpy-2[${PYTHON_USEDEP}]"; then - EPYTEST_DESELECT+=( - # https://foss.heptapod.net/openpyxl/openpyxl/-/issues/2187 - openpyxl/compat/tests/test_compat.py::test_numpy_tostring - ) - fi - + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 epytest } -- cgit v1.2.3-65-gdbad