Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sphinx/
Date: Fri, 12 Apr 2019 13:03:31
Message-Id: 1555074134.c6336c16356b0d82a4e2f59700e7b5bd9faabc7b.vdupras@gentoo
1 commit: c6336c16356b0d82a4e2f59700e7b5bd9faabc7b
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 12 13:01:18 2019 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 12 13:02:14 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c6336c16
7
8 dev-python/sphinx: bump to 2.0.1
9
10 Signed-off-by: Virgil Dupras <vdupras <AT> gentoo.org>
11 Package-Manager: Portage-2.3.62, Repoman-2.3.11
12
13 dev-python/sphinx/Manifest | 1 +
14 dev-python/sphinx/sphinx-2.0.1.ebuild | 106 ++++++++++++++++++++++++++++++++++
15 2 files changed, 107 insertions(+)
16
17 diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest
18 index 8acce3aeae6..b3bb7a48a60 100644
19 --- a/dev-python/sphinx/Manifest
20 +++ b/dev-python/sphinx/Manifest
21 @@ -2,3 +2,4 @@ DIST Sphinx-1.2.2.tar.gz 3143671 BLAKE2B a21b2a060363ac86832a6a28a623ed410ff0bb3
22 DIST Sphinx-1.2.3.tar.gz 3200548 BLAKE2B 42033c59e6e38247af12c78cb4f69c73b1dfa883aa8a9e6c180bb74de666b45faef24a55c0bfd3aa1f22bf3e632e0e95016eb1bea54e8b5ebc7df78756763b5c SHA512 00346516e826a65145a3a7fd25ef7cee569ae7fdcc0c1bec3a7301fc08d5d8730d02eee792c3efedfcac17e712ea7e2ad70ea1fcdedc11720ad54f6bcb51ad05
23 DIST Sphinx-1.7.5.tar.gz 4726802 BLAKE2B 8d828dcae1f3ebb813c5f2de8c096a3fac4ab88b424955c27592349c544b775a21703c904a54efa7f86e1967198f4950804904a82a7142a3499f33c5343506e3 SHA512 db2a8df2cdb2ed78ce2341175575c2b04a149451b2bc8a4f74ddc73e308a19d505874fdbae4e370ce48a9b1cdb4de47cdab489bc57c1b378e857d5b8d04a07b8
24 DIST Sphinx-2.0.0.tar.gz 6011308 BLAKE2B 72ec668522b803c07a76be086a27d2f8fb844558fc3d3a9fbaa7a191e570c23e3baa951873f68d3b54c48d8cfa770f8fd1549b718a7e760b7691bb686fe9e83d SHA512 283e18514262366e0aebc23f1e48ce7fa3591e48572525c832f96ec4f943463e19904c67ab06a4b3244119750c63dc496d4a4142e1e4a55e0b4ebdc748cf6aa6
25 +DIST Sphinx-2.0.1.tar.gz 6017030 BLAKE2B a446aab8c7f5a4adc93477f4f60ca975690cb4c507d6e51393a4b2c4c56563b9a12e3ea3f85d214c6bdbc7834be107384fe9029d09a73da207fd9699c4b77ab8 SHA512 28430912917a8e3eb6efe6b69268e2a5ae06795c261f2a18ef62f781e365396832c4e4bcfaad7704b1c5f840e98a9dfb82e3b438a491a13cea5c10bee66bf23b
26
27 diff --git a/dev-python/sphinx/sphinx-2.0.1.ebuild b/dev-python/sphinx/sphinx-2.0.1.ebuild
28 new file mode 100644
29 index 00000000000..bf0e1fd1b84
30 --- /dev/null
31 +++ b/dev-python/sphinx/sphinx-2.0.1.ebuild
32 @@ -0,0 +1,106 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +PYTHON_COMPAT=( python3_{5,6,7} pypy3 )
39 +PYTHON_REQ_USE="threads(+)"
40 +
41 +inherit distutils-r1
42 +
43 +DESCRIPTION="Python documentation generator"
44 +HOMEPAGE="http://www.sphinx-doc.org/"
45 +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz"
46 +
47 +LICENSE="BSD"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris"
50 +IUSE="doc latex test"
51 +
52 +# Tests automagically use latex, bug 667414
53 +#REQUIRED_USE="test? ( latex )"
54 +RESTRICT="!test? ( test )"
55 +
56 +RDEPEND="
57 + <dev-python/alabaster-0.8[${PYTHON_USEDEP}]
58 + dev-python/Babel[${PYTHON_USEDEP}]
59 + dev-python/docutils[${PYTHON_USEDEP}]
60 + dev-python/imagesize[${PYTHON_USEDEP}]
61 + dev-python/jinja[${PYTHON_USEDEP}]
62 + dev-python/pygments[${PYTHON_USEDEP}]
63 + dev-python/requests[${PYTHON_USEDEP}]
64 + dev-python/snowballstemmer[${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[${PYTHON_USEDEP}]
69 + dev-python/sphinxcontrib-serializinghtml[${PYTHON_USEDEP}]
70 + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}]
71 + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}]
72 + dev-python/packaging[${PYTHON_USEDEP}]
73 + latex? (
74 + dev-texlive/texlive-latexextra
75 + dev-texlive/texlive-luatex
76 + app-text/dvipng
77 + )"
78 +DEPEND="${RDEPEND}
79 + dev-python/setuptools[${PYTHON_USEDEP}]
80 + test? (
81 + dev-python/html5lib[${PYTHON_USEDEP}]
82 + dev-python/pytest[${PYTHON_USEDEP}]
83 + virtual/imagemagick-tools[jpeg,png,svg]
84 + dev-texlive/texlive-latexextra
85 + dev-texlive/texlive-luatex
86 + app-text/dvipng
87 + )"
88 +
89 +S="${WORKDIR}/${P^}"
90 +
91 +python_prepare_all() {
92 + # remove tests that fail due to network-sandbox
93 + rm tests/test_build_linkcheck.py || die "Failed to remove web tests"
94 + sed -i -e 's:test_latex_images:_&:' tests/test_build_latex.py || die
95 + sed -i -e 's:test_latex_doc:_&:' tests/test_build_latex.py || die
96 +
97 + # requires specific locales
98 + sed -i -e 's:test_babel_with_language_:_&:' tests/test_build_latex.py || die
99 + sed -i -e 's:test_polyglossia_with_language_:_&:' tests/test_build_latex.py || die
100 +
101 + # fail for unknown reasons. TODO: find out why
102 + sed -i -e 's:test_build_latex_doc:_&:' tests/test_build_latex.py || die
103 + rm tests/test_ext_imgconverter.py || die "Failed to remove broken test"
104 +
105 + # fails when additional sphinx themes are installed
106 + sed -i -e 's:test_theme_api:_&:' tests/test_theming.py || die
107 +
108 + # fail under pypy3
109 + sed -i -e 's:test_partialmethod:_&:' tests/test_autodoc.py || die
110 + sed -i -e 's:test_partialfunction:_&:' tests/test_autodoc.py || die
111 +
112 + distutils-r1_python_prepare_all
113 +}
114 +
115 +python_compile() {
116 + distutils-r1_python_compile
117 +
118 + # Generate the grammar. It will be caught by install somehow.
119 + # Note that the tests usually do it for us. However, I don't want
120 + # to trust USE=test really running all the tests, especially
121 + # with FEATURES=test-fail-continue.
122 + pushd "${BUILD_DIR}"/lib >/dev/null || die
123 + "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed."
124 + popd >/dev/null || die
125 +}
126 +
127 +python_compile_all() {
128 + if use doc; then
129 + esetup.py build_sphinx
130 + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. )
131 + fi
132 +}
133 +
134 +python_test() {
135 + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die
136 + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir"
137 + pytest -vv || die "Tests fail with ${EPYTHON}"
138 +}