diff options
Diffstat (limited to 'dev-python/sphinx')
-rw-r--r-- | dev-python/sphinx/Manifest | 2 | ||||
-rw-r--r-- | dev-python/sphinx/sphinx-7.2.6.ebuild | 132 |
2 files changed, 134 insertions, 0 deletions
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index e12d9827de17..57dd76878cfa 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -3,7 +3,9 @@ AUX sphinx-4.3.2-doc-link.patch 745 BLAKE2B 94f190d63168be99c4719a917f0a1210c562 DIST sphinx-6.2.1.gh.tar.gz 6729925 BLAKE2B 621ead516dc17cc632e9e752b56b5432547b6a051ede353d690dca0769664fc1c1335ec948f4035cb8c4307a563b4928d2587de3f3ec8d89dacf829a8fd5b95f SHA512 ba56fb9672dc2e156b6cfd0fc2252a989d44b199946a371ec5f1cda5840836b3a58e267ac0973f522479b472dbb07c6c2d7ae6b0c63c9adfbe82d36bd59a9465 DIST sphinx-7.1.2.gh.tar.gz 6882028 BLAKE2B 3ceabcb688824d929a5258978433b46a31666f423941dbed7641c7017745c4beb8b215714e1aa9c8a8b251bc4be1f5a7e80680a498ed808ed07178219dc31b65 SHA512 26827a6fa955665bc3b26ab882933eadcadf9a055bad9e8c98ca80a79a062ea8102950bbd4974b168c2bda62ae437976cf787401816c0804aa533f65a91efc24 DIST sphinx-7.2.5.gh.tar.gz 7067300 BLAKE2B 27e0c7f8916e36990e214f4c5013434ff0e1e0045513efdf4b16eb56f0865d4cb52db802a41e7f62cc18aae58457d03be6720c129854cc63f35a7537b361ba2d SHA512 6006ebd8d9034ef9bcb4963dcc1029503b4f9895d65c550cdbf0cbb898759127cca66079849703e17cae8420ed7cc43f6bd567b5cfa8127fb9d3be916be52c93 +DIST sphinx-7.2.6.gh.tar.gz 7067425 BLAKE2B 4da1cb5ccebea4df0dc134c552311d7b70ce9b76424ea4355ad67b1ece60c9b445e56c96b838832d4df2f50940832b3fa9555b596390464a4017a573bcf514c3 SHA512 204e859318ad5044639f2e682098b07c7cc675b54ba801feeb3322290bfd15316cc15a2cae8fa6a55e6ec6d1e9690790e5402652eb04720bfe96e172f4c8bdbc EBUILD sphinx-6.2.1.ebuild 4334 BLAKE2B 37c75ece4611798584ff0516f0842735780a52351f4999d775ea5fd53010b237e0e744a27e06cd745de825d39861e63e8ef750afe1fe9f99629d72b7d4507154 SHA512 6c8afb311063e8daeabfa279ca71f019a4b25106edcc547bb68fecf235d8c301e657ad5a1939a536d27d527957a27155ea2a1cb0eec1e98721859502729454c9 EBUILD sphinx-7.1.2.ebuild 4514 BLAKE2B c2afc74b10bddc30aee64112e854d57c4aca5d635f80c98a7a06574c51a73a1d71660c49f3d61ccd4f2e43c52dafbfc5fb6618fbec08f2a3913813fa3f1ed82a SHA512 c915e2f5c0162d169487abcf0d324cb1ffa597e902ab3bba91ffd7642e2a5266057d50a9c3a74c9882ae9a6175c458028b229457a70213f40acf43d7fef31289 EBUILD sphinx-7.2.5.ebuild 3994 BLAKE2B 9cc216559efcbc49c4f38f135323b617a1833b88a5e5605e070dbcbd260f4cb3c74f13c3f6b33ece56019f1b3d4219fa1ee745205a96612ceeb638d1859667ef SHA512 de7d09bfb15fac17ddd0f3fbd3e88271fa13de9a033294abcb93b1600942e63f14d2ceb168aff6ff3a2d926848213eece7d09a7109cb369cad0866baf6da0f62 +EBUILD sphinx-7.2.6.ebuild 4361 BLAKE2B fdddfe515c56468dafbbcc08b92ae4d9e2692da339dffb87f7091cfd2f4b54cde6bfe78346fb4a3bd232146aa5bb0ea36e242273e05f75651ab1734679874cd8 SHA512 d2db0a7614a36cedc678233c4212f80ed7642eac94a00185a5a740504825fc6fde28ea382780db7b87fb2e02d99cf809aad3fa6f3b134c853884e5b2bc4ae5b3 MISC metadata.xml 568 BLAKE2B ddb7175070df6da4088813cc6b66f25bb4364e2619b1e7da94370f7ce8e73b68b12f618412f81e6be57fcb0c60c10e3913f26a6a578b0f9defa7b9ee8091fcde SHA512 d32b37cbe88f5e3db0c6968bc7aa22c7edfb3794bf7c62facd17e7ae1f4f0fbfc7c9f5512230cce16ed32e2ebb70c23dfe9b36ce38785c5f5b76585410313214 diff --git a/dev-python/sphinx/sphinx-7.2.6.ebuild b/dev-python/sphinx/sphinx-7.2.6.ebuild new file mode 100644 index 000000000000..64c8ee42ce53 --- /dev/null +++ b/dev-python/sphinx/sphinx-7.2.6.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{10..12} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python documentation generator" +HOMEPAGE=" + https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinx/ + https://pypi.org/project/Sphinx/ +" +SRC_URI=" + https://github.com/sphinx-doc/sphinx/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="doc latex" + +RDEPEND=" + <dev-python/alabaster-0.8[${PYTHON_USEDEP}] + >=dev-python/Babel-2.9[${PYTHON_USEDEP}] + <dev-python/docutils-0.21[${PYTHON_USEDEP}] + >=dev-python/docutils-0.18.1[${PYTHON_USEDEP}] + >=dev-python/imagesize-1.3[${PYTHON_USEDEP}] + >=dev-python/jinja-3.0[${PYTHON_USEDEP}] + >=dev-python/pygments-2.14[${PYTHON_USEDEP}] + >=dev-python/requests-2.25.0[${PYTHON_USEDEP}] + >=dev-python/snowballstemmer-2.0[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] + >=dev-python/sphinxcontrib-serializinghtml-1.1.9[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] + >=dev-python/packaging-21.0[${PYTHON_USEDEP}] + latex? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + ) + !dev-python/namespace-sphinxcontrib +" +BDEPEND=" + doc? ( + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] + media-gfx/graphviz + ) + test? ( + app-text/dvipng + >=dev-python/cython-3.0.0[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + >=dev-python/setuptools-67.0[${PYTHON_USEDEP}] + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + virtual/imagemagick-tools[jpeg,png,svg] + ) +" + +PATCHES=( + "${FILESDIR}/sphinx-3.2.1-doc-link.patch" + "${FILESDIR}/sphinx-4.3.2-doc-link.patch" +) + +distutils_enable_tests pytest + +python_prepare_all() { + # disable internet access + sed -i -e 's:^intersphinx_mapping:disabled_&:' \ + doc/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile_all() { + # we can't use distutils_enable_sphinx because it would + # introduce a dep on itself + use doc && build_sphinx doc +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + + local EPYTEST_DESELECT=( + # these tests require Internet access + tests/test_build_latex.py::test_latex_images + # TODO + tests/test_ext_autodoc.py::test_cython + tests/test_ext_autodoc_autoclass.py::test_classes + tests/test_ext_autodoc_autofunction.py::test_classes + # looks like a bug in lualatex + "tests/test_build_latex.py::test_build_latex_doc[lualatex-howto-None]" + "tests/test_build_latex.py::test_build_latex_doc[lualatex-manual-None]" + # doesn't like paths? + tests/test_directive_other.py::test_include_source_read_event + # flaky + tests/test_build_linkcheck.py + # TODO: regressions in 7.2.6 + tests/test_ext_autodoc.py::test_autodoc + tests/test_ext_autodoc_automodule.py::test_subclass_of_mocked_object + tests/test_ext_autodoc_configs.py::test_mocked_module_imports + tests/test_ext_autosummary.py::test_autosummary_mock_imports + tests/test_util_typing.py::test_restify_mock + tests/test_util_typing.py::test_stringify_mock + ) + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( + tests/test_ext_autodoc.py::test_autodoc_inherited_members_None + tests/test_ext_autodoc.py::test_automethod_for_builtin + tests/test_ext_autodoc.py::test_partialfunction + tests/test_ext_autodoc_autofunction.py::test_builtin_function + tests/test_ext_autodoc_autofunction.py::test_methoddescriptor + tests/test_ext_autodoc_preserve_defaults.py::test_preserve_defaults_special_constructs + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped + tests/test_util_inspect.py::test_isattributedescriptor + tests/test_util_typing.py::test_is_invalid_builtin_class + ) + + # note: pytest-xdist causes random test failures + epytest +} |