diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-06-21 17:50:24 +0100 |
commit | feb0daf81d888e9160f9f94502de09b66f2a63fd (patch) | |
tree | b6e5c40ce2abef3da27ed50a023153f475e0ddef /dev-python/sphinx | |
parent | 9452a6e87b6c2c70513bc47a2470bf9f1168920e (diff) |
gentoo resync : 21.06.2020
Diffstat (limited to 'dev-python/sphinx')
-rw-r--r-- | dev-python/sphinx/Manifest | 4 | ||||
-rw-r--r-- | dev-python/sphinx/sphinx-3.0.4.ebuild | 2 | ||||
-rw-r--r-- | dev-python/sphinx/sphinx-3.1.1.ebuild | 133 |
3 files changed, 137 insertions, 2 deletions
diff --git a/dev-python/sphinx/Manifest b/dev-python/sphinx/Manifest index 6df9be4a88a8..b06dd4ac6d4f 100644 --- a/dev-python/sphinx/Manifest +++ b/dev-python/sphinx/Manifest @@ -4,10 +4,12 @@ DIST Sphinx-2.4.4.tar.gz 5966973 BLAKE2B 727a75eb4ec33beadf80b22cdd8dda02a53f4da DIST Sphinx-3.0.3.tar.gz 5905054 BLAKE2B 048e449603f171d72b24be5bc0fca3465819e78cc9e9e6c66e76457812a71fb2fbf85e7c2d4849541ab3a8980eb91b8f6948654c42d08e46c75c9841f5f840d3 SHA512 1e37224d04f0a7836a7132cea55c67b9d15a22f941a790288438b39d455973f254205ffd1e99e6e2305430725a6a623b9a85fb95b495a9f6f912fb94825fdcd0 DIST Sphinx-3.0.4.tar.gz 5909229 BLAKE2B 892b435642be2a6334f93d9f230ec1aeeff8cf7b374570aae66eb341614d4318125920ef0c5593e7eee64e0b8781f035635af71aac34e9c2c6eb20a07ed68d48 SHA512 ec0c2487f098f774452b58d4fb67be7850b4a54b80f2b01dcee990298f59bfede3ca43b28fa992181cdceb07f261abce186862afd75c889c6682338049db6288 DIST Sphinx-3.1.0.tar.gz 5931678 BLAKE2B 63f9d78ea46832fc9ca7122826888abb5b8a6be55e6b3e9015a34bc4186b0544a6c5429be010622fb4794b720a6675b3a89f101446e36327819d5db07dceaa03 SHA512 8660061f3617b00eaf19655256d1b164eb24cc10c7c8016e32cd28d1f81903ef8def0c5da202066c477448f4ac6d764dbd8b1b7179edcb9d00925e35596c4714 +DIST Sphinx-3.1.1.tar.gz 5932445 BLAKE2B d98d4e1d546a60217779a071d642cef8c4b703715e212344d904fc343928afe4b21722d953afb67add0c0390633f3c2159b2235d0a5dd0148946ebfbf473c215 SHA512 0c97cab085b1d8152cefde73a7e2116e83426a1ff071c8be9b37ae8e8cf82e9abefacad2cb37a86e1754fbdf57a8dc05ee3041d7dde506fa103babb82c380293 EBUILD sphinx-1.7.5-r2.ebuild 3214 BLAKE2B 6cdc38d318aa3552077cd38f7b73511cd9348f4e227f828ffdb8dee700ccb3261be15bcf74306c098010b8f901507f7445c292741dad894cd94da95838444c27 SHA512 233f3487d87b8954edef1b141d21501fed815f50f129348094d5e1f7fb12833912f8e06c4eef508190a75c28f4afeb5dbf3a6af6f4caebb8cc0290134f043b01 EBUILD sphinx-2.0.1-r1.ebuild 3448 BLAKE2B 4c5ccdb0c64bfdfaf758d462196746fbf3e3537148ff11d88e323297128cfa6643929465b9ee0874f744934e62aca5b22abf5029ab8435efb37578f5c949a861 SHA512 d68634bfeb6c5f1961d1e55eb7e463ab458a0fb155fcbdcd961386fcfbec789bcfa60611566f30a9d803cb3aeb5ae36d68101838f1e582c86cb54f2bd4573613 EBUILD sphinx-2.4.4.ebuild 3647 BLAKE2B 827407c970ee827b569ab6f1bf7df1e39363c673e0b83c130869bae04a6a6f8d97dc1cbe18146b8127c4a9496812ea5505a7153047ceb753added94fd613913e SHA512 b699382de2e3c998ae1ffafb8093b4bbd523015011fd945aa4ec3568591703fc184ee689256e79d07beade29a9a4fd4173d58828abba0467088ad9eb94397e58 EBUILD sphinx-3.0.3.ebuild 3996 BLAKE2B bac1a6c69c3d97dffd38981bb2def7434ca96dabd97852f9148943b1cb10da8b41764cd6e40aa625193c7eeb0dd4e77c849d859fbf0007129906d0a89fd9429c SHA512 59d3ab0cb1c9c0ed0f07ef3f4c70d528ae1da65ea258ad1b6702f68cf3bd9a1d94064386a48d8a36ad7349a8c6ffea5e8677a123c745f4795b69f4ffadb28299 -EBUILD sphinx-3.0.4.ebuild 3956 BLAKE2B 7aeab5ed471682f09b43ee43c87c7b8e2db526a1a54a8fc77d3923f4a5938ad6638150c49c3da0baeaf40ca3974d5ab770d5c1672fd43e4797ae50f41f164c99 SHA512 dd508c5a3993f8d6a4ec9b88f834340bc7f385040fc814417e7af50d2ac676328a694a35c233f1c3868a255b4140a62dee981a0181d3995be87140c9b81c4f86 +EBUILD sphinx-3.0.4.ebuild 3955 BLAKE2B a800fa8c0dc2d6e9f6499a688888f397fe4e6d929ec7cb3e5e7ba427c549438b9a7f363be926c214496523a41ecc58bae20d58ab7a852b5496bc66381f2b56cb SHA512 bdf19e8fc0b2ba18ab36724c887b4f2600f00162cccdd8b94733c9077e7915bdd91e387856f533c4e9e31c69bde9becd1df91e0810692ab433ceb32af5655436 EBUILD sphinx-3.1.0.ebuild 4775 BLAKE2B 29587fdcea2941967b086fcaef708e74c599c216a45df08cd33fa3fc87912f8b129806c1bfe07db450d2d99864fa78ce9d315a063b1a5db8f61db19bb7f49339 SHA512 f77036ecaad0798063ae2853394a639d53d7b238978cf878ebf0daa1764b8342964a96f1332e9bd0816b2369376ee9b1d1bd282936d17235631250455583d13c +EBUILD sphinx-3.1.1.ebuild 4775 BLAKE2B 29587fdcea2941967b086fcaef708e74c599c216a45df08cd33fa3fc87912f8b129806c1bfe07db450d2d99864fa78ce9d315a063b1a5db8f61db19bb7f49339 SHA512 f77036ecaad0798063ae2853394a639d53d7b238978cf878ebf0daa1764b8342964a96f1332e9bd0816b2369376ee9b1d1bd282936d17235631250455583d13c MISC metadata.xml 556 BLAKE2B a2689efbe3d569fa878296875f4145fdb4d83b4c4821aa636d4006b1823e5646b9cebd5341b4bc02de30985191b83461363cc892aca638e678f86a6e314dcef3 SHA512 bff6813bf9c5110c2e4f5764f911309325923cb58300c19c079d1e6de3d6c4c0bcaf4e206fa4bc11ebf54b961c7e09217310b5647029350d4f9602da6325db0c diff --git a/dev-python/sphinx/sphinx-3.0.4.ebuild b/dev-python/sphinx/sphinx-3.0.4.ebuild index 44f026f88657..1f6b617345ab 100644 --- a/dev-python/sphinx/sphinx-3.0.4.ebuild +++ b/dev-python/sphinx/sphinx-3.0.4.ebuild @@ -16,7 +16,7 @@ SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" LICENSE="BSD" SLOT="0" -KEYWORDS="~alpha ~amd64 arm arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +KEYWORDS="~alpha ~amd64 arm arm64 hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" IUSE="doc latex test" RESTRICT="!test? ( test )" diff --git a/dev-python/sphinx/sphinx-3.1.1.ebuild b/dev-python/sphinx/sphinx-3.1.1.ebuild new file mode 100644 index 000000000000..02e54fb7e8fd --- /dev/null +++ b/dev-python/sphinx/sphinx-3.1.1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=rdepend +PYTHON_COMPAT=( python3_{6..9} pypy3 ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Python documentation generator" +HOMEPAGE="https://www.sphinx-doc.org/ + https://github.com/sphinx-doc/sphinx" +SRC_URI="mirror://pypi/S/${PN^}/${P^}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="doc latex test" +RESTRICT="!test? ( test )" + +RDEPEND=" + <dev-python/alabaster-0.8[${PYTHON_USEDEP}] + dev-python/Babel[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + dev-python/imagesize[${PYTHON_USEDEP}] + dev-python/jinja[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/snowballstemmer[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-devhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-jsmath[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-htmlhelp[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-serializinghtml[${PYTHON_USEDEP}] + dev-python/sphinxcontrib-qthelp[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/typed-ast[${PYTHON_USEDEP}] + ' python3_{6,7}) + latex? ( + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + )" +BDEPEND=" + doc? ( + dev-python/sphinxcontrib-websupport[${PYTHON_USEDEP}] + media-gfx/graphviz + ) + test? ( + ${RDEPEND} + dev-python/html5lib[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + virtual/imagemagick-tools[jpeg,png,svg] + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + app-text/dvipng + )" + +S="${WORKDIR}/${P^}" + +python_prepare_all() { + # remove tests that fail due to network-sandbox + rm tests/test_build_linkcheck.py || die "Failed to remove web tests" + sed -i -e 's:test_latex_images:_&:' tests/test_build_latex.py || die + + # fail under pypy3 (some because of missing typed-ast) + # revisit when pypy3 becomes pypy3.8 + sed -i -e '/def test_partialfunction/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_autodoc_typed_instance_variables/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_autodoc_inherited_members_None/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_cython/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_automethod_for_builtin/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + tests/test_ext_autodoc.py || die + sed -i -e '/import pytest/aimport sys' \ + -e '/def test_builtin_function/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_methoddescriptor/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + -e '/def test_wrapped_function/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + tests/test_ext_autodoc_autofunction.py || die + sed -i -e '/import pytest/aimport sys' \ + -e '/def test_autodoc_typehints_signature/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + tests/test_ext_autodoc_configs.py || die + sed -i -e '/import pytest/aimport sys' \ + -e '/def test_autosummary_generate_content_for_module/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + tests/test_ext_autosummary.py || die + sed -i -e '/def test_annotated_assignment_py36/i\ +@pytest.mark.skipif(hasattr(sys, "pypy_version_info"), reason="broken on pypy3")' \ + tests/test_pycode_parser.py || die + + # disable internet access + sed -i -e 's:^intersphinx_mapping:disabled_&:' \ + doc/conf.py || die + + distutils-r1_python_prepare_all +} + +python_compile() { + distutils-r1_python_compile + + # Generate the grammar. It will be caught by install somehow. + # Note that the tests usually do it for us. However, I don't want + # to trust USE=test really running all the tests, especially + # with FEATURES=test-fail-continue. + pushd "${BUILD_DIR}"/lib >/dev/null || die + "${EPYTHON}" -m sphinx.pycode.__init__ || die "Grammar generation failed." + popd >/dev/null || die +} + +python_compile_all() { + if use doc; then + esetup.py build_sphinx + HTML_DOCS=( "${BUILD_DIR}"/sphinx/html/. ) + fi +} + +python_test() { + mkdir -p "${BUILD_DIR}/sphinx_tempdir" || die + local -x SPHINX_TEST_TEMPDIR="${BUILD_DIR}/sphinx_tempdir" + pytest -vv || die "Tests fail with ${EPYTHON}" +} |