1 |
commit: 488343caa60ebacb1a4ba8a95498fe87263d120a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Mar 2 15:32:52 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 2 20:22:21 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=488343ca |
7 |
|
8 |
dev-python/sphinx: Bump to 2.4.3 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/683194 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
dev-python/sphinx/Manifest | 1 + |
14 |
dev-python/sphinx/sphinx-2.4.3.ebuild | 106 ++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 107 insertions(+) |
16 |
|
17 |
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest |
18 |
index eb30947ca40..1f76e63d576 100644 |
19 |
--- a/dev-python/sphinx/Manifest |
20 |
+++ b/dev-python/sphinx/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST Sphinx-1.7.5.tar.gz 4726802 BLAKE2B 8d828dcae1f3ebb813c5f2de8c096a3fac4ab88b424955c27592349c544b775a21703c904a54efa7f86e1967198f4950804904a82a7142a3499f33c5343506e3 SHA512 db2a8df2cdb2ed78ce2341175575c2b04a149451b2bc8a4f74ddc73e308a19d505874fdbae4e370ce48a9b1cdb4de47cdab489bc57c1b378e857d5b8d04a07b8 |
23 |
DIST Sphinx-2.0.1.tar.gz 6017030 BLAKE2B a446aab8c7f5a4adc93477f4f60ca975690cb4c507d6e51393a4b2c4c56563b9a12e3ea3f85d214c6bdbc7834be107384fe9029d09a73da207fd9699c4b77ab8 SHA512 28430912917a8e3eb6efe6b69268e2a5ae06795c261f2a18ef62f781e365396832c4e4bcfaad7704b1c5f840e98a9dfb82e3b438a491a13cea5c10bee66bf23b |
24 |
+DIST Sphinx-2.4.3.tar.gz 5711784 BLAKE2B 624bfad7bfb75f568ea28063ac909685a3f563dfff4605ea212fa53bf79b50e7743f1b642ccb1f73b899cfd33841977203ee73d7ab624d553889cd071f204535 SHA512 cafd3b185210f3f2ccab48508d3abde50178ffa30136c0302c5855780b316f976566891ad4852f246ed5ebfa95e56701ef5096ca7dc98d91f3ba4e84754c8f6e |
25 |
|
26 |
diff --git a/dev-python/sphinx/sphinx-2.4.3.ebuild b/dev-python/sphinx/sphinx-2.4.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..2f474efa635 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/sphinx/sphinx-2.4.3.ebuild |
31 |
@@ -0,0 +1,106 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
38 |
+PYTHON_COMPAT=( python3_{6,7,8} pypy3 ) |
39 |
+PYTHON_REQ_USE="threads(+)" |
40 |
+ |
41 |
+inherit distutils-r1 |
42 |
+ |
43 |
+DESCRIPTION="Python documentation generator" |
44 |
+HOMEPAGE="https://www.sphinx-doc.org/ |
45 |
+ https://github.com/sphinx-doc/sphinx" |
46 |
+SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" |
51 |
+IUSE="doc latex test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+RDEPEND=" |
55 |
+ <dev-python/alabaster-0.8[${PYTHON_USEDEP}] |
56 |
+ dev-python/Babel[${PYTHON_USEDEP}] |
57 |
+ dev-python/docutils[${PYTHON_USEDEP}] |
58 |
+ dev-python/imagesize[${PYTHON_USEDEP}] |
59 |
+ dev-python/jinja[${PYTHON_USEDEP}] |
60 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
61 |
+ dev-python/requests[${PYTHON_USEDEP}] |
62 |
+ dev-python/snowballstemmer[${PYTHON_USEDEP}] |
63 |
+ dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] |
64 |
+ dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] |
65 |
+ dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] |
66 |
+ dev-python/sphinxcontrib-htmlhelp[${PYTHON_USEDEP}] |
67 |
+ dev-python/sphinxcontrib-serializinghtml[${PYTHON_USEDEP}] |
68 |
+ dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] |
69 |
+ dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
70 |
+ dev-python/packaging[${PYTHON_USEDEP}] |
71 |
+ latex? ( |
72 |
+ dev-texlive/texlive-latexextra |
73 |
+ dev-texlive/texlive-luatex |
74 |
+ app-text/dvipng |
75 |
+ )" |
76 |
+DEPEND="${RDEPEND} |
77 |
+ dev-python/setuptools[${PYTHON_USEDEP}] |
78 |
+ doc? ( |
79 |
+ dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] |
80 |
+ ) |
81 |
+ test? ( |
82 |
+ dev-python/html5lib[${PYTHON_USEDEP}] |
83 |
+ dev-python/pytest[${PYTHON_USEDEP}] |
84 |
+ virtual/imagemagick-tools[jpeg,png,svg] |
85 |
+ dev-texlive/texlive-latexextra |
86 |
+ dev-texlive/texlive-luatex |
87 |
+ app-text/dvipng |
88 |
+ )" |
89 |
+ |
90 |
+S="${WORKDIR}/${P^}" |
91 |
+ |
92 |
+python_prepare_all() { |
93 |
+ # remove tests that fail due to network-sandbox |
94 |
+ rm tests/test_build_linkcheck.py || die "Failed to remove web tests" |
95 |
+ sed -i -e 's:test_latex_images:_&:' tests/test_build_latex.py || die |
96 |
+ |
97 |
+ # fail under pypy3 |
98 |
+ sed -i -e '/def test_partialfunction/i\ |
99 |
+@×××××××××××.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ |
100 |
+ -e '/def test_autodoc_typed_instance_variables/i\ |
101 |
+@×××××××××××.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ |
102 |
+ tests/test_autodoc.py || die |
103 |
+ sed -i -e '11aimport sys' \ |
104 |
+ -e '/def test_autodoc_typehints_signature/i\ |
105 |
+@×××××××××××.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ |
106 |
+ tests/test_ext_autodoc_configs.py || die |
107 |
+ sed -i -e '/def test_annotated_assignment_py36/i\ |
108 |
+@×××××××××××.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ |
109 |
+ tests/test_pycode_parser.py || die |
110 |
+ |
111 |
+ distutils-r1_python_prepare_all |
112 |
+} |
113 |
+ |
114 |
+python_compile() { |
115 |
+ distutils-r1_python_compile |
116 |
+ |
117 |
+ # Generate the grammar. It will be caught by install somehow. |
118 |
+ # Note that the tests usually do it for us. However, I don't want |
119 |
+ # to trust USE=test really running all the tests, especially |
120 |
+ # with FEATURES=test-fail-continue. |
121 |
+ pushd "${BUILD_DIR}"/lib >/dev/null || die |
122 |
+ "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." |
123 |
+ popd >/dev/null || die |
124 |
+} |
125 |
+ |
126 |
+python_compile_all() { |
127 |
+ if use doc; then |
128 |
+ esetup.py build_sphinx |
129 |
+ HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) |
130 |
+ fi |
131 |
+} |
132 |
+ |
133 |
+python_test() { |
134 |
+ mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die |
135 |
+ local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" |
136 |
+ pytest -vv || die "Tests fail with ${EPYTHON}" |
137 |
+} |