diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-04-04 19:14:59 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2026-04-04 19:14:59 +0000 |
| commit | eb879137397b2780739bdbeddd7ea01439186c1c (patch) | |
| tree | ba318372285287dd4fa2c6661bc832810bd34b26 /dev-python/docutils | |
| parent | 50a73c5441045f14bdb49aededf33cd7f23ff891 (diff) | |
| download | baldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.tar.gz baldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.tar.xz baldeagleos-repo-eb879137397b2780739bdbeddd7ea01439186c1c.zip | |
Adding metadata
Diffstat (limited to 'dev-python/docutils')
| -rw-r--r-- | dev-python/docutils/Manifest | 3 | ||||
| -rw-r--r-- | dev-python/docutils/docutils-0.21.2.ebuild | 82 | ||||
| -rw-r--r-- | dev-python/docutils/docutils-0.22.2.ebuild | 62 | ||||
| -rw-r--r-- | dev-python/docutils/docutils-0.22.3.ebuild | 62 | ||||
| -rw-r--r-- | dev-python/docutils/files/docutils-0.21.2-pillow.patch | 15 | ||||
| -rw-r--r-- | dev-python/docutils/files/docutils-0.21.2-pygments-2.19.patch | 106 |
6 files changed, 0 insertions, 330 deletions
diff --git a/dev-python/docutils/Manifest b/dev-python/docutils/Manifest index 54d7cdde87a7..f895c46b10ad 100644 --- a/dev-python/docutils/Manifest +++ b/dev-python/docutils/Manifest @@ -1,4 +1 @@ -DIST docutils-0.21.2.tar.gz 2204444 BLAKE2B 727c2f97fc5835a0ffa62e38ea85af366cd89ad1eaec0b8af8b1f3b12e6cddfddb65161ba34f9109952d37ba2cf8985f3c3b6905ebb2ac1c9a984cce3fb4d170 SHA512 7fafa331f5687448e80d299c20cdccc4b49819fa471b5f586bf0ab18c694ba43a70f58e7c76b0a70a16267585548389214e11a4998ad7fdc19a27f0f7644539c -DIST docutils-0.22.2.tar.gz 2289092 BLAKE2B cef7861efe59766fc4883f945d7c52d026b6dae378f95fac074698e31ef2a32bece572e09f2307a1f1ebc7b63f963b53cd5a5e09538a7fe5bcdec9864ecfd4d4 SHA512 dfa6825fe1c5f870719da054badc3af69854b64b9e1057210b7aa6ecd2eff0f809fa311d3d30b1eb4fa542f68eacc26b6be314f1897c8a7cb423ab91f8f15102 -DIST docutils-0.22.3.tar.gz 2290153 BLAKE2B 78b4ee1dd643de2b1e97757592ca2962eb11beb7beb2cf6c718857b1533a55240c44993e840b720eb4cfa327cafa6a9b1ebdea46eac2f0f6a3f9d06d1eb4851a SHA512 097e4dd76c984ba6789b44b971db046e29941791f1deaf7899ccc239f8ec96db47ef204f72bf93f3e11ff42b2e30ee21a59cb323ecfab0b6063f2f9be036c241 DIST docutils-0.22.4.tar.gz 2291750 BLAKE2B ec9ef492f067d91a3300a7707a88426d08714b85ff2970d6bdf8f94e8a7a42c576364445c0997dee5d19a76ab763793465ed131bb6ce6453c058d61371aed61c SHA512 80f4450f1ab81eb2425e246e1436cecda1ecd0c0ff70c24d34c2f651ab70afd55577a809b50ccd73d41e098790582fdc3b6594511308b51efe0c3005edbdcf72 diff --git a/dev-python/docutils/docutils-0.21.2.ebuild b/dev-python/docutils/docutils-0.21.2.ebuild deleted file mode 100644 index ff9eac677731..000000000000 --- a/dev-python/docutils/docutils-0.21.2.ebuild +++ /dev/null @@ -1,82 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=flit -PYTHON_COMPAT=( python3_{10..14} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)" -HOMEPAGE=" - https://docutils.sourceforge.io/ - https://pypi.org/project/docutils/ -" - -# GPL-3+ only for emacs/rst.el -LICENSE="BSD BSD-2 GPL-3+ PSF-2.4 public-domain" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" - -RDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} -" - -PATCHES=( - # r10019 upstream - "${FILESDIR}/${P}-pygments-2.19.patch" - # this changed back at some point, but upstream didn't hit it - # because of https://sourceforge.net/p/docutils/bugs/500/ - "${FILESDIR}/${P}-pillow.patch" -) - -python_compile_all() { - # Generate html docs from reStructured text sources. - - # Place html4css1.css in base directory to ensure that the generated reference to it is correct. - cp docutils/writers/html4css1/html4css1.css . || die - - cd tools || die - "${EPYTHON}" buildhtml.py --input-encoding=utf-8 --no-datestamp \ - --stylesheet-path=../html4css1.css, --traceback ../docs || die -} - -src_test() { - cd test || die - distutils-r1_src_test -} - -python_test() { - "${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}" -} - -python_install() { - distutils-r1_python_install - - # Install tools. - python_doscript tools/buildhtml.py -} - -install_txt_doc() { - local doc="${1}" - local dir="txt/$(dirname ${doc})" - docinto "${dir}" - dodoc "${doc}" -} - -python_install_all() { - local DOCS=( *.txt ) - local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) - - distutils-r1_python_install_all - - local doc - while IFS= read -r -d '' doc; do - install_txt_doc "${doc}" - done < <(find docs tools -name '*.txt' -print0) -} diff --git a/dev-python/docutils/docutils-0.22.2.ebuild b/dev-python/docutils/docutils-0.22.2.ebuild deleted file mode 100644 index c80ffa465a38..000000000000 --- a/dev-python/docutils/docutils-0.22.2.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=flit -PYTHON_COMPAT=( python3_{10..14} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)" -HOMEPAGE=" - https://docutils.sourceforge.io/ - https://pypi.org/project/docutils/ -" - -# GPL-3+ only for emacs/rst.el -LICENSE="BSD BSD-2 GPL-3+ PSF-2.4 public-domain" -SLOT="0" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos ~x64-solaris" - -RDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} -" - -python_compile_all() { - # Generate html docs from reStructured text sources. - - # Place html4css1.css in base directory to ensure that the generated reference to it is correct. - cp docutils/writers/html4css1/html4css1.css . || die - - cd tools || die - "${EPYTHON}" buildhtml.py --input-encoding=utf-8 --no-datestamp \ - --stylesheet-path=../html4css1.css, --traceback ../docs || die -} - -src_test() { - cd test || die - distutils-r1_src_test -} - -python_test() { - "${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}" -} - -python_install() { - distutils-r1_python_install - - # Install tools. - python_doscript tools/buildhtml.py -} - -python_install_all() { - local DOCS=( *.rst ) - local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) - - distutils-r1_python_install_all -} diff --git a/dev-python/docutils/docutils-0.22.3.ebuild b/dev-python/docutils/docutils-0.22.3.ebuild deleted file mode 100644 index 07f9ee0119cb..000000000000 --- a/dev-python/docutils/docutils-0.22.3.ebuild +++ /dev/null @@ -1,62 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=flit -PYTHON_COMPAT=( python3_{10..14} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Python Documentation Utilities (reference reStructuredText impl.)" -HOMEPAGE=" - https://docutils.sourceforge.io/ - https://pypi.org/project/docutils/ -" - -# GPL-3+ only for emacs/rst.el -LICENSE="BSD BSD-2 GPL-3+ PSF-2.4 public-domain" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos ~x64-solaris" - -RDEPEND=" - dev-python/pillow[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] -" -BDEPEND=" - ${RDEPEND} -" - -python_compile_all() { - # Generate html docs from reStructured text sources. - - # Place html4css1.css in base directory to ensure that the generated reference to it is correct. - cp docutils/writers/html4css1/html4css1.css . || die - - cd tools || die - "${EPYTHON}" buildhtml.py --input-encoding=utf-8 --no-datestamp \ - --stylesheet-path=../html4css1.css, --traceback ../docs || die -} - -src_test() { - cd test || die - distutils-r1_src_test -} - -python_test() { - "${EPYTHON}" alltests.py -v || die "Testing failed with ${EPYTHON}" -} - -python_install() { - distutils-r1_python_install - - # Install tools. - python_doscript tools/buildhtml.py -} - -python_install_all() { - local DOCS=( *.rst ) - local HTML_DOCS=( docs tools docutils/writers/html4css1/html4css1.css ) - - distutils-r1_python_install_all -} diff --git a/dev-python/docutils/files/docutils-0.21.2-pillow.patch b/dev-python/docutils/files/docutils-0.21.2-pillow.patch deleted file mode 100644 index 993283ed798d..000000000000 --- a/dev-python/docutils/files/docutils-0.21.2-pillow.patch +++ /dev/null @@ -1,15 +0,0 @@ -diff --git a/test/test_writers/test_html5_polyglot_parts.py b/test/test_writers/test_html5_polyglot_parts.py -index 7122f8469..749f541e4 100644 ---- a/test/test_writers/test_html5_polyglot_parts.py -+++ b/test/test_writers/test_html5_polyglot_parts.py -@@ -43,10 +43,6 @@ if PIL: - REQUIRES_PIL = '' - ONLY_LOCAL = 'Can only read local images.' - DUMMY_PNG_NOT_FOUND = "[Errno 2] No such file or directory: 'dummy.png'" -- # Pillow reports the absolute path since version 10.3.0 (cf. [bugs: 485]) -- if (tuple(int(i) for i in PIL.__version__.split('.')) >= (10, 3)): -- DUMMY_PNG_NOT_FOUND = ("[Errno 2] No such file or directory: '%s'" -- % Path('dummy.png').resolve()) - SCALING_OUTPUT = 'style="width: 32.0px; height: 32.0px;" ' - NO_PIL_SYSTEM_MESSAGE = '' - else: diff --git a/dev-python/docutils/files/docutils-0.21.2-pygments-2.19.patch b/dev-python/docutils/files/docutils-0.21.2-pygments-2.19.patch deleted file mode 100644 index e667226d19de..000000000000 --- a/dev-python/docutils/files/docutils-0.21.2-pygments-2.19.patch +++ /dev/null @@ -1,106 +0,0 @@ -From 5854d09635b3fa1048d84bba17de4c38805beccd Mon Sep 17 00:00:00 2001 -From: aa-turner <aa-turner@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> -Date: Fri, 7 Mar 2025 22:49:46 +0000 -Subject: [PATCH] Support Pygments 2.19 in tests - -git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@10019 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 ---- - .../test_rst/test_directives/test_code.py | 16 +++++++++++----- - .../test_rst/test_directives/test_code_long.py | 7 +++---- - test/test_writers/test_html5_polyglot_parts.py | 4 +--- - 3 files changed, 15 insertions(+), 12 deletions(-) - -diff --git a/test/test_parsers/test_rst/test_directives/test_code.py b/test/test_parsers/test_rst/test_directives/test_code.py -index a54901dfe..a714f8fc5 100755 ---- a/test/test_parsers/test_rst/test_directives/test_code.py -+++ b/test/test_parsers/test_rst/test_directives/test_code.py -@@ -25,10 +25,16 @@ from docutils.utils.code_analyzer import with_pygments - - if with_pygments: - import pygments -- _pv = re.match(r'^([0-9]+)\.([0-9]*)', pygments.__version__) -- PYGMENTS_2_14_PLUS = (int(_pv[1]), int(_pv[2])) >= (2, 14) -+ -+ pygments_version = tuple(map(int, pygments.__version__.split('.')[:2])) -+else: -+ pygments_version = (0, 0) -+ -+PYGMENTS_2_14_PLUS = pygments_version >= (2, 14) -+if pygments_version >= (2, 19): -+ def_ws = '<inline classes="whitespace">\n ' - else: -- PYGMENTS_2_14_PLUS = None -+ def_ws = ' ' - - - class ParserTestCase(unittest.TestCase): -@@ -160,14 +166,14 @@ totest['code_parsing'] = [ - # and now for something completely different - print(8/2) - """, --"""\ -+f"""\ - <document source="test data"> - <literal_block classes="code python3 testclass" ids="my-function" names="my_function" xml:space="preserve"> - <inline classes="ln"> - 7 \n\ - <inline classes="keyword"> - def -- \n\ -+ {def_ws} - <inline classes="name function"> - my_function - <inline classes="punctuation"> -diff --git a/test/test_parsers/test_rst/test_directives/test_code_long.py b/test/test_parsers/test_rst/test_directives/test_code_long.py -index 89cb4b172..037768c01 100755 ---- a/test/test_parsers/test_rst/test_directives/test_code_long.py -+++ b/test/test_parsers/test_rst/test_directives/test_code_long.py -@@ -22,8 +22,7 @@ from docutils.parsers.rst import Parser - from docutils.utils import new_document - from docutils.utils.code_analyzer import with_pygments - from test.test_parsers.test_rst.test_directives.test_code \ -- import PYGMENTS_2_14_PLUS -- -+ import PYGMENTS_2_14_PLUS, def_ws - - @unittest.skipUnless(with_pygments, 'needs Pygments') - class ParserTestCase(unittest.TestCase): -@@ -55,14 +54,14 @@ totest['code_parsing_long'] = [ - # and now for something completely different - print(8/2) - """, --"""\ -+f"""\ - <document source="test data"> - <literal_block classes="code python3" xml:space="preserve"> - <inline classes="ln"> - 7 \n\ - <inline classes="keyword"> - def -- \n\ -+ {def_ws} - <inline classes="name function"> - my_function - <inline classes="punctuation"> -diff --git a/test/test_writers/test_html5_polyglot_parts.py b/test/test_writers/test_html5_polyglot_parts.py -index 7122f8469..afe504d41 100644 ---- a/test/test_writers/test_html5_polyglot_parts.py -+++ b/test/test_writers/test_html5_polyglot_parts.py -@@ -14,7 +14,6 @@ standard values, and any entries with empty values. - - from pathlib import Path - import os --import re - import sys - import unittest - -@@ -30,8 +29,7 @@ from docutils.utils.code_analyzer import with_pygments - - if with_pygments: - import pygments -- _pv = re.match(r'^([0-9]+)\.([0-9]*)', pygments.__version__) -- if (int(_pv[1]), int(_pv[2])) >= (2, 14): -+ if tuple(map(int, pygments.__version__.split('.')[:2])) >= (2, 14): - # pygments output changed in version 2.14 - with_pygments = False - |
