From 39e99b03c3bdb85f20423662f9319b0edf0ddc85 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Tue, 7 Feb 2023 22:54:41 -0500 Subject: dev-python/*: update Zope sphinx Signed-off-by: Julien Roy --- dev-python/persistent/persistent-5.0.ebuild | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'dev-python/persistent/persistent-5.0.ebuild') diff --git a/dev-python/persistent/persistent-5.0.ebuild b/dev-python/persistent/persistent-5.0.ebuild index 9e9d5b6..f3f32d7 100644 --- a/dev-python/persistent/persistent-5.0.ebuild +++ b/dev-python/persistent/persistent-5.0.ebuild @@ -15,6 +15,8 @@ SRC_URI="https://github.com/zopefoundation/persistent/archive/${PV}.tar.gz -> ${ LICENSE="ZPL" SLOT="0" KEYWORDS="~amd64" +# Zope Testrunner +RESTRICT="test" RDEPEND=" dev-python/cffi[${PYTHON_USEDEP}] @@ -41,7 +43,16 @@ src_unpack() { "${S}/src/persistent/tests/test_persistence.py" || die } -src_test() { - cd "${S}/src/persistent" || die - distutils-r1_src_test +python_compile_all() { + # Create Zope Namespace + mkdir -p "${BUILD_DIR}/install$(python_get_sitedir)/zope" || die + echo "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" > \ + "${BUILD_DIR}/install$(python_get_sitedir)/zope/__init__.py" || die + build_sphinx docs + rm "${BUILD_DIR}/install$(python_get_sitedir)/zope/__init__.py" } + +# src_test() { +# cd "${S}/src/persistent" || die +# distutils-r1_src_test +# } -- cgit v1.2.3