Hello community,
here is the log from the commit of package python-recommonmark for
openSUSE:Factory checked in at 2017-07-29 09:01:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-recommonmark (Old)
and /work/SRC/openSUSE:Factory/.python-recommonmark.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-recommonmark"
Sat Jul 29 09:01:45 2017 rev:3 rq:512812 version:0.4.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-recommonmark/python-recommonmark.changes
2017-05-06 18:31:20.948854139 +0200
+++
/work/SRC/openSUSE:Factory/.python-recommonmark.new/python-recommonmark.changes
2017-07-29 09:02:22.704598308 +0200
@@ -1,0 +2,5 @@
+Thu Jul 20 21:24:28 UTC 2017 - [email protected]
+
+- add fix-commonmark-compatibility.patch to fix imported names
+
+-------------------------------------------------------------------
New:
----
fix-commonmark-compatibility.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-recommonmark.spec ++++++
--- /var/tmp/diff_new_pack.5JFQqY/_old 2017-07-29 09:02:23.392501121 +0200
+++ /var/tmp/diff_new_pack.5JFQqY/_new 2017-07-29 09:02:23.396500556 +0200
@@ -27,14 +27,16 @@
Url: https://github.com/rtfd/recommonmark
Source0:
https://files.pythonhosted.org/packages/source/r/recommonmark/recommonmark-%{version}.tar.gz
Source1:
https://raw.githubusercontent.com/rtfd/recommonmark/master/license.md
-BuildRequires: fdupes
-BuildRequires: python-rpm-macros
+# PATCH-FIX-UPSTREAM fix-commonmark-compatibility.patch
[email protected] -- fix commonmark renamings
+Patch0: fix-commonmark-compatibility.patch
+BuildRequires: %{python_module CommonMark}
BuildRequires: %{python_module devel}
-BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module docutils}
-BuildRequires: %{python_module CommonMark}
-Requires: python-docutils
+BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
Requires: python-CommonMark
+Requires: python-docutils
%ifpython2
Obsoletes: %{oldpython}-reCommonMark < %{version}
Provides: %{oldpython}-reCommonMark = %{version}
@@ -58,9 +60,9 @@
Documentation is available on Read the Docs:
http://recommonmark.readthedocs.org
-
%prep
%setup -q -n recommonmark-%{version}
+%patch0
# Remove upstream's egg-info
rm -rf %{pypi_name}.egg-info
#Add missing license and readme
@@ -68,11 +70,9 @@
# find and remove unneeded shebangs
find recommonmark -name "*.py" | xargs sed -i '1 {/^#!/ d}'
-
%build
%python_build
-
%install
%python_install
%fdupes %{buildroot}%{_prefix}
@@ -84,14 +84,12 @@
%python_clone -a %{buildroot}%{_bindir}/cm2xetex
%python_clone -a %{buildroot}%{_bindir}/cm2xml
-
%post
%{python_install_alternative cm2man cm2latex cm2xetex cm2pseudoxml cm2html
cm2xml}
%preun
%python_uninstall_alternative cm2man
-
%files %{python_files}
%defattr(-,root,root,-)
%doc license.md
++++++ fix-commonmark-compatibility.patch ++++++
--- recommonmark/parser.py 2016-01-05 22:59:38.000000000 +0100
+++ recommonmark/parser.py 2017-07-20 23:22:53.620321088 +0200
@@ -3,7 +3,7 @@
from docutils import parsers, nodes
-from CommonMark import DocParser, HTMLRenderer
+from CommonMark import Parser, HtmlRenderer
from warnings import warn
__all__ = ['CommonMarkParser']
@@ -80,7 +80,7 @@
self.current_node = document
self.section_handler = _SectionHandler(document)
- parser = DocParser()
+ parser = Parser()
ast = parser.parse(inputstring + '\n')
@@ -220,7 +220,7 @@
def inline_entity(inline):
- val = HTMLRenderer().renderInline(inline)
+ val = HtmlRenderer().renderInline(inline)
entity_node = nodes.paragraph('', val, format='html')
return entity_node