diff --git a/markdown-2.6.11-python37.patch b/markdown-2.6.11-python37.patch new file mode 100644 index 0000000..e94798d --- /dev/null +++ b/markdown-2.6.11-python37.patch @@ -0,0 +1,11 @@ +diff -up Markdown-2.6.11/tests/__init__.py.orig markdown/tests/__init__.py +--- Markdown-2.6.11/tests/__init__.py.orig 2018-06-03 10:51:55.518781537 +0000 ++++ Markdown-2.6.11/tests/__init__.py 2018-06-03 10:59:34.088350325 +0000 +@@ -185,5 +185,7 @@ def run(): + # Except for the warnings that shouldn't + warnings.filterwarnings('default', category=PendingDeprecationWarning) + warnings.filterwarnings('default', category=DeprecationWarning, module='markdown') ++ warnings.filterwarnings('default', category=DeprecationWarning, module='yaml') ++ warnings.filterwarnings('default', category=DeprecationWarning, module='nose') + + nose.main(addplugins=[HtmlOutput(), Markdown()]) diff --git a/python-Markdown.changes b/python-Markdown.changes index ce0d69e..997f4e6 100644 --- a/python-Markdown.changes +++ b/python-Markdown.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 7 07:51:51 UTC 2018 - tchvatal@suse.com + +- Add patch to build with python 3.7: + * markdown-2.6.11-python37.patch + ------------------------------------------------------------------- Mon Mar 19 11:32:36 UTC 2018 - tchvatal@suse.com diff --git a/python-Markdown.spec b/python-Markdown.spec index ecf327d..316306f 100644 --- a/python-Markdown.spec +++ b/python-Markdown.spec @@ -24,8 +24,9 @@ Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause Group: Development/Languages/Python -Url: http://packages.python.org/Markdown/ +Url: https://python-markdown.github.io/ Source: https://files.pythonhosted.org/packages/source/M/Markdown/Markdown-%{version}.tar.gz +Patch0: markdown-2.6.11-python37.patch BuildRequires: %{python_module PyYAML} BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} @@ -53,6 +54,7 @@ supported by the [Available Extensions][]. %prep %setup -q -n Markdown-%{version} +%patch0 -p1 %build %python_build