diff --git a/fix-tests-pygments-2.14.0.patch b/fix-tests-pygments-2.14.0.patch deleted file mode 100644 index f76a793..0000000 --- a/fix-tests-pygments-2.14.0.patch +++ /dev/null @@ -1,110 +0,0 @@ -From c213bb9f3adfc1dccc2f03141489f833bd83db53 Mon Sep 17 00:00:00 2001 -From: Daniel Garcia Moreno -Date: Wed, 4 Jan 2023 17:21:48 +0100 -Subject: [PATCH] Adapt tests to pygments 2.14.0 - -This patch update the test fixtures to match the output of pygments -2.14.0 ---- - tests/fixtures/test_CommonMark_008.html | 4 ++-- - tests/fixtures/test_GFM_doublequotes.html | 8 ++++---- - tests/fixtures/test_GFM_highlight.html | 6 +++--- - tests/fixtures/test_GFM_malicious_pre.html | 2 +- - tests/fixtures/test_rst_008.html | 18 +++++++++--------- - 5 files changed, 19 insertions(+), 19 deletions(-) - -diff --git a/tests/fixtures/test_CommonMark_008.html b/tests/fixtures/test_CommonMark_008.html -index b941909..4d52a37 100644 ---- a/tests/fixtures/test_CommonMark_008.html -+++ b/tests/fixtures/test_CommonMark_008.html -@@ -9,8 +9,8 @@ - dog = Dog('Fido') - -

and then here is some bash:

--
if [ "$1" = "--help" ]; then
--    echo "OK"
-+
if [ "$1" = "--help" ]; then
-+    echo "OK"
- fi
- 
-

or click SurveyMonkey

-diff --git a/tests/fixtures/test_GFM_doublequotes.html b/tests/fixtures/test_GFM_doublequotes.html -index 546fd39..1353714 100644 ---- a/tests/fixtures/test_GFM_doublequotes.html -+++ b/tests/fixtures/test_GFM_doublequotes.html -@@ -2,10 +2,10 @@ -
This is code text.
- 
-
def this_is_python():
--    """This is a docstring."""
-+    """This is a docstring."""
-     pass
- 
--
func ThisIsGo(){
--    return
--}
-+
func ThisIsGo(){
-+    return
-+}
- 
-diff --git a/tests/fixtures/test_GFM_highlight.html b/tests/fixtures/test_GFM_highlight.html -index 4094325..c2cf7bb 100644 ---- a/tests/fixtures/test_GFM_highlight.html -+++ b/tests/fixtures/test_GFM_highlight.html -@@ -4,9 +4,9 @@ -
def this_is_python():
-     pass
- 
--
func ThisIsGo(){
--    return
--}
-+
func ThisIsGo(){
-+    return
-+}
- 
-
An unknown code fence block
- 
-diff --git a/tests/fixtures/test_GFM_malicious_pre.html b/tests/fixtures/test_GFM_malicious_pre.html -index 7194eee..245e17e 100644 ---- a/tests/fixtures/test_GFM_malicious_pre.html -+++ b/tests/fixtures/test_GFM_malicious_pre.html -@@ -1,6 +1,6 @@ -

This is normal text.

-
def this_is_python():
--    """This is a docstring."""
-+    """This is a docstring."""
-     pass
- <script type="text/javascript">alert('I am evil.');</script>
- 
-diff --git a/tests/fixtures/test_rst_008.html b/tests/fixtures/test_rst_008.html -index 621a70c..6a01a9d 100644 ---- a/tests/fixtures/test_rst_008.html -+++ b/tests/fixtures/test_rst_008.html -@@ -1,15 +1,15 @@ -

Here is some Python code for a Dog:

--
class Dog(Animal):
--    def __init__(self, name):
--        self.name = name
-+
class Dog(Animal):
-+    def __init__(self, name):
-+        self.name = name
- 
--    def make_sound(self):
--        print('Ruff!')
-+    def make_sound(self):
-+        print('Ruff!')
- 
--dog = Dog('Fido')
-+dog = Dog('Fido')
-

and then here is some bash:

--
if [ "$1" = "--help" ]; then
--    echo "OK"
--fi
-+
if [ "$1" = "--help" ]; then
-+    echo "OK"
-+fi
-

or click SurveyMonkey

-
An unknown code fence block
--- -2.39.0 - diff --git a/python-readme_renderer.changes b/python-readme_renderer.changes index 3c8b687..7335a59 100644 --- a/python-readme_renderer.changes +++ b/python-readme_renderer.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Thu Sep 7 11:38:42 UTC 2023 - Dirk Müller + +- update to 41.0: + * Allow HTML5 `figcaption` tag through cleaner (#291) + * Test `README.rst` from this project (#288) + * Add CLI option to render package README. (#271) + * Adapt tests to pygments 2.14.0 (#272) + * Update release process to use Trusted Publishing (#276) + * Replace usage of deprecated `pkg_resources` with + `importlib.metadata` (#281) + * Drop support for Python 3.7 (#282), Test against Python 3.11 + (#280) +- drop fix-tests-pygments-2.14.0.patch (upstream) + ------------------------------------------------------------------- Fri Apr 21 12:32:44 UTC 2023 - Dirk Müller @@ -12,7 +27,7 @@ Thu Apr 13 22:44:24 UTC 2023 - Matej Cepl Wed Jan 4 16:24:09 UTC 2023 - Daniel Garcia - Add fix-tests-pygments-2.14.0.patch to adapt tests to the new version of - pygments gh#pypa/readme_renderer#272 + pygments gh#pypa/readme_renderer#272 ------------------------------------------------------------------- Wed Nov 9 18:51:01 UTC 2022 - Yogalakshmi Arunachalam @@ -42,7 +57,7 @@ Wed Nov 9 18:51:01 UTC 2022 - Yogalakshmi Arunachalam * Update codebase for modern Python (#244) * Fix table cell spans (#245) * Allow math directive in rst (#246) - * Preserve lang attribute in pre (#247) + * Preserve lang attribute in pre (#247) ------------------------------------------------------------------- Fri Jul 15 10:07:35 UTC 2022 - Jacob Michalskie diff --git a/python-readme_renderer.spec b/python-readme_renderer.spec index 3cdb7fe..b47b0cc 100644 --- a/python-readme_renderer.spec +++ b/python-readme_renderer.spec @@ -16,17 +16,14 @@ # -%define skip_python2 1 %{?sle15_python_module_pythons} Name: python-readme_renderer -Version: 37.3 +Version: 41.0 Release: 0 Summary: A library for rendering "readme" descriptions License: Apache-2.0 URL: https://github.com/pypa/readme_renderer Source: https://files.pythonhosted.org/packages/source/r/readme_renderer/readme_renderer-%{version}.tar.gz -# PATCH-FIX-UPSTREAM fix-tests-pygments-2.14.0.patch gh#pypa/readme_renderer#272 -Patch0: fix-tests-pygments-2.14.0.patch BuildRequires: %{python_module Pygments >= 2.5.1} BuildRequires: %{python_module bleach >= 2.1.0} BuildRequires: %{python_module cmarkgfm >= 0.7.0} diff --git a/readme_renderer-37.3.tar.gz b/readme_renderer-37.3.tar.gz deleted file mode 100644 index 12ef1dd..0000000 --- a/readme_renderer-37.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd653186dfc73055656f090f227f5cb22a046d7f71a841dfa305f55c9a513273 -size 29718 diff --git a/readme_renderer-41.0.tar.gz b/readme_renderer-41.0.tar.gz new file mode 100644 index 0000000..ad74f55 --- /dev/null +++ b/readme_renderer-41.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f4b11e5893f5a5d725f592c5a343e0dc74f5f273cb3dcf8c42d9703a27073f7 +size 32420