From 2cd75b5f120be4157309239ec3255da6df4e3239 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Tue, 3 Mar 2020 18:20:05 +0100 Subject: dev-python/sphinx: Use typed-ast on py<3.8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dev-python/typed-ast is necessary for better typing support in py<3.8. This also fixes (hopefully last) test failures. Closes: https://bugs.gentoo.org/703140 Signed-off-by: Michał Górny --- dev-python/sphinx/sphinx-2.4.3-r1.ebuild | 111 +++++++++++++++++++++++++++++++ dev-python/sphinx/sphinx-2.4.3.ebuild | 107 ----------------------------- 2 files changed, 111 insertions(+), 107 deletions(-) create mode 100644 dev-python/sphinx/sphinx-2.4.3-r1.ebuild delete mode 100644 dev-python/sphinx/sphinx-2.4.3.ebuild (limited to 'dev-python/sphinx') diff --git a/dev-python/sphinx/sphinx-2.4.3-r1.ebuild b/dev-python/sphinx/sphinx-2.4.3-r1.ebuild new file mode 100644 index 000000000000..8063e7053184 --- /dev/null +++ b/dev-python/sphinx/sphinx-2.4.3-r1.ebuild @@ -0,0 +1,111 @@ +# 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,7,8} 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 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="doc latex test" +RESTRICT="!test? ( test )" + +RDEPEND=" + /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}" +} diff --git a/dev-python/sphinx/sphinx-2.4.3.ebuild b/dev-python/sphinx/sphinx-2.4.3.ebuild deleted file mode 100644 index 46f34931a946..000000000000 --- a/dev-python/sphinx/sphinx-2.4.3.ebuild +++ /dev/null @@ -1,107 +0,0 @@ -# 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,7,8} 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 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" -IUSE="doc latex test" -RESTRICT="!test? ( test )" - -RDEPEND=" - /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}" -} -- cgit v1.2.3-65-gdbad