diff options
author | Michał Górny <mgorny@gentoo.org> | 2024-03-12 16:59:38 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-03-12 18:51:31 +0100 |
commit | 24e1108450b1b4c2694ecd13aee6d75c5aec839f (patch) | |
tree | b4b71331b8c1007af6be6d07bcb6dc47ab1cdbda /dev-python/sphinxcontrib-plantuml | |
parent | xfce-base/xfce4-panel: Remove old (diff) | |
download | gentoo-24e1108450b1b4c2694ecd13aee6d75c5aec839f.tar.gz gentoo-24e1108450b1b4c2694ecd13aee6d75c5aec839f.tar.bz2 gentoo-24e1108450b1b4c2694ecd13aee6d75c5aec839f.zip |
dev-python/sphinxcontrib-plantuml: Bump to 0.29
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python/sphinxcontrib-plantuml')
3 files changed, 104 insertions, 0 deletions
diff --git a/dev-python/sphinxcontrib-plantuml/Manifest b/dev-python/sphinxcontrib-plantuml/Manifest index cd0a3bae0dfd..fd1c41ea3d14 100644 --- a/dev-python/sphinxcontrib-plantuml/Manifest +++ b/dev-python/sphinxcontrib-plantuml/Manifest @@ -1 +1,2 @@ DIST sphinxcontrib-plantuml-0.28.gh.tar.gz 19322 BLAKE2B b76166130ddcebc9312ea40d20dd0710403566a989dfdc40b906a724b32d8e3b53d50a4db1871e771eafb46f9cfea463f58348910c4bdeed0f25996269be8dea SHA512 52553e8ee5a9dbb3644f28a26f6be48a910e2013673169a8a9f0776406f6453b2443967af1837056010b0621d681e7fd00ab590858b07665bb74699c81aa81e2 +DIST sphinxcontrib-plantuml-0.29.gh.tar.gz 19376 BLAKE2B c410be6af6364e347dd1b8e782e55d9cea1c799dc3e2d5055c893b37e437c5e300cafc79e70947447979fe4b11d97fab7cddd6e0894654e274cd05cb5d4abba3 SHA512 9bcec86db5956dd9cbad097ad52b5dc915598c3324662491229268689c3c57c5ce680b38e38ff3360a109f3fd50753c92252ecaf928b124f9a515f52d1da93b4 diff --git a/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch b/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch new file mode 100644 index 000000000000..2f10e1fae51d --- /dev/null +++ b/dev-python/sphinxcontrib-plantuml/files/sphinxcontrib-plantuml-0.29-pytest-8.patch @@ -0,0 +1,53 @@ +From 74e31ad4dd8f4fefd5b9e430e4d9caea3002fd97 Mon Sep 17 00:00:00 2001 +From: Yuya Nishihara <yuya@tcha.org> +Date: Sun, 10 Mar 2024 19:30:21 +0900 +Subject: [PATCH] tests: rename setup/teardown functions for pytest 8.1.1 + compatibility + +I don't know if that's intended, but nose-style setup() is no longer called. +--- + tests/test_functional.py | 4 ++-- + tests/test_svgstyle.py | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/tests/test_functional.py b/tests/test_functional.py +index 697b01d..8ef6a3d 100644 +--- a/tests/test_functional.py ++++ b/tests/test_functional.py +@@ -12,7 +12,7 @@ + _fakecmd = os.path.join(os.path.dirname(__file__), 'fakecmd.py') + + +-def setup(): ++def setup_module(): + global _tempdir, _srcdir, _outdir + _tempdir = tempfile.mkdtemp() + _srcdir = os.path.join(_tempdir, 'src') +@@ -20,7 +20,7 @@ def setup(): + os.mkdir(_srcdir) + + +-def teardown(): ++def teardown_module(): + shutil.rmtree(_tempdir) + + +diff --git a/tests/test_svgstyle.py b/tests/test_svgstyle.py +index c62e1ed..a25901f 100644 +--- a/tests/test_svgstyle.py ++++ b/tests/test_svgstyle.py +@@ -5,12 +5,12 @@ + from sphinxcontrib import plantuml + + +-def setup(): ++def setup_module(): + global _tempdir + _tempdir = tempfile.mkdtemp() + + +-def teardown(): ++def teardown_module(): + shutil.rmtree(_tempdir) + + diff --git a/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.ebuild b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.ebuild new file mode 100644 index 000000000000..c3b27de3b09c --- /dev/null +++ b/dev-python/sphinxcontrib-plantuml/sphinxcontrib-plantuml-0.29.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{11..12} ) + +inherit distutils-r1 + +DESCRIPTION="Sphinx extensions for PlantUML" +HOMEPAGE=" + https://github.com/sphinx-contrib/plantuml/ + https://pypi.org/project/sphinxcontrib-plantuml/ +" +SRC_URI=" + https://github.com/sphinx-contrib/plantuml/archive/refs/tags/${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${P#sphinxcontrib-}" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +BDEPEND=" + test? ( + app-text/texlive + dev-python/sphinxcontrib-applehelp[${PYTHON_USEDEP}] + dev-tex/latexmk + dev-texlive/texlive-fontutils + dev-texlive/texlive-latexextra + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/sphinx-contrib/plantuml/commit/74e31ad4dd8f4fefd5b9e430e4d9caea3002fd97 + "${FILESDIR}/${P}-pytest-8.patch" +) + +python_test() { + # Fix for sphinx.errors.ExtensionError: Could not import extension sphinxcontrib.applehelp + # See https://projects.gentoo.org/python/guide/test.html#importerrors-for-c-extensions, thanks to mgorny. + rm -rf sphinxcontrib || die + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |