From 3971236b2799b76c682ff5642a868c04b50023eb Mon Sep 17 00:00:00 2001 From: Henri Gasc Date: Thu, 10 Oct 2024 18:01:33 +0200 Subject: [PATCH] dev-python/ManimPango: allow doc, drop 0.5.0, add 0.6.0 Signed-off-by: Henri Gasc --- dev-python/ManimPango/Manifest | 2 +- dev-python/ManimPango/ManimPango-0.4.4.ebuild | 28 +++++++++++----- ....5.0-r1.ebuild => ManimPango-0.6.0.ebuild} | 33 ++++++++++++++----- 3 files changed, 44 insertions(+), 19 deletions(-) rename dev-python/ManimPango/{ManimPango-0.5.0-r1.ebuild => ManimPango-0.6.0.ebuild} (53%) diff --git a/dev-python/ManimPango/Manifest b/dev-python/ManimPango/Manifest index 09b22ffe0c..0923454d2d 100644 --- a/dev-python/ManimPango/Manifest +++ b/dev-python/ManimPango/Manifest @@ -1,2 +1,2 @@ DIST ManimPango-0.4.4.gh.tar.gz 4144021 BLAKE2B 88f33b8d2585abbc1f118e1df6a76be68789da6d704302de311086a775c6ba1d9a58afe83ad9845d5bf4461df43790c3a49c962d299053d37608f8b695d0c524 SHA512 3d9261c2787677039096ec20b8c4f17249189dea984cbc51c570b2af7ddf8bd6abdc8fde4cf577a435a4a4cf3d4cd33a66f39ec6e545f446e2bffb8cd48d0f84 -DIST ManimPango-0.5.0.gh.tar.gz 4144029 BLAKE2B 0920111f9c52ccbce5bed86ddfdf6c52d2afa715694093703686f3ae6573b42813d0624a12d2a5db2f6b0fccf633882f4a8c57420ebc06e2c7549994a5261a5f SHA512 6dbcb02913eedc28f88dca4d6e57a5a470cce323b423b7cfb0d5e4042d7769f98713cb03690e269be1d08c80c74c78c7a7876ec81794e5cc1a3cd257585d3669 +DIST ManimPango-0.6.0.gh.tar.gz 4144189 BLAKE2B e56ef6b27d62e2a88d825fc3e8e26a32ef225a42db674cfe1502b8ec15fbd760fdb1839ab7d5bc6a0528b6e1eb6834c2471ade3f53d47027b26bc2dd56b194f3 SHA512 b25c8661cd12db99c7f54fb60797974ef015506abe8165a33738bcf80da1c79f0b3cdc0d243a9d4606fccb6e00dc7a4f5a6d463a4ad0367b5dc343e2d33f74f0 diff --git a/dev-python/ManimPango/ManimPango-0.4.4.ebuild b/dev-python/ManimPango/ManimPango-0.4.4.ebuild index edf6a566fc..27243533e1 100644 --- a/dev-python/ManimPango/ManimPango-0.4.4.ebuild +++ b/dev-python/ManimPango/ManimPango-0.4.4.ebuild @@ -3,11 +3,18 @@ EAPI=8 +DOCS_BUILDER="sphinx" +DOCS_DEPEND=" + dev-python/furo + dev-python/sphinxext-opengraph +" +DOCS_DIR="docs" + DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..12} pypy3 ) # Python 13 fails -inherit distutils-r1 +inherit distutils-r1 docs DESCRIPTION="Binding for Pango, to use with Manim." HOMEPAGE="https://github.com/ManimCommunity/ManimPango https://pypi.org/project/manimpango" @@ -17,6 +24,7 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="debug" +RESTRICT="test" RDEPEND=" dev-libs/glib:2 @@ -28,16 +36,18 @@ BDEPEND=" dev-python/cython[${PYTHON_USEDEP}] x11-libs/pango " - # doc? ( - # dev-python/furo[${PYTHON_USEDEP}] - # dev-python/sphinxext-opengraph[${PYTHON_USEDEP}] - # ) DEPEND="${BDEPEND}" src_prepare() { - # The tests always fails (ManimPango has to be installed for them to work) - rm -rf "${S}/tests" + # Half of the tests fails or are not run + use test && sed -i -e '/--cov/d' setup.cfg distutils-r1_src_prepare } -# distutils_enable_sphinx docs # We need a lot of other packages if we allow doc +python_compile_all() { + # Need to remove this, otherwise docs_compile fails + rm -rf "${S}/manimpango" || die + docs_compile +} + +distutils_enable_tests pytest diff --git a/dev-python/ManimPango/ManimPango-0.5.0-r1.ebuild b/dev-python/ManimPango/ManimPango-0.6.0.ebuild similarity index 53% rename from dev-python/ManimPango/ManimPango-0.5.0-r1.ebuild rename to dev-python/ManimPango/ManimPango-0.6.0.ebuild index ebaa05ca3b..cacfe982d8 100644 --- a/dev-python/ManimPango/ManimPango-0.5.0-r1.ebuild +++ b/dev-python/ManimPango/ManimPango-0.6.0.ebuild @@ -3,11 +3,25 @@ EAPI=8 +DOCS_BUILDER="sphinx" +DOCS_DEPEND=" + dev-python/furo + dev-python/matplotlib + dev-python/sphinxcontrib-applehelp + dev-python/sphinxcontrib-devhelp + dev-python/sphinxcontrib-htmlhelp + dev-python/sphinxcontrib-jsmath + dev-python/sphinxcontrib-qthelp + dev-python/sphinxcontrib-serializinghtml + dev-python/sphinxext-opengraph +" +DOCS_DIR="docs" + DISTUTILS_EXT=1 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} pypy3 ) -inherit distutils-r1 +inherit distutils-r1 docs DESCRIPTION="Binding for Pango, to use with Manim." HOMEPAGE="https://github.com/ManimCommunity/ManimPango https://pypi.org/project/manimpango" @@ -28,16 +42,17 @@ BDEPEND=" >=dev-python/cython-3.0.2[${PYTHON_USEDEP}] x11-libs/pango " - # doc? ( - # dev-python/furo[${PYTHON_USEDEP}] - # dev-python/sphinxext-opengraph[${PYTHON_USEDEP}] - # ) DEPEND="${BDEPEND}" src_prepare() { - # The tests always fails (ManimPango has to be installed for them to work) - rm -rf "${S}/tests" + sed -i -e '/--cov/d' "${S}/setup.cfg" distutils-r1_src_prepare } -# distutils_enable_sphinx docs # We need a lot of other packages if we allow doc +python_compile_all() { + # Need to remove this, otherwise docs_compile fails + rm -rf "${S}/manimpango" || die + docs_compile +} + +distutils_enable_tests pytest