1 |
commit: 1484ad8c146f71c3e6de8e2d2de8453bf07bfaf9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 06:34:10 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 07:08:16 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1484ad8c |
7 |
|
8 |
dev-python/sphinx: Bump to 6.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-6.0.0.ebuild | 129 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 130 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
17 |
index eff8b03d6e5e..404d2847483e 100644 |
18 |
--- a/dev-python/sphinx/Manifest |
19 |
+++ b/dev-python/sphinx/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST Sphinx-4.5.0.tar.gz 6698212 BLAKE2B e6c46d35492c3d3068c4f97e497d33973ca86b40934578804fcec901fa89d2c52b45a7546b835b873846dd16936c1bd34a7b053aec8206c688d974671155fd56 SHA512 b44d2a81ed67adaefe16a07ae0cf053b5e6c775023aaa6c57d7b3950f171deac410e8004f787b151c3c2fc350650aa69a4dc2dc7239d1fd3d351e5194617cb2c |
22 |
DIST sphinx-5.3.0.gh.tar.gz 6873479 BLAKE2B c57ede5e3d83447c6152d050d45df73bced62ce0cdcd84ea6316a48bff072590ad036c469dee053a9dc5eb1a7ae53b350aa25b5fe14c3378dc6543186552f720 SHA512 6877635d46f2e1f2b4cf4edaca463d85bf740a13bbeb867486efd57904aacc42626e6a4f58ad971e50808d31391d068702c4f2910a95e5c86dbd68d87e2552c8 |
23 |
+DIST sphinx-6.0.0.gh.tar.gz 6713685 BLAKE2B b2e333efdbbd319c82203a0ee731ae8b0bc8a848b92773bdaa93b52c3841ab3802f68f698155b8ce4f65af93fdbe741c3e37775defde6111ee6ad5db89f968d8 SHA512 6efcbe57170cacec6f3c7f11f09094d096dc2afb7e0470c7cbdb9ea209dcbb782a6227a32de41974258555fa01986406a6564587f6b414594c452dcc6b8a06fc |
24 |
|
25 |
diff --git a/dev-python/sphinx/sphinx-6.0.0.ebuild b/dev-python/sphinx/sphinx-6.0.0.ebuild |
26 |
new file mode 100644 |
27 |
index 000000000000..b7f342d8090b |
28 |
--- /dev/null |
29 |
+++ b/dev-python/sphinx/sphinx-6.0.0.ebuild |
30 |
@@ -0,0 +1,129 @@ |
31 |
+# Copyright 1999-2022 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+DISTUTILS_USE_PEP517=flit |
37 |
+PYTHON_COMPAT=( python3_{8..11} pypy3 ) |
38 |
+PYTHON_REQ_USE="threads(+)" |
39 |
+ |
40 |
+inherit distutils-r1 |
41 |
+ |
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=" |
49 |
+ https://github.com/sphinx-doc/sphinx/archive/v${PV}.tar.gz |
50 |
+ -> ${P}.gh.tar.gz |
51 |
+" |
52 |
+ |
53 |
+LICENSE="BSD" |
54 |
+SLOT="0" |
55 |
+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" |
56 |
+IUSE="doc latex" |
57 |
+ |
58 |
+RDEPEND=" |
59 |
+ <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
60 |
+ >=dev-python/Babel-2.9[${PYTHON_USEDEP}] |
61 |
+ <dev-python/docutils-0.20[${PYTHON_USEDEP}] |
62 |
+ >=dev-python/docutils-0.18[${PYTHON_USEDEP}] |
63 |
+ >=dev-python/imagesize-1.3[${PYTHON_USEDEP}] |
64 |
+ >=dev-python/jinja-3.0[${PYTHON_USEDEP}] |
65 |
+ >=dev-python/pygments-2.12[${PYTHON_USEDEP}] |
66 |
+ >=dev-python/requests-2.25.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/snowballstemmer-2.0[${PYTHON_USEDEP}] |
68 |
+ dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] |
69 |
+ dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] |
70 |
+ dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}] |
73 |
+ dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/packaging-21.0[${PYTHON_USEDEP}] |
75 |
+ $(python_gen_cond_dep ' |
76 |
+ >=dev-python/importlib_metadata-4.8[${PYTHON_USEDEP}] |
77 |
+ ' 3.8 3.9) |
78 |
+ latex? ( |
79 |
+ dev-texlive/texlive-latexextra |
80 |
+ dev-texlive/texlive-luatex |
81 |
+ app-text/dvipng |
82 |
+ ) |
83 |
+ !dev-python/namespace-sphinxcontrib |
84 |
+" |
85 |
+BDEPEND=" |
86 |
+ doc? ( |
87 |
+ dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
88 |
+ media-gfx/graphviz |
89 |
+ ) |
90 |
+ test? ( |
91 |
+ app-text/dvipng |
92 |
+ dev-python/cython[${PYTHON_USEDEP}] |
93 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
94 |
+ dev-texlive/texlive-fontsextra |
95 |
+ dev-texlive/texlive-latexextra |
96 |
+ dev-texlive/texlive-luatex |
97 |
+ virtual/imagemagick-tools[jpeg,png,svg] |
98 |
+ ) |
99 |
+" |
100 |
+ |
101 |
+PATCHES=( |
102 |
+ "${FILESDIR}/sphinx-3.2.1-doc-link.patch" |
103 |
+ "${FILESDIR}/sphinx-4.3.2-doc-link.patch" |
104 |
+) |
105 |
+ |
106 |
+distutils_enable_tests pytest |
107 |
+ |
108 |
+python_prepare_all() { |
109 |
+ # disable internet access |
110 |
+ sed -i -e 's:^intersphinx_mapping:disabled_&:' \ |
111 |
+ doc/conf.py || die |
112 |
+ |
113 |
+ distutils-r1_python_prepare_all |
114 |
+} |
115 |
+ |
116 |
+python_compile_all() { |
117 |
+ if use doc; then |
118 |
+ esetup.py build_sphinx |
119 |
+ HTML_DOCS=( build/sphinx/html/. ) |
120 |
+ fi |
121 |
+} |
122 |
+ |
123 |
+python_test() { |
124 |
+ mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
125 |
+ local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
126 |
+ |
127 |
+ local EPYTEST_DESELECT=( |
128 |
+ # these tests require Internet access |
129 |
+ tests/test_build_latex.py::test_latex_images |
130 |
+ tests/test_build_linkcheck.py::test_defaults |
131 |
+ tests/test_build_linkcheck.py::test_defaults_json |
132 |
+ tests/test_build_linkcheck.py::test_anchors_ignored |
133 |
+ # TODO |
134 |
+ tests/test_ext_autodoc_autoclass.py::test_classes |
135 |
+ tests/test_ext_autodoc_autofunction.py::test_classes |
136 |
+ tests/test_ext_inheritance_diagram.py::test_import_classes |
137 |
+ # looks like a bug in lualatex |
138 |
+ "tests/test_build_latex.py::test_build_latex_doc[lualatex-howto]" |
139 |
+ "tests/test_build_latex.py::test_build_latex_doc[lualatex-manual]" |
140 |
+ ) |
141 |
+ [[ ${EPYTHON} == pypy3 ]] && EPYTEST_DESELECT+=( |
142 |
+ tests/test_ext_autodoc.py::test_autodoc_inherited_members_None |
143 |
+ tests/test_ext_autodoc.py::test_automethod_for_builtin |
144 |
+ tests/test_ext_autodoc.py::test_cython |
145 |
+ tests/test_ext_autodoc.py::test_partialfunction |
146 |
+ tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases |
147 |
+ tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type |
148 |
+ tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type |
149 |
+ tests/test_ext_autodoc_autofunction.py::test_builtin_function |
150 |
+ tests/test_ext_autodoc_autofunction.py::test_methoddescriptor |
151 |
+ tests/test_ext_autodoc_automodule.py::test_automodule_inherited_members |
152 |
+ tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module |
153 |
+ tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped |
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 |
+} |