diff --git a/Markdown-2.6.11.tar.gz b/Markdown-2.6.11.tar.gz deleted file mode 100644 index c884cd4..0000000 --- a/Markdown-2.6.11.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a856869c7ff079ad84a3e19cd87a64998350c2b94e9e08e44270faef33400f81 -size 274132 diff --git a/Markdown-3.0.tar.gz b/Markdown-3.0.tar.gz new file mode 100644 index 0000000..2500460 --- /dev/null +++ b/Markdown-3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b853a125f03db3f2fdbcbc96fb738f2a7f2cdabc3f1262a4d89121c6ce1bd7e3 +size 283478 diff --git a/markdown-2.6.11-python37.patch b/markdown-2.6.11-python37.patch deleted file mode 100644 index e94798d..0000000 --- a/markdown-2.6.11-python37.patch +++ /dev/null @@ -1,11 +0,0 @@ -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/markdown-3.0-python37.patch b/markdown-3.0-python37.patch new file mode 100644 index 0000000..98a80bd --- /dev/null +++ b/markdown-3.0-python37.patch @@ -0,0 +1,10 @@ +--- Markdown-3.0/tests/test_legacy.py.orig 2018-10-18 20:59:01.521952070 +0200 ++++ Markdown-3.0/tests/test_legacy.py 2018-10-18 20:59:20.746395446 +0200 +@@ -29,6 +29,7 @@ + # 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') + + parent_test_dir = os.path.abspath(os.path.dirname(__file__)) + diff --git a/python-Markdown.changes b/python-Markdown.changes index 997f4e6..3baa9dd 100644 --- a/python-Markdown.changes +++ b/python-Markdown.changes @@ -1,3 +1,39 @@ +------------------------------------------------------------------- +Thu Oct 18 19:03:17 UTC 2018 - BenoƮt Monin + +- update to version 3.0: major release + * backwards-incompatible changes: + + enable_attributes keyword deprecated + + smart_emphasis keyword and smart_strong extension deprecated + + output_formats simplified to html and xhtml + + safe_mode and html_replacement_text keywords deprecated + + Positional arguments deprecated + + Extension name behavior has changed + + Extension configuration as part of extension name deprecated + + HeaderId extension deprecated + + Homegrown OrderedDict has been replaced with a purpose-built + Registry + + Markdown class instance references + + markdown.util.isBlockLevel deprecated + + md_globals keyword deprecated from extension API + + Added new, more flexible InlineProcessor class + * new features: + + a new testing framework is included as a part of the Markdown + library, which can also be used by third party extensions + + a new toc_depth parameter has been added to the Table of + Contents Extension + + new toc_tokens attribute has been added to the Markdown class + by the Table of Contents Extension + + when the Table of Contents Extension is used in conjunction + with the Attribute Lists Extension and a data-toc-label + attribute is defined on a header, the content of the + data-toc-label attribute is now used as the content of the + Table of Contents item for that header + + additional CSS class names can be appended to Admonitions +- update and adapt the patch for python-3.7 +- run the tests via unittest discover +- remove nose from BuildRequires: not used anymore + ------------------------------------------------------------------- Tue Aug 7 07:51:51 UTC 2018 - tchvatal@suse.com diff --git a/python-Markdown.spec b/python-Markdown.spec index 316306f..9132073 100644 --- a/python-Markdown.spec +++ b/python-Markdown.spec @@ -12,23 +12,22 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-Markdown -Version: 2.6.11 +Version: 3.0 Release: 0 Summary: Python implementation of Markdown License: BSD-3-Clause Group: Development/Languages/Python 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 +Patch0: markdown-3.0-python37.patch BuildRequires: %{python_module PyYAML} -BuildRequires: %{python_module nose} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module xml} BuildRequires: fdupes @@ -66,7 +65,7 @@ supported by the [Available Extensions][]. %python_clone -a %{buildroot}%{_bindir}/markdown_py %check -%python_exec run-tests.py +%python_exec -m unittest discover %post %python_install_alternative markdown_py