Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
4249b605f0 |
@@ -1,95 +0,0 @@
|
|||||||
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,37 +1,3 @@
|
|||||||
-------------------------------------------------------------------
|
|
||||||
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>
|
|
||||||
|
|
||||||
- update to 43.0:
|
|
||||||
* Allow HTML5 picture tag through cleaner
|
|
||||||
* Test against Python 3.12
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
|
||||||
Wed Dec 27 16:45:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
|
||||||
|
|
||||||
- update to 42.0:
|
|
||||||
* Migrate from ``bleach`` to ``nh3`` (#295)
|
|
||||||
* Migrate from ``setup.py`` to ``pyproject.toml``
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Sep 7 11:38:42 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Thu Sep 7 11:38:42 UTC 2023 - 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) 2025 SUSE LLC
|
# Copyright (c) 2023 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,26 +18,23 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-readme_renderer
|
Name: python-readme_renderer
|
||||||
Version: 44.0
|
Version: 41.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 bleach >= 2.1.0}
|
||||||
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}
|
||||||
BuildRequires: %{python_module nh3 >= 0.2.14}
|
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module wheel}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-Pygments >= 2.5.1
|
Requires: python-Pygments >= 2.5.1
|
||||||
|
Requires: python-bleach >= 2.1.0
|
||||||
Requires: python-docutils >= 0.13.1
|
Requires: python-docutils >= 0.13.1
|
||||||
Requires: python-nh3 >= 0.2.14
|
|
||||||
Recommends: python-cmarkgfm >= 0.7.0
|
Recommends: python-cmarkgfm >= 0.7.0
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
@@ -51,10 +48,10 @@ long_description for packages.
|
|||||||
%autosetup -p1 -n readme_renderer-%{version}
|
%autosetup -p1 -n readme_renderer-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%pyproject_wheel
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%pyproject_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -65,6 +62,6 @@ export LANG=en_US.UTF-8
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
%doc CHANGES.rst README.rst
|
%doc CHANGES.rst README.rst
|
||||||
%{python_sitelib}/readme_renderer
|
%{python_sitelib}/readme_renderer
|
||||||
%{python_sitelib}/readme_renderer-%{version}.dist-info
|
%{python_sitelib}/readme_renderer-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
BIN
readme_renderer-41.0.tar.gz
(Stored with Git LFS)
Normal file
BIN
readme_renderer-41.0.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
readme_renderer-44.0.tar.gz
(Stored with Git LFS)
BIN
readme_renderer-44.0.tar.gz
(Stored with Git LFS)
Binary file not shown.
Reference in New Issue
Block a user