forked from pool/python-readme_renderer
Compare commits
4 Commits
Author | SHA256 | Date | |
---|---|---|---|
53cc02d6bf | |||
6bed2955da | |||
4d2fbfbe87 | |||
f57734f9a9 |
95
pygments.patch
Normal file
95
pygments.patch
Normal file
@@ -0,0 +1,95 @@
|
|||||||
|
From 04d5cfe76850192364eff344be7fe27730af8484 Mon Sep 17 00:00:00 2001
|
||||||
|
From: shenxianpeng <xianpeng.shen@gmail.com>
|
||||||
|
Date: Sat, 18 Jan 2025 06:30:04 -0500
|
||||||
|
Subject: [PATCH] update test outputs to fix test fail (#325)
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/fixtures/test_CommonMark_008.html | 6 +++---
|
||||||
|
tests/fixtures/test_GFM_doublequotes.html | 2 +-
|
||||||
|
tests/fixtures/test_GFM_highlight.html | 2 +-
|
||||||
|
tests/fixtures/test_GFM_highlight_default_py.html | 2 +-
|
||||||
|
tests/fixtures/test_GFM_malicious_pre.html | 2 +-
|
||||||
|
tests/fixtures/test_rst_008.html | 6 +++---
|
||||||
|
6 files changed, 10 insertions(+), 10 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/tests/fixtures/test_CommonMark_008.html b/tests/fixtures/test_CommonMark_008.html
|
||||||
|
index eef144d..5072058 100644
|
||||||
|
--- a/tests/fixtures/test_CommonMark_008.html
|
||||||
|
+++ b/tests/fixtures/test_CommonMark_008.html
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
<p>Here is some Python code for a <code>Dog</code>:</p>
|
||||||
|
-<pre lang="python3"><span class="k">class</span> <span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span>
|
||||||
|
- <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span>
|
||||||
|
+<pre lang="python3"><span class="k">class</span><span class="w"> </span><span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span>
|
||||||
|
+ <span class="k">def</span><span class="w"> </span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span>
|
||||||
|
<span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span>
|
||||||
|
|
||||||
|
- <span class="k">def</span> <span class="nf">make_sound</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||||
|
+ <span class="k">def</span><span class="w"> </span><span class="nf">make_sound</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
|
||||||
|
<span class="nb">print</span><span class="p">(</span><span class="s1">'Ruff!'</span><span class="p">)</span>
|
||||||
|
|
||||||
|
<span class="n">dog</span> <span class="o">=</span> <span class="n">Dog</span><span class="p">(</span><span class="s1">'Fido'</span><span class="p">)</span>
|
||||||
|
diff --git a/tests/fixtures/test_GFM_doublequotes.html b/tests/fixtures/test_GFM_doublequotes.html
|
||||||
|
index f75a4cf..b26adba 100644
|
||||||
|
--- a/tests/fixtures/test_GFM_doublequotes.html
|
||||||
|
+++ b/tests/fixtures/test_GFM_doublequotes.html
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
<p>This is normal text.</p>
|
||||||
|
<pre><code>This is code text.
|
||||||
|
</code></pre>
|
||||||
|
-<pre lang="python3"><span class="k">def</span> <span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
+<pre lang="python3"><span class="k">def</span><span class="w"> </span><span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
<span class="w"> </span><span class="sd">"""This is a docstring."""</span>
|
||||||
|
<span class="k">pass</span>
|
||||||
|
</pre>
|
||||||
|
diff --git a/tests/fixtures/test_GFM_highlight.html b/tests/fixtures/test_GFM_highlight.html
|
||||||
|
index c2cf7bb..1eae5fd 100644
|
||||||
|
--- a/tests/fixtures/test_GFM_highlight.html
|
||||||
|
+++ b/tests/fixtures/test_GFM_highlight.html
|
||||||
|
@@ -1,7 +1,7 @@
|
||||||
|
<p>This is normal text.</p>
|
||||||
|
<pre><code>This is code text.
|
||||||
|
</code></pre>
|
||||||
|
-<pre lang="python3"><span class="k">def</span> <span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
+<pre lang="python3"><span class="k">def</span><span class="w"> </span><span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
<span class="k">pass</span>
|
||||||
|
</pre>
|
||||||
|
<pre lang="go"><span class="kd">func</span><span class="w"> </span><span class="nx">ThisIsGo</span><span class="p">(){</span>
|
||||||
|
diff --git a/tests/fixtures/test_GFM_highlight_default_py.html b/tests/fixtures/test_GFM_highlight_default_py.html
|
||||||
|
index d85d6ce..d1a136f 100644
|
||||||
|
--- a/tests/fixtures/test_GFM_highlight_default_py.html
|
||||||
|
+++ b/tests/fixtures/test_GFM_highlight_default_py.html
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-<pre lang="python3"><span class="k">async</span> <span class="k">def</span> <span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
+<pre lang="python3"><span class="k">async</span> <span class="k">def</span><span class="w"> </span><span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
<span class="k">pass</span>
|
||||||
|
|
||||||
|
<span class="nb">print</span><span class="p">(</span><span class="k">await</span> <span class="n">this_is_python</span><span class="p">())</span>
|
||||||
|
diff --git a/tests/fixtures/test_GFM_malicious_pre.html b/tests/fixtures/test_GFM_malicious_pre.html
|
||||||
|
index dc7b6e6..2e586ec 100644
|
||||||
|
--- a/tests/fixtures/test_GFM_malicious_pre.html
|
||||||
|
+++ b/tests/fixtures/test_GFM_malicious_pre.html
|
||||||
|
@@ -1,5 +1,5 @@
|
||||||
|
<p>This is normal text.</p>
|
||||||
|
-<pre lang="python3"><span class="k">def</span> <span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
+<pre lang="python3"><span class="k">def</span><span class="w"> </span><span class="nf">this_is_python</span><span class="p">():</span>
|
||||||
|
<span class="w"> </span><span class="sd">"""This is a docstring."""</span>
|
||||||
|
<span class="k">pass</span>
|
||||||
|
<span class="o"><</span><span class="n">script</span> <span class="nb">type</span><span class="o">=</span><span class="s2">"text/javascript"</span><span class="o">></span><span class="n">alert</span><span class="p">(</span><span class="s1">'I am evil.'</span><span class="p">);</span><span class="o"></</span><span class="n">script</span><span class="o">></span>
|
||||||
|
diff --git a/tests/fixtures/test_rst_008.html b/tests/fixtures/test_rst_008.html
|
||||||
|
index 6762f3a..bbb44a8 100644
|
||||||
|
--- a/tests/fixtures/test_rst_008.html
|
||||||
|
+++ b/tests/fixtures/test_rst_008.html
|
||||||
|
@@ -1,9 +1,9 @@
|
||||||
|
<p>Here is some Python code for a <span class="docutils literal">Dog</span>:</p>
|
||||||
|
-<pre><code><span class="k">class</span> <span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w">
|
||||||
|
-</span> <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span><span class="w">
|
||||||
|
+<pre><code><span class="k">class</span><span class="w"> </span><span class="nc">Dog</span><span class="p">(</span><span class="n">Animal</span><span class="p">):</span><span class="w">
|
||||||
|
+</span> <span class="k">def</span><span class="w"> </span><span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">name</span><span class="p">):</span><span class="w">
|
||||||
|
</span> <span class="bp">self</span><span class="o">.</span><span class="n">name</span> <span class="o">=</span> <span class="n">name</span><span class="w">
|
||||||
|
|
||||||
|
-</span> <span class="k">def</span> <span class="nf">make_sound</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span><span class="w">
|
||||||
|
+</span> <span class="k">def</span><span class="w"> </span><span class="nf">make_sound</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span><span class="w">
|
||||||
|
</span> <span class="nb">print</span><span class="p">(</span><span class="s1">'Ruff!'</span><span class="p">)</span><span class="w">
|
||||||
|
|
||||||
|
</span><span class="n">dog</span> <span class="o">=</span> <span class="n">Dog</span><span class="p">(</span><span class="s1">'Fido'</span><span class="p">)</span></code></pre>
|
@@ -1,3 +1,23 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 20 15:29:01 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add pygments.patch to fix test failure with Pygments 2.19
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Nov 7 13:28:54 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Update to 44.0:
|
||||||
|
* Drop support for Python 3.8 (#315)
|
||||||
|
* Require docutils 0.21.2 and higher (#315)
|
||||||
|
* Remove HTML5 <s> tag from the list of allowed HTML tags (#315)
|
||||||
|
* Test all supported CPython and PyPy versions in CI (#315)
|
||||||
|
* Resolve Node 16 deprecation warnings in CI (#309)
|
||||||
|
* Lint specific directories (#312)
|
||||||
|
* Build a wheel once for all tox test environments (#308)
|
||||||
|
* Lazy open output files, and always close them (#314)
|
||||||
|
* Gitpod: Migrate to the Even Better TOML extension (#306)
|
||||||
|
* check-manifest: Remove a now-default .gitpod.yml exclusion (#307)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 16 12:54:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Sat Mar 16 12:54:36 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-readme_renderer
|
# spec file for package python-readme_renderer
|
||||||
#
|
#
|
||||||
# Copyright (c) 2024 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-readme_renderer
|
Name: python-readme_renderer
|
||||||
Version: 43.0
|
Version: 44.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A library for rendering "readme" descriptions
|
Summary: A library for rendering "readme" descriptions
|
||||||
License: Apache-2.0
|
License: Apache-2.0
|
||||||
URL: https://github.com/pypa/readme_renderer
|
URL: https://github.com/pypa/readme_renderer
|
||||||
Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/pypa/readme_renderer/pull/325 fix: update test outputs to fix tests fail
|
||||||
|
Patch: pygments.patch
|
||||||
BuildRequires: %{python_module Pygments >= 2.5.1}
|
BuildRequires: %{python_module Pygments >= 2.5.1}
|
||||||
BuildRequires: %{python_module cmarkgfm >= 0.7.0}
|
BuildRequires: %{python_module cmarkgfm >= 0.7.0}
|
||||||
BuildRequires: %{python_module docutils >= 0.13.1}
|
BuildRequires: %{python_module docutils >= 0.13.1}
|
||||||
|
BIN
readme_renderer-43.0.tar.gz
(Stored with Git LFS)
BIN
readme_renderer-43.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
BIN
readme_renderer-44.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
readme_renderer-44.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
Reference in New Issue
Block a user