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: Fri, 03 Jun 2022 05:37:49
Message-Id: 1654234660.df78c9d1581662e28dc12f0ecfd3d78c604c3b8e.mgorny@gentoo
1 commit: df78c9d1581662e28dc12f0ecfd3d78c604c3b8e
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jun 3 05:17:33 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 3 05:37:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df78c9d1
7
8 dev-python/sphinx: Bump to 5.0.1
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.1.ebuild | 122 ++++++++++++++++++++++++++++++++++
14 2 files changed, 123 insertions(+)
15
16 diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest
17 index 8531236d67c4..eba82d499de6 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.0.0.tar.gz 6726986 BLAKE2B 95f2b85c7de6d900922730c3e431259e2333b3fe27e25cbe35e9584ccf1ac3442ca0949018e64ca8481e60f2298b46f6a77523a7a67e6aafe7492b62ff97aa70 SHA512 6b58427aa8a4d9e159f5b84366ab2193df5a9e940c9cb11b440dabd2c32dcdbadbb7eddbd9f6f8c53e577bf7bfb7c11f979835b5df75139b5c5315f88794871f
23 +DIST Sphinx-5.0.1.tar.gz 6728011 BLAKE2B fe75d6bae6c035ee8ce24e3edb8ed8df9973835bdc935170775a7e80e1420bb0dee31976343dd0c3791508cc944f7b9ea44793569a94dc03756ab02d313e26d6 SHA512 6a850860fd7a320c49f2d406c511d1e7e2fc0e044911f98be3a07b1d519e79d57cd2d16c0042926255323625f186a26509772b425611fea85dfbeaae7e8e06c1
24
25 diff --git a/dev-python/sphinx/sphinx-5.0.1.ebuild b/dev-python/sphinx/sphinx-5.0.1.ebuild
26 new file mode 100644
27 index 000000000000..64cbb666842a
28 --- /dev/null
29 +++ b/dev-python/sphinx/sphinx-5.0.1.ebuild
30 @@ -0,0 +1,122 @@
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=setuptools
37 +PYTHON_COMPAT=( python3_{8..11} pypy3 )
38 +PYTHON_REQ_USE="threads(+)"
39 +
40 +inherit distutils-r1
41 +
42 +MY_P=${P^}
43 +DESCRIPTION="Python documentation generator"
44 +HOMEPAGE="
45 + https://www.sphinx-doc.org/
46 + https://github.com/sphinx-doc/sphinx/
47 + https://pypi.org/project/Sphinx/
48 +"
49 +SRC_URI="mirror://pypi/${MY_P::1}/${PN^}/${MY_P}.tar.gz"
50 +S=${WORKDIR}/${MY_P}
51 +
52 +LICENSE="BSD"
53 +SLOT="0"
54 +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"
55 +IUSE="doc latex"
56 +
57 +RDEPEND="
58 + <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
59 + >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
60 + <dev-python/docutils-0.19[${PYTHON_USEDEP}]
61 + dev-python/imagesize[${PYTHON_USEDEP}]
62 + >=dev-python/jinja-2.3[${PYTHON_USEDEP}]
63 + >=dev-python/pygments-2.0[${PYTHON_USEDEP}]
64 + >=dev-python/requests-2.5.0[${PYTHON_USEDEP}]
65 + >=dev-python/snowballstemmer-1.1[${PYTHON_USEDEP}]
66 + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}]
67 + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}]
68 + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}]
69 + >=dev-python/sphinxcontrib-htmlhelp-2.0.0[${PYTHON_USEDEP}]
70 + >=dev-python/sphinxcontrib-serializinghtml-1.1.5[${PYTHON_USEDEP}]
71 + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}]
72 + dev-python/packaging[${PYTHON_USEDEP}]
73 + $(python_gen_cond_dep '
74 + >=dev-python/importlib_metadata-4.4[${PYTHON_USEDEP}]
75 + ' 3.8 3.9)
76 + latex? (
77 + dev-texlive/texlive-latexextra
78 + dev-texlive/texlive-luatex
79 + app-text/dvipng
80 + )
81 + !dev-python/namespace-sphinxcontrib
82 +"
83 +BDEPEND="
84 + doc? (
85 + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}]
86 + media-gfx/graphviz
87 + )
88 + test? (
89 + dev-python/html5lib[${PYTHON_USEDEP}]
90 + virtual/imagemagick-tools[jpeg,png,svg]
91 + dev-texlive/texlive-fontsextra
92 + dev-texlive/texlive-latexextra
93 + dev-texlive/texlive-luatex
94 + app-text/dvipng
95 + )
96 +"
97 +
98 +PATCHES=(
99 + "${FILESDIR}/sphinx-3.2.1-doc-link.patch"
100 + "${FILESDIR}/sphinx-4.3.2-doc-link.patch"
101 +)
102 +
103 +distutils_enable_tests pytest
104 +
105 +python_prepare_all() {
106 + # disable internet access
107 + sed -i -e 's:^intersphinx_mapping:disabled_&:' \
108 + doc/conf.py || die
109 +
110 + distutils-r1_python_prepare_all
111 +}
112 +
113 +python_compile_all() {
114 + if use doc; then
115 + esetup.py build_sphinx
116 + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
117 + fi
118 +}
119 +
120 +python_test() {
121 + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
122 + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
123 +
124 + local EPYTEST_DESELECT=(
125 + # these tests require Internet access
126 + tests/test_build_latex.py::test_latex_images
127 + tests/test_build_linkcheck.py::test_defaults
128 + tests/test_build_linkcheck.py::test_defaults_json
129 + tests/test_build_linkcheck.py::test_anchors_ignored
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_ext_autodoc.py::test_autodoc_inherited_members_None
136 + tests/test_ext_autodoc.py::test_automethod_for_builtin
137 + tests/test_ext_autodoc.py::test_cython
138 + tests/test_ext_autodoc.py::test_partialfunction
139 + tests/test_ext_autodoc_autoclass.py::test_autodoc_process_bases
140 + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_decendants_of_generic_type
141 + tests/test_ext_autodoc_autoclass.py::test_show_inheritance_for_subclass_of_generic_type
142 + tests/test_ext_autodoc_autofunction.py::test_builtin_function
143 + tests/test_ext_autodoc_autofunction.py::test_methoddescriptor
144 + tests/test_ext_autodoc_automodule.py::test_automodule_inherited_members
145 + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module
146 + tests/test_ext_autosummary.py::test_autosummary_generate_content_for_module_skipped
147 + tests/test_util_inspect.py::test_isattributedescriptor
148 + tests/test_util_typing.py::test_stringify_type_hints_pep_585
149 + )
150 +
151 + epytest
152 +}