1 |
commit: f1be7d4069aa349ff413c2b26a9024f800ef7bdd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 28 09:06:01 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 28 10:14:29 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1be7d40 |
7 |
|
8 |
dev-python/sphinx: Bump to 4.5.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-4.5.0.ebuild | 122 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 123 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
17 |
index e011e4c62a41..1292a42d7655 100644 |
18 |
--- a/dev-python/sphinx/Manifest |
19 |
+++ b/dev-python/sphinx/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST Sphinx-4.4.0.tar.gz 6690021 BLAKE2B 5f63a6a70b8fb663ff1729766183f8936c9cd3bab81437526fb099ccc2a49c2abd42b602e2fc37af79254a9c8f1238fb4c99f2659142e9b9c2c1a2bd385ac100 SHA512 f5780a7da7a5d758b0e145ab9a7f191a9c65fd3ca4624ca3a04f0d161e3cd6c7133df53ff56e42f012687cbce0460178c2e7957974b5b929b341c98db996c640 |
22 |
+DIST Sphinx-4.5.0.tar.gz 6698212 BLAKE2B e6c46d35492c3d3068c4f97e497d33973ca86b40934578804fcec901fa89d2c52b45a7546b835b873846dd16936c1bd34a7b053aec8206c688d974671155fd56 SHA512 b44d2a81ed67adaefe16a07ae0cf053b5e6c775023aaa6c57d7b3950f171deac410e8004f787b151c3c2fc350650aa69a4dc2dc7239d1fd3d351e5194617cb2c |
23 |
|
24 |
diff --git a/dev-python/sphinx/sphinx-4.5.0.ebuild b/dev-python/sphinx/sphinx-4.5.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..2229e8a7a853 |
27 |
--- /dev/null |
28 |
+++ b/dev-python/sphinx/sphinx-4.5.0.ebuild |
29 |
@@ -0,0 +1,122 @@ |
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..10} pypy3 ) |
37 |
+PYTHON_REQ_USE="threads(+)" |
38 |
+ |
39 |
+inherit distutils-r1 |
40 |
+ |
41 |
+DESCRIPTION="Python documentation generator" |
42 |
+HOMEPAGE="https://www.sphinx-doc.org/ |
43 |
+ https://github.com/sphinx-doc/sphinx" |
44 |
+SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
45 |
+S=${WORKDIR}/${P^} |
46 |
+ |
47 |
+LICENSE="BSD" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" |
50 |
+IUSE="doc latex" |
51 |
+ |
52 |
+RDEPEND=" |
53 |
+ <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
54 |
+ >=dev-python/Babel-1.3[${PYTHON_USEDEP}] |
55 |
+ <dev-python/docutils-0.18[${PYTHON_USEDEP}] |
56 |
+ dev-python/imagesize[${PYTHON_USEDEP}] |
57 |
+ >=dev-python/jinja-2.3[${PYTHON_USEDEP}] |
58 |
+ >=dev-python/pygments-2.0[${PYTHON_USEDEP}] |
59 |
+ >=dev-python/requests-2.5.0[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}] |
61 |
+ dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] |
62 |
+ dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] |
63 |
+ dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] |
66 |
+ dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] |
67 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
68 |
+ $(python_gen_cond_dep ' |
69 |
+ >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}] |
70 |
+ ' python3_{8,9} pypy3) |
71 |
+ latex? ( |
72 |
+ dev-texlive/texlive-latexextra |
73 |
+ dev-texlive/texlive-luatex |
74 |
+ app-text/dvipng |
75 |
+ )" |
76 |
+BDEPEND=" |
77 |
+ doc? ( |
78 |
+ dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
79 |
+ media-gfx/graphviz |
80 |
+ ) |
81 |
+ test? ( |
82 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
83 |
+ virtual/imagemagick-tools[jpeg,png,svg] |
84 |
+ dev-texlive/texlive-fontsextra |
85 |
+ dev-texlive/texlive-latexextra |
86 |
+ dev-texlive/texlive-luatex |
87 |
+ app-text/dvipng |
88 |
+ )" |
89 |
+ |
90 |
+PATCHES=( |
91 |
+ "${FILESDIR}/${PN}-3.2.1-doc-link.patch" |
92 |
+ "${FILESDIR}/${PN}-4.3.2-doc-link.patch" |
93 |
+) |
94 |
+ |
95 |
+distutils_enable_tests pytest |
96 |
+ |
97 |
+python_prepare_all() { |
98 |
+ # disable internet access |
99 |
+ sed -i -e 's:^intersphinx_mapping:disabled_&:' \ |
100 |
+ doc/conf.py || die |
101 |
+ |
102 |
+ distutils-r1_python_prepare_all |
103 |
+} |
104 |
+ |
105 |
+python_compile_all() { |
106 |
+ if use doc; then |
107 |
+ esetup.py build_sphinx |
108 |
+ HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) |
109 |
+ fi |
110 |
+} |
111 |
+ |
112 |
+python_test() { |
113 |
+ mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
114 |
+ local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
115 |
+ |
116 |
+ local EPYTEST_DESELECT=( |
117 |
+ # these tests require Internet access |
118 |
+ tests/test_build_latex.py::test_latex_images |
119 |
+ tests/test_build_linkcheck.py::test_defaults |
120 |
+ tests/test_build_linkcheck.py::test_defaults_json |
121 |
+ tests/test_build_linkcheck.py::test_anchors_ignored |
122 |
+ tests/test_build_linkcheck.py::test_linkcheck_exclude_documents |
123 |
+ # TODO |
124 |
+ tests/test_ext_autodoc_autoclass.py::test_classes |
125 |
+ tests/test_ext_autodoc_autofunction.py::test_classes |
126 |
+ ) |
127 |
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( |
128 |
+ tests/test_build_linkcheck.py::test_connect_to_selfsigned_fails |
129 |
+ tests/test_ext_autodoc.py::test_autodoc_inherited_members_None |
130 |
+ tests/test_ext_autodoc.py::test_autodoc_typed_inherited_instance_variables |
131 |
+ tests/test_ext_autodoc.py::test_autodoc_typed_instance_variables |
132 |
+ tests/test_ext_autodoc.py::test_automethod_for_builtin |
133 |
+ tests/test_ext_autodoc.py::test_cython |
134 |
+ tests/test_ext_autodoc.py::test_partialfunction |
135 |
+ tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases |
136 |
+ tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type |
137 |
+ tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type |
138 |
+ tests/test_ext_autodoc_autodata.py::test_autodata_type_comment |
139 |
+ tests/test_ext_autodoc_autofunction.py::test_builtin_function |
140 |
+ tests/test_ext_autodoc_autofunction.py::test_methoddescriptor |
141 |
+ tests/test_ext_autodoc_configs.py::test_autodoc_type_aliases |
142 |
+ tests/test_ext_autodoc_configs.py::test_autodoc_typehints_signature |
143 |
+ tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module |
144 |
+ tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped |
145 |
+ tests/test_pycode_parser.py::test_annotated_assignment |
146 |
+ tests/test_util_inspect.py::test_isattributedescriptor |
147 |
+ tests/test_util_typing.py::test_stringify_type_hints_pep_585 |
148 |
+ ) |
149 |
+ |
150 |
+ epytest |
151 |
+} |