Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/
Date: Mon, 30 May 2022 08:52:07
Message-Id: 1653900720.a603c23f5799965711b3a5208c862da30c375c80.mgorny@gentoo
1 commit: a603c23f5799965711b3a5208c862da30c375c80
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Mon May 30 05:39:19 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Mon May 30 08:52:00 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a603c23f
7
8 dev-python/sphinx: Bump to 5.0.0
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/sphinx/Manifest | 1 +
13 dev-python/sphinx/sphinx-5.0.0.ebuild | 130 ++++++++++++++++++++++++++++++++++
14 2 files changed, 131 insertions(+)
15
16 diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest
17 index 7184566ea1e6..8531236d67c4 100644
18 --- a/dev-python/sphinx/Manifest
19 +++ b/dev-python/sphinx/Manifest
20 @@ -1 +1,2 @@
21 DIST Sphinx-4.5.0.tar.gz 6698212 BLAKE2B e6c46d35492c3d3068c4f97e497d33973ca86b40934578804fcec901fa89d2c52b45a7546b835b873846dd16936c1bd34a7b053aec8206c688d974671155fd56 SHA512 b44d2a81ed67adaefe16a07ae0cf053b5e6c775023aaa6c57d7b3950f171deac410e8004f787b151c3c2fc350650aa69a4dc2dc7239d1fd3d351e5194617cb2c
22 +DIST Sphinx-5.0.0.tar.gz 6726986 BLAKE2B 95f2b85c7de6d900922730c3e431259e2333b3fe27e25cbe35e9584ccf1ac3442ca0949018e64ca8481e60f2298b46f6a77523a7a67e6aafe7492b62ff97aa70 SHA512 6b58427aa8a4d9e159f5b84366ab2193df5a9e940c9cb11b440dabd2c32dcdbadbb7eddbd9f6f8c53e577bf7bfb7c11f979835b5df75139b5c5315f88794871f
23
24 diff --git a/dev-python/sphinx/sphinx-5.0.0.ebuild b/dev-python/sphinx/sphinx-5.0.0.ebuild
25 new file mode 100644
26 index 000000000000..adceb91af590
27 --- /dev/null
28 +++ b/dev-python/sphinx/sphinx-5.0.0.ebuild
29 @@ -0,0 +1,130 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517=setuptools
36 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
37 +PYTHON_REQ_USE="threads(+)"
38 +
39 +inherit distutils-r1
40 +
41 +MY_P=${P^}
42 +DESCRIPTION="Python documentation generator"
43 +HOMEPAGE="
44 + https://www.sphinx-doc.org/
45 + https://github.com/sphinx-doc/sphinx/
46 + https://pypi.org/project/Sphinx/
47 +"
48 +SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz"
49 +S=${WORKDIR}/${MY_P}
50 +
51 +LICENSE="BSD"
52 +SLOT="0"
53 +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"
54 +IUSE="doc latex"
55 +
56 +RDEPEND="
57 + <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
58 + >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
59 + <dev-python/docutils-0.19[${PYTHON_USEDEP}]
60 + dev-python/imagesize[${PYTHON_USEDEP}]
61 + >=dev-python/jinja-2.3[${PYTHON_USEDEP}]
62 + >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
63 + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}]
64 + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}]
65 + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
66 + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}]
67 + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}]
68 + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}]
69 + >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}]
70 + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}]
71 + dev-python/packaging[${PYTHON_USEDEP}]
72 + $(python_gen_cond_dep '
73 + >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}]
74 + ' python3_{8,9} pypy3)
75 + latex? (
76 + dev-texlive/texlive-latexextra
77 + dev-texlive/texlive-luatex
78 + app-text/dvipng
79 + )
80 + !dev-python/namespace-sphinxcontrib
81 +"
82 +BDEPEND="
83 + doc? (
84 + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
85 + media-gfx/graphviz
86 + )
87 + test? (
88 + dev-python/html5lib[${PYTHON_USEDEP}]
89 + virtual/imagemagick-tools[jpeg,png,svg]
90 + dev-texlive/texlive-fontsextra
91 + dev-texlive/texlive-latexextra
92 + dev-texlive/texlive-luatex
93 + app-text/dvipng
94 + )
95 +"
96 +
97 +PATCHES=(
98 + "${FILESDIR}/sphinx-3.2.1-doc-link.patch"
99 + "${FILESDIR}/sphinx-4.3.2-doc-link.patch"
100 +)
101 +
102 +distutils_enable_tests pytest
103 +
104 +python_prepare_all() {
105 + # disable internet access
106 + sed -i -e 's:^intersphinx_mapping:disabled_&:' \
107 + doc/conf.py || die
108 +
109 + distutils-r1_python_prepare_all
110 +}
111 +
112 +python_compile_all() {
113 + if use doc; then
114 + esetup.py build_sphinx
115 + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
116 + fi
117 +}
118 +
119 +python_test() {
120 + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
121 + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
122 +
123 + local EPYTEST_DESELECT=(
124 + # these tests require Internet access
125 + tests/test_build_latex.py::test_latex_images
126 + tests/test_build_linkcheck.py::test_defaults
127 + tests/test_build_linkcheck.py::test_defaults_json
128 + tests/test_build_linkcheck.py::test_anchors_ignored
129 + tests/test_build_linkcheck.py::test_linkcheck_exclude_documents
130 + # TODO
131 + tests/test_ext_autodoc_autoclass.py::test_classes
132 + tests/test_ext_autodoc_autofunction.py::test_classes
133 + )
134 + [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=(
135 + tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails
136 + tests/test_ext_autodoc.py::test_autodoc_inherited_members_None
137 + tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables
138 + tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables
139 + tests/test_ext_autodoc.py::test_automethod_for_builtin
140 + tests/test_ext_autodoc.py::test_cython
141 + tests/test_ext_autodoc.py::test_partialfunction
142 + tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases
143 + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type
144 + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type
145 + tests/test_ext_autodoc_autodata.py::test_autodata_type_comment
146 + tests/test_ext_autodoc_autofunction.py::test_builtin_function
147 + tests/test_ext_autodoc_autofunction.py::test_methoddescriptor
148 + tests/test_ext_autodoc_automodule.py::test_automodule_inherited_members
149 + tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases
150 + tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature
151 + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module
152 + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped
153 + tests/test_pycode_parser.py::test_annotated_assignment
154 + tests/test_util_inspect.py::test_isattributedescriptor
155 + tests/test_util_typing.py::test_stringify_type_hints_pep_585
156 + )
157 +
158 + epytest
159 +}