diff options
author | Michał Górny <mgorny@gentoo.org> | 2022-02-04 19:19:44 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2022-02-04 19:32:22 +0100 |
commit | 2a63857867e69f9ffa053987d6144849c162d544 (patch) | |
tree | 520dfe802a796299ada71cbd6ba8461bde5dcb5c /dev-python/jaraco-packaging | |
parent | app-containers/conmon: Bump to version 2.1.0 (diff) | |
download | gentoo-2a63857867e69f9ffa053987d6144849c162d544.tar.gz gentoo-2a63857867e69f9ffa053987d6144849c162d544.tar.bz2 gentoo-2a63857867e69f9ffa053987d6144849c162d544.zip |
dev-python/jaraco-packaging: Fix ns-caused import failures
Closes: https://bugs.gentoo.org/832713
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/jaraco-packaging')
-rw-r--r-- | dev-python/jaraco-packaging/jaraco-packaging-8.2.1.ebuild | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/dev-python/jaraco-packaging/jaraco-packaging-8.2.1.ebuild b/dev-python/jaraco-packaging/jaraco-packaging-8.2.1.ebuild index b8a84cd90ee3..b81efcb5631b 100644 --- a/dev-python/jaraco-packaging/jaraco-packaging-8.2.1.ebuild +++ b/dev-python/jaraco-packaging/jaraco-packaging-8.2.1.ebuild @@ -27,3 +27,14 @@ BDEPEND=" distutils_enable_sphinx docs '>=dev-python/rst-linker-1.9' distutils_enable_tests pytest + +src_test() { + # create a pkgutil-style __init__.py in order to fix pytest's + # determination of package paths + # https://bugs.gentoo.org/832713 + cat > jaraco/__init__.py <<-EOF || die + __path__ = __import__('pkgutil').extend_path(__path__, __name__) + EOF + distutils-r1_src_test + rm jaraco/__init__.py || die +} |