commit: 90ed7d74083d7b576a43666c70a79d33006034bd Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu May 29 06:52:13 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu May 29 06:53:28 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=90ed7d74
dev-python/svg-path: Strip explicit namespaces Closes: https://bugs.gentoo.org/956785 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> ...{svg-path-6.3.ebuild => svg-path-6.3-r1.ebuild} | 25 ++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) 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 5ebfa4f5bf5c..327b13bfa0d3 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 +}
