Accepting request 643640 from devel:languages:python

- 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:

OBS-URL: https://build.opensuse.org/request/show/643640
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-Markdown?expand=0&rev=27
This commit is contained in:
Dominique Leuenberger 2018-11-06 12:51:39 +00:00 committed by Git OBS Bridge
commit 7931d2bd8d
6 changed files with 55 additions and 19 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a856869c7ff079ad84a3e19cd87a64998350c2b94e9e08e44270faef33400f81
size 274132

3
Markdown-3.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b853a125f03db3f2fdbcbc96fb738f2a7f2cdabc3f1262a4d89121c6ce1bd7e3
size 283478

View File

@ -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()])

View File

@ -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__))

View File

@ -1,3 +1,41 @@
-------------------------------------------------------------------
Thu Oct 18 19:03:17 UTC 2018 - Benoît Monin <benoit.monin@gmx.fr>
- 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:
* add markdown-3.0-python37.patch
* remove markdown-2.6.11-python37.patch
- run the tests via unittest discover
- remove nose from BuildRequires: not used anymore
-------------------------------------------------------------------
Tue Aug 7 07:51:51 UTC 2018 - tchvatal@suse.com

View File

@ -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