public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/readme-renderer/files/, dev-python/readme-renderer/
@ 2024-07-07 17:23 Michał Górny
  0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2024-07-07 17:23 UTC (permalink / raw
  To: gentoo-commits

commit:     69291ccd05ef2311741630a0bbd3d5477d7aee92
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jul  7 17:19:28 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jul  7 17:23:03 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69291ccd

dev-python/readme-renderer: Backport a test fix

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 .../files/readme-renderer-43.0-docutils-0.21.patch | 70 ++++++++++++++++++++++
 .../readme-renderer/readme-renderer-43.0-r1.ebuild | 39 ++++++++++++
 2 files changed, 109 insertions(+)

diff --git a/dev-python/readme-renderer/files/readme-renderer-43.0-docutils-0.21.patch b/dev-python/readme-renderer/files/readme-renderer-43.0-docutils-0.21.patch
new file mode 100644
index 000000000000..f216b775263a
--- /dev/null
+++ b/dev-python/readme-renderer/files/readme-renderer-43.0-docutils-0.21.patch
@@ -0,0 +1,70 @@
+From fedd830cdd2fdc7311b6b69b307412ba3d3f011c Mon Sep 17 00:00:00 2001
+From: Kurt McKee <contactme@kurtmckee.org>
+Date: Sat, 29 Jun 2024 17:56:36 -0500
+Subject: [PATCH 4/5] Update HTML test files that render differently in newer
+ docutils
+
+---
+ tests/fixtures/test_rst_bibtex.html   | 2 +-
+ tests/fixtures/test_rst_contents.html | 2 +-
+ tests/fixtures/test_rst_linkify.html  | 8 ++++++--
+ 3 files changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/tests/fixtures/test_rst_bibtex.html b/tests/fixtures/test_rst_bibtex.html
+index d9048e7..0f312a7 100644
+--- a/tests/fixtures/test_rst_bibtex.html
++++ b/tests/fixtures/test_rst_bibtex.html
+@@ -1,2 +1,2 @@
+ <pre><code><span class="nc">@article</span><span class="p">{</span><span class="nl">the_impact_of_pygments_docutils_config_and_html5</span><span class="p">,</span><span class="w">
+-  </span><span class="na">year</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><s>{2022}</s><span class="p">,</span></code></pre>
++  </span><span class="na">year</span><span class="w"> </span><span class="p">=</span><span class="w"> </span><span class="s">{2022}</span><span class="p">,</span></code></pre>
+diff --git a/tests/fixtures/test_rst_contents.html b/tests/fixtures/test_rst_contents.html
+index 48a5556..445f610 100644
+--- a/tests/fixtures/test_rst_contents.html
++++ b/tests/fixtures/test_rst_contents.html
+@@ -1,5 +1,5 @@
+ <nav class="contents" id="contents">
+-<p class="topic-title">Contents</p>
++<p class="topic-title"><a href="#top" rel="nofollow">Contents</a></p>
+ <ul class="simple">
+ <li><p><a href="#features" id="toc-entry-1" rel="nofollow">Features</a></p></li>
+ <li><p><a href="#installation" id="toc-entry-2" rel="nofollow">Installation</a></p></li>
+diff --git a/tests/fixtures/test_rst_linkify.html b/tests/fixtures/test_rst_linkify.html
+index 5956925..f796a70 100644
+--- a/tests/fixtures/test_rst_linkify.html
++++ b/tests/fixtures/test_rst_linkify.html
+@@ -1,5 +1,9 @@
+-<a href="https://travis-ci.org/tulsawebdevs/django-multi-gtfs" rel="nofollow"><img alt="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master" src="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master"></a>
+-<a href="https://coveralls.io/github/tulsawebdevs/django-multi-gtfs" rel="nofollow"><img alt="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19" src="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19"></a>
++<a href="https://travis-ci.org/tulsawebdevs/django-multi-gtfs" rel="nofollow">
++<img alt="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master" src="https://travis-ci.org/tulsawebdevs/django-multi-gtfs.svg?branch=master">
++</a>
++<a href="https://coveralls.io/github/tulsawebdevs/django-multi-gtfs" rel="nofollow">
++<img alt="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19" src="https://coveralls.io/repos/github/tulsawebdevs/django-multi-gtfs/badge.svg?branch=django19">
++</a>
+ <p><strong>multigtfs</strong> is an <a href="http://choosealicense.com/licenses/apache/" rel="nofollow">Apache 2.0</a>-licensed Django app that supports importing
+ and exporting of GTFS feeds.  All features of the <a href="https://developers.google.com/transit/gtfs/reference" rel="nofollow">June 20, 2012 reference</a>
+ are supported, including <a href="https://developers.google.com/transit/gtfs/changes#RevisionHistory" rel="nofollow">all changes</a> up to February 17, 2014.
+
+From 406d81e84f84393be35c35289ebab64a179f4532 Mon Sep 17 00:00:00 2001
+From: Kurt McKee <contactme@kurtmckee.org>
+Date: Mon, 1 Jul 2024 08:42:52 -0500
+Subject: [PATCH 5/5] Feedback: Remove `<s>` from the list of allowed HTML tags
+
+---
+ readme_renderer/clean.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/readme_renderer/clean.py b/readme_renderer/clean.py
+index 6cd5972..a123044 100644
+--- a/readme_renderer/clean.py
++++ b/readme_renderer/clean.py
+@@ -26,7 +26,7 @@
+     "br", "caption", "cite", "col", "colgroup", "dd", "del", "details", "div",
+     "dl", "dt", "h1", "h2", "h3", "h4", "h5", "h6", "hr", "img", "p", "pre",
+     "span", "sub", "summary", "sup", "table", "tbody", "td", "th", "thead",
+-    "tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "s", "figure",
++    "tr", "tt", "kbd", "var", "input", "section", "aside", "nav", "figure",
+     "figcaption", "picture",
+ }
+ 

diff --git a/dev-python/readme-renderer/readme-renderer-43.0-r1.ebuild b/dev-python/readme-renderer/readme-renderer-43.0-r1.ebuild
new file mode 100644
index 000000000000..c99b09d0963b
--- /dev/null
+++ b/dev-python/readme-renderer/readme-renderer-43.0-r1.ebuild
@@ -0,0 +1,39 @@
+# 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_{10..12} pypy3 )
+
+inherit distutils-r1 pypi
+
+DESCRIPTION="A library for rendering 'readme' descriptions for Warehouse"
+HOMEPAGE="
+	https://github.com/pypa/readme_renderer/
+	https://pypi.org/project/readme-renderer/
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+
+RDEPEND="
+	>=dev-python/docutils-0.13.1[${PYTHON_USEDEP}]
+	>=dev-python/nh3-0.2.14[${PYTHON_USEDEP}]
+	>=dev-python/pygments-2.5.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+	test? (
+		>=dev-python/docutils-0.21.2[${PYTHON_USEDEP}]
+	)
+"
+
+distutils_enable_tests pytest
+
+DOCS=( README.rst )
+
+PATCHES=(
+	# https://github.com/pypa/readme_renderer/pull/315
+	"${FILESDIR}/${P}-docutils-0.21.patch"
+)


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-07-07 17:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-07 17:23 [gentoo-commits] repo/gentoo:master commit in: dev-python/readme-renderer/files/, dev-python/readme-renderer/ Michał Górny

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox