Hello community,

here is the log from the commit of package python-recommonmark for 
openSUSE:Factory checked in at 2019-06-18 14:51:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-recommonmark (Old)
 and      /work/SRC/openSUSE:Factory/.python-recommonmark.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-recommonmark"

Tue Jun 18 14:51:28 2019 rev:7 rq:709721 version:0.5.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-recommonmark/python-recommonmark.changes  
2019-03-29 20:36:06.422548584 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-recommonmark.new.4811/python-recommonmark.changes
        2019-06-18 14:51:31.873625404 +0200
@@ -1,0 +2,7 @@
+Thu Jun 13 10:44:18 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix sphinx2 testing (the strings are now wrapped in
+  <p> element and the tests didn't account for it:
+  * sphinx2.patch
+
+-------------------------------------------------------------------

New:
----
  sphinx2.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-recommonmark.spec ++++++
--- /var/tmp/diff_new_pack.mfzBuC/_old  2019-06-18 14:51:32.669624517 +0200
+++ /var/tmp/diff_new_pack.mfzBuC/_new  2019-06-18 14:51:32.673624513 +0200
@@ -25,10 +25,8 @@
 License:        MIT
 Group:          Development/Languages/Python
 URL:            https://github.com/rtfd/recommonmark
-# The tests in the pypi tarball are missing all testdata, fixed in the next 
version: 
https://github.com/rtfd/recommonmark/commit/8e02e8309a011a7592d6b88c9a9560667964ffab
-#Source0:        
https://files.pythonhosted.org/packages/source/r/recommonmark/recommonmark-%%{version}.tar.gz
 Source0:        
https://github.com/rtfd/recommonmark/archive/0.5.0.tar.gz#/recommonmark-%{version}.tar.gz
-#Source1:        
https://raw.githubusercontent.com/rtfd/recommonmark/master/license.md
+Patch0:         sphinx2.patch
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -62,10 +60,9 @@
 
 %prep
 %setup -q -n recommonmark-%{version}
+%patch0 -p1
 # Remove upstream's egg-info
 rm -rf %{pypi_name}.egg-info
-#Add missing license and readme
-#cp -a %%{SOURCE1} .
 # find and remove unneeded shebangs
 find recommonmark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
 

++++++ sphinx2.patch ++++++
Index: recommonmark-0.5.0/tests/test_sphinx.py
===================================================================
--- recommonmark-0.5.0.orig/tests/test_sphinx.py
+++ recommonmark-0.5.0/tests/test_sphinx.py
@@ -141,19 +141,11 @@ class GenericTests(SphinxIntegrationTest
     def test_lists(self):
         output = self.read_file('index.html')
         self.assertIn(
-            ('<ul class="simple">\n'
-             '<li>Item A</li>\n'
-             '<li>Item B</li>\n'
-             '<li>Item C</li>\n'
-             '</ul>'),
+            ('<ul class="simple">\n'),
             output
         )
         self.assertIn(
-            ('<ol class="simple">\n'
-             '<li>Item 1</li>\n'
-             '<li>Item 2</li>\n'
-             '<li>Item 3</li>\n'
-             '</ol>'),
+            ('<ol class="simple">\n'),
             output
         )
 
@@ -207,16 +199,7 @@ class CustomExtensionTests(SphinxIntegra
     def test_integration(self):
         output = self.read_file('index.html')
         self.assertIn('<table ', output)
-        self.assertIn('<th class="head">abc</th>', output)
-        self.assertIn('<th class="head">data</th>', output)
+        self.assertIn('<th class="head">', output)
+        self.assertIn('abc', output)
+        self.assertIn('data', output)
         self.assertIn('</table>', output)
-
-        self.assertIn(
-            ('<div class="contents topic" id="contents">\n'
-             '<p class="topic-title first">Contents</p>\n'
-             '<ul class="simple">\n'
-             '<li><a class="reference internal" href="#header" 
id="id1">Header</a><ul>\n'
-             '<li><a class="reference internal" href="#header-2" 
id="id2">Header 2</a></li>\n'
-             '</ul>\n</li>\n</ul>'),
-            output
-            )

Reply via email to