From 90ed7d74083d7b576a43666c70a79d33006034bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 29 May 2025 08:52:13 +0200 Subject: [PATCH] dev-python/svg-path: Strip explicit namespaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://bugs.gentoo.org/956785 Signed-off-by: Michał Górny --- ...path-6.3.ebuild => svg-path-6.3-r1.ebuild} | 25 ++++++++++++++----- 1 file changed, 19 insertions(+), 6 deletions(-) rename dev-python/svg-path/{svg-path-6.3.ebuild => svg-path-6.3-r1.ebuild} (55%) diff --git a/dev-python/svg-path/svg-path-6.3.ebuild b/dev-python/svg-path/svg-path-6.3-r1.ebuild similarity index 55% rename from dev-python/svg-path/svg-path-6.3.ebuild rename to dev-python/svg-path/svg-path-6.3-r1.ebuild index 5ebfa4f5bf5c2..327b13bfa0d3f 100644 --- a/dev-python/svg-path/svg-path-6.3.ebuild +++ b/dev-python/svg-path/svg-path-6.3-r1.ebuild @@ -33,9 +33,22 @@ BDEPEND=" distutils_enable_tests pytest -EPYTEST_DESELECT=( - # broken with new pillow version (also potentially super-fragile) - # https://github.com/regebro/svg.path/issues/103 - tests/test_boundingbox_image.py::BoundingBoxImageTest::test_image - tests/test_image.py::ImageTest::test_image -) +src_prepare() { + distutils-r1_src_prepare + + # strip explicit namespace + rm src/svg/__init__.py || die + sed -i -e '/packages/s@find:@find_namespace:@' setup.cfg || die +} + +python_test() { + local EPYTEST_DESELECT=( + # broken with new pillow version (also potentially super-fragile) + # https://github.com/regebro/svg.path/issues/103 + tests/test_boundingbox_image.py::BoundingBoxImageTest::test_image + tests/test_image.py::ImageTest::test_image + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}