Hello community,
here is the log from the commit of package python-Markdown for openSUSE:Factory
checked in at 2019-01-08 12:16:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Markdown (Old)
and /work/SRC/openSUSE:Factory/.python-Markdown.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Markdown"
Tue Jan 8 12:16:52 2019 rev:29 rq:662424 version:3.0.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Markdown/python-Markdown.changes
2018-12-14 20:48:36.877408107 +0100
+++
/work/SRC/openSUSE:Factory/.python-Markdown.new.28833/python-Markdown.changes
2019-01-08 12:16:53.765014752 +0100
@@ -1,0 +2,9 @@
+Wed Jan 2 11:04:33 UTC 2019 - [email protected]
+
+- Update to version 3.0.1:
+ * Brought back the `version` and `version_info` variables
+ (gh#Python-Markdown/markdown#709).
+ * Added support for hexadecimal HTML entities
+ (gh#Python-Markdown/markdown#712).
+
+-------------------------------------------------------------------
Old:
----
Markdown-3.0.tar.gz
New:
----
Markdown-3.0.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-Markdown.spec ++++++
--- /var/tmp/diff_new_pack.4aoiuY/_old 2019-01-08 12:16:54.233014312 +0100
+++ /var/tmp/diff_new_pack.4aoiuY/_new 2019-01-08 12:16:54.237014308 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-Markdown
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,14 +12,14 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define oldpython python
Name: python-Markdown
-Version: 3.0
+Version: 3.0.1
Release: 0
Summary: Python implementation of Markdown
License: BSD-3-Clause
++++++ Markdown-3.0.tar.gz -> Markdown-3.0.1.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/Markdown.egg-info/PKG-INFO
new/Markdown-3.0.1/Markdown.egg-info/PKG-INFO
--- old/Markdown-3.0/Markdown.egg-info/PKG-INFO 2018-09-22 04:04:16.000000000
+0200
+++ new/Markdown-3.0.1/Markdown.egg-info/PKG-INFO 2018-09-26
18:34:30.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 1.2
Name: Markdown
-Version: 3.0
+Version: 3.0.1
Summary: Python implementation of Markdown.
Home-page: https://Python-Markdown.github.io/
Author: Waylan Limberg
Author-email: [email protected]
License: BSD License
-Download-URL:
http://pypi.python.org/packages/source/M/Markdown/Markdown-3.0-py2.py3-none-any.whl
+Download-URL:
http://pypi.python.org/packages/source/M/Markdown/Markdown-3.0.1-py2.py3-none-any.whl
Description:
This is a Python implementation of John Gruber's Markdown_.
It is almost completely compliant with the reference implementation,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/Markdown.egg-info/SOURCES.txt
new/Markdown-3.0.1/Markdown.egg-info/SOURCES.txt
--- old/Markdown-3.0/Markdown.egg-info/SOURCES.txt 2018-09-22
04:04:16.000000000 +0200
+++ new/Markdown-3.0.1/Markdown.egg-info/SOURCES.txt 2018-09-26
18:34:30.000000000 +0200
@@ -400,5 +400,6 @@
tests/test_syntax/extensions/test_legacy_em.py
tests/test_syntax/extensions/test_tables.py
tests/test_syntax/inline/__init__.py
+tests/test_syntax/inline/test_entities.py
tests/test_syntax/inline/test_images.py
tests/test_syntax/inline/test_links.py
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/PKG-INFO new/Markdown-3.0.1/PKG-INFO
--- old/Markdown-3.0/PKG-INFO 2018-09-22 04:04:16.000000000 +0200
+++ new/Markdown-3.0.1/PKG-INFO 2018-09-26 18:34:31.000000000 +0200
@@ -1,12 +1,12 @@
Metadata-Version: 1.2
Name: Markdown
-Version: 3.0
+Version: 3.0.1
Summary: Python implementation of Markdown.
Home-page: https://Python-Markdown.github.io/
Author: Waylan Limberg
Author-email: [email protected]
License: BSD License
-Download-URL:
http://pypi.python.org/packages/source/M/Markdown/Markdown-3.0-py2.py3-none-any.whl
+Download-URL:
http://pypi.python.org/packages/source/M/Markdown/Markdown-3.0.1-py2.py3-none-any.whl
Description:
This is a Python implementation of John Gruber's Markdown_.
It is almost completely compliant with the reference implementation,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/docs/change_log/index.md
new/Markdown-3.0.1/docs/change_log/index.md
--- old/Markdown-3.0/docs/change_log/index.md 2018-09-22 04:02:39.000000000
+0200
+++ new/Markdown-3.0.1/docs/change_log/index.md 2018-09-26 18:34:10.000000000
+0200
@@ -3,6 +3,11 @@
Python-Markdown Change Log
=========================
+Sept 28, 2018: Released version 3.0.1 (a bug-fix release).
+
+* Brought back the `version` and `version_info` variables (#709).
+* Added support for hexadecimal HTML entities (#712).
+
Sept 21, 2018: Released version 3.0 ([Notes](release-3.0.md)).
Jan 4, 2018: Released version 2.6.11 (a bug-fix release). Added a new
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/markdown/__init__.py
new/Markdown-3.0.1/markdown/__init__.py
--- old/Markdown-3.0/markdown/__init__.py 2018-09-22 04:02:39.000000000
+0200
+++ new/Markdown-3.0.1/markdown/__init__.py 2018-09-26 18:34:10.000000000
+0200
@@ -33,7 +33,7 @@
# (major, minor, micro, alpha/beta/rc/final, #)
# (1, 1, 2, 'alpha', 0) => "1.1.2.dev"
# (1, 2, 0, 'beta', 2) => "1.2b2"
-__version_info__ = (3, 0, 0, 'final', 0)
+__version_info__ = (3, 0, 1, 'final', 0)
def _get_version(): # pragma: no cover
@@ -56,3 +56,7 @@
__version__ = _get_version()
+
+# Also support `version` for backward-compatabillity with <3.0 versions
+version_info = __version_info__
+version = __version__
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/markdown/inlinepatterns.py
new/Markdown-3.0.1/markdown/inlinepatterns.py
--- old/Markdown-3.0/markdown/inlinepatterns.py 2018-08-03 01:28:32.000000000
+0200
+++ new/Markdown-3.0.1/markdown/inlinepatterns.py 2018-09-26
18:34:10.000000000 +0200
@@ -155,8 +155,8 @@
# <...>
HTML_RE = r'(\<([a-zA-Z/][^\>]*?|\!--.*?--)\>)'
-# &
-ENTITY_RE = r'(&(?:\#[0-9]+|[a-zA-Z0-9]+);)'
+# "&" (decimal) or "&" (hex) or "&" (named)
+ENTITY_RE = r'(&(?:\#[0-9]+|\#x[0-9a-fA-F]+|[a-zA-Z0-9]+);)'
# two spaces at end of line
LINE_BREAK_RE = r' \n'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/markdown/serializers.py
new/Markdown-3.0.1/markdown/serializers.py
--- old/Markdown-3.0/markdown/serializers.py 2018-08-03 01:28:32.000000000
+0200
+++ new/Markdown-3.0.1/markdown/serializers.py 2018-09-26 18:34:10.000000000
+0200
@@ -53,7 +53,7 @@
HTML_EMPTY = ("area", "base", "basefont", "br", "col", "frame", "hr",
"img", "input", "isindex", "link", "meta", "param")
-RE_AMP = re.compile(r'&(?!(?:\#[0-9]+|[0-9a-z]+);)', re.I)
+RE_AMP = re.compile(r'&(?!(?:\#[0-9]+|\#x[0-9a-f]+|[0-9a-z]+);)', re.I)
try:
HTML_EMPTY = set(HTML_EMPTY)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/mkdocs.yml new/Markdown-3.0.1/mkdocs.yml
--- old/Markdown-3.0/mkdocs.yml 2018-08-04 01:19:38.000000000 +0200
+++ new/Markdown-3.0.1/mkdocs.yml 2018-09-26 18:34:10.000000000 +0200
@@ -9,7 +9,7 @@
theme:
name: nature
icon: py.png
- release: 3.0.dev
+ release: "3.0.1"
issue_tracker: https://github.com/Python-Markdown/markdown/issues
nav:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/Markdown-3.0/tests/test_syntax/inline/test_entities.py
new/Markdown-3.0.1/tests/test_syntax/inline/test_entities.py
--- old/Markdown-3.0/tests/test_syntax/inline/test_entities.py 1970-01-01
01:00:00.000000000 +0100
+++ new/Markdown-3.0.1/tests/test_syntax/inline/test_entities.py
2018-09-26 18:34:10.000000000 +0200
@@ -0,0 +1,44 @@
+# -*- coding: utf-8 -*-
+"""
+Python Markdown
+
+A Python implementation of John Gruber's Markdown.
+
+Documentation: https://python-markdown.github.io/
+GitHub: https://github.com/Python-Markdown/markdown/
+PyPI: https://pypi.org/project/Markdown/
+
+Started by Manfred Stienstra (http://www.dwerg.net/).
+Maintained for a few years by Yuri Takhteyev (http://www.freewisdom.org).
+Currently maintained by Waylan Limberg (https://github.com/waylan),
+Dmitry Shachnev (https://github.com/mitya57) and Isaac Muse
(https://github.com/facelessuser).
+
+Copyright 2007-2018 The Python Markdown Project (v. 1.7 and later)
+Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
+Copyright 2004 Manfred Stienstra (the original version)
+
+License: BSD (see LICENSE.md for details).
+"""
+
+from markdown.test_tools import TestCase
+
+
+class TestEntities(TestCase):
+
+ def test_named_entities(self):
+ self.assertMarkdownRenders("&", "<p>&</p>")
+ self.assertMarkdownRenders("²", "<p>²</p>")
+ self.assertMarkdownRenders("Á", "<p>Á</p>")
+
+ def test_decimal_entities(self):
+ self.assertMarkdownRenders("&", "<p>&</p>")
+ self.assertMarkdownRenders("²", "<p>²</p>")
+
+ def test_hexadecimal_entities(self):
+ self.assertMarkdownRenders("&", "<p>&</p>")
+ self.assertMarkdownRenders("²", "<p>²</p>")
+
+ def test_false_entities(self):
+ self.assertMarkdownRenders("¬ an entity;", "<p>&not an
entity;</p>")
+ self.assertMarkdownRenders("&#B2;", "<p>&#B2;</p>")
+ self.assertMarkdownRenders("&#xnothex;", "<p>&#xnothex;</p>")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/Markdown-3.0/tests/test_syntax/inline/test_links.py
new/Markdown-3.0.1/tests/test_syntax/inline/test_links.py
--- old/Markdown-3.0/tests/test_syntax/inline/test_links.py 2018-08-03
01:28:32.000000000 +0200
+++ new/Markdown-3.0.1/tests/test_syntax/inline/test_links.py 2018-09-26
18:34:10.000000000 +0200
@@ -130,3 +130,7 @@
'[title](http://example.com/?a=1&b=2)',
'<p><a href="http://example.com/?a=1&b=2">title</a></p>'
)
+ self.assertMarkdownRenders(
+ '[title](http://example.com/?a=1&b=2)',
+ '<p><a href="http://example.com/?a=1&b=2">title</a></p>'
+ )