Hello community, here is the log from the commit of package python-CommonMark for openSUSE:Factory checked in at 2018-04-11 13:56:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-CommonMark (Old) and /work/SRC/openSUSE:Factory/.python-CommonMark.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-CommonMark" Wed Apr 11 13:56:59 2018 rev:5 rq:594620 version:0.7.5 Changes: -------- --- /work/SRC/openSUSE:Factory/python-CommonMark/python-CommonMark.changes 2017-10-31 15:43:46.122277185 +0100 +++ /work/SRC/openSUSE:Factory/.python-CommonMark.new/python-CommonMark.changes 2018-04-11 13:57:05.473432054 +0200 @@ -1,0 +2,9 @@ +Sat Apr 7 21:30:12 UTC 2018 - [email protected] + +- specfile: + * update copyright year + +- update to version 0.7.5: + * Fixed smart dashes bug in Python 3 (from @alvra) + +------------------------------------------------------------------- Old: ---- CommonMark-0.7.4.tar.gz New: ---- CommonMark-0.7.5.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-CommonMark.spec ++++++ --- /var/tmp/diff_new_pack.kIqPfL/_old 2018-04-11 13:57:06.705387509 +0200 +++ /var/tmp/diff_new_pack.kIqPfL/_new 2018-04-11 13:57:06.709387364 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-CommonMark # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 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 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-CommonMark -Version: 0.7.4 +Version: 0.7.5 Release: 0 Summary: Python parser for the CommonMark Markdown spec License: BSD-3-Clause @@ -32,7 +32,6 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-future -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %ifpython2 Obsoletes: %{oldpython}-commonmark < %{version} @@ -42,7 +41,6 @@ Provides: python3-commonmark = %{version} Obsoletes: python3-commonmark < %{version} %endif - %python_subpackages %description @@ -94,18 +92,18 @@ # python setup.py test %files %{python_files} -%defattr(-,root,root,-) -%doc README.rst LICENSE +%license LICENSE +%doc README.rst %{python_sitelib}/CommonMark/ %{python_sitelib}/CommonMark-%{version}-py*.egg-info %files -n %{name}-doc -%defattr(-,root,root,-) -%doc spec.txt LICENSE +%license LICENSE +%doc spec.txt %files -n cmark-python -%defattr(-,root,root,-) -%doc spec.txt LICENSE +%license LICENSE +%doc spec.txt %{_bindir}/cmark %changelog ++++++ CommonMark-0.7.4.tar.gz -> CommonMark-0.7.5.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/inlines.py new/CommonMark-0.7.5/CommonMark/inlines.py --- old/CommonMark-0.7.4/CommonMark/inlines.py 2017-08-05 19:23:13.000000000 +0200 +++ new/CommonMark-0.7.5/CommonMark/inlines.py 2018-03-13 18:29:11.000000000 +0100 @@ -1,4 +1,4 @@ -from __future__ import absolute_import, unicode_literals +from __future__ import absolute_import, unicode_literals, division import re import sys @@ -105,19 +105,19 @@ em_count = 0 if len(chars) % 3 == 0: # If divisible by 3, use all em dashes - em_count = len(chars) / 3 + em_count = len(chars) // 3 elif len(chars) % 2 == 0: # If divisble by 2, use all en dashes - en_count = len(chars) / 2 + en_count = len(chars) // 2 elif len(chars) % 3 == 2: # if 2 extra dashes, use en dashfor last 2; # em dashes for rest en_count = 1 - em_count = (len(chars) - 2) / 3 + em_count = (len(chars) - 2) // 3 else: # Use en dashes for last 4 hyphens; em dashes for rest en_count = 2 - em_count = (len(chars) - 4) / 3 + em_count = (len(chars) - 4) // 3 return ('\u2014' * em_count) + ('\u2013' * en_count) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/main.py new/CommonMark-0.7.5/CommonMark/main.py --- old/CommonMark-0.7.4/CommonMark/main.py 2017-08-05 18:33:33.000000000 +0200 +++ new/CommonMark-0.7.5/CommonMark/main.py 2018-03-13 18:29:11.000000000 +0100 @@ -1,5 +1,5 @@ # 2014 - Bibek Kafle & Roland Shoemaker -# 2015-2016 - Nik Nyby +# 2015-2017 - Nik Nyby # Port of @jgm's commonmark.js implementation of the CommonMark spec. # Basic usage: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark/tests/unit_tests.py new/CommonMark-0.7.5/CommonMark/tests/unit_tests.py --- old/CommonMark-0.7.4/CommonMark/tests/unit_tests.py 2017-08-05 18:33:33.000000000 +0200 +++ new/CommonMark-0.7.5/CommonMark/tests/unit_tests.py 2018-03-13 18:29:11.000000000 +0100 @@ -57,6 +57,24 @@ def test_random_text(self, s): CommonMark.commonmark(s) + def test_smart_dashes(self): + md = 'a - b -- c --- d ---- e ----- f' + EM = '\u2014' + EN = '\u2013' + expected_html = ( + '<p>' + + 'a - ' + + 'b ' + EN + ' ' + + 'c ' + EM + ' ' + + 'd ' + EN + EN + ' ' + + 'e ' + EM + EN + ' ' + + 'f</p>\n') + parser = CommonMark.Parser(options=dict(smart=True)) + ast = parser.parse(md) + renderer = CommonMark.HtmlRenderer() + html = renderer.render(ast) + self.assertEqual(html, expected_html) + class TestHtmlRenderer(unittest.TestCase): def test_init(self): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark.egg-info/PKG-INFO new/CommonMark-0.7.5/CommonMark.egg-info/PKG-INFO --- old/CommonMark-0.7.4/CommonMark.egg-info/PKG-INFO 2017-08-05 19:34:09.000000000 +0200 +++ new/CommonMark-0.7.5/CommonMark.egg-info/PKG-INFO 2018-03-13 18:55:36.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: CommonMark -Version: 0.7.4 +Version: 0.7.5 Summary: Python parser for the CommonMark Markdown spec Home-page: https://github.com/rtfd/CommonMark-py Author: Nik Nyby @@ -12,7 +12,7 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 -Classifier: Development Status :: 4 - Beta +Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Other Environment Classifier: Environment :: Console Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/CommonMark.egg-info/requires.txt new/CommonMark-0.7.5/CommonMark.egg-info/requires.txt --- old/CommonMark-0.7.4/CommonMark.egg-info/requires.txt 2017-08-05 19:34:09.000000000 +0200 +++ new/CommonMark-0.7.5/CommonMark.egg-info/requires.txt 2018-03-13 18:55:36.000000000 +0100 @@ -1 +1,6 @@ future + +[test] +flake8==3.5.0 +hypothesis==3.47.0 +hypothesislegacysupport diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/PKG-INFO new/CommonMark-0.7.5/PKG-INFO --- old/CommonMark-0.7.4/PKG-INFO 2017-08-05 19:34:09.000000000 +0200 +++ new/CommonMark-0.7.5/PKG-INFO 2018-03-13 18:55:36.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: CommonMark -Version: 0.7.4 +Version: 0.7.5 Summary: Python parser for the CommonMark Markdown spec Home-page: https://github.com/rtfd/CommonMark-py Author: Nik Nyby @@ -12,7 +12,7 @@ Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 Classifier: Programming Language :: Python :: 3 -Classifier: Development Status :: 4 - Beta +Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Other Environment Classifier: Environment :: Console Classifier: Intended Audience :: Developers diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/README.rst new/CommonMark-0.7.5/README.rst --- old/CommonMark-0.7.4/README.rst 2017-08-05 19:28:59.000000000 +0200 +++ new/CommonMark-0.7.5/README.rst 2018-03-13 18:38:22.000000000 +0100 @@ -12,7 +12,7 @@ CommonMark-py is tested against the CommonMark spec with Python versions 2.6, 2.7, 3.3, 3.4, 3.5, and 3.6. -**Current version:** 0.7.4 +**Current version:** 0.7.5 |Build Status| |Doc Link| @@ -124,6 +124,7 @@ - `Bibek Kafle <https://github.com/kafle>`__ - `Roland Shoemaker <https://github.com/rolandshoemaker>`__ +- `Nik Nyby <https://github.com/nikolas>`__ .. |Build Status| image:: https://travis-ci.org/rtfd/CommonMark-py.svg?branch=master :target: https://travis-ci.org/rtfd/CommonMark-py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CommonMark-0.7.4/setup.py new/CommonMark-0.7.5/setup.py --- old/CommonMark-0.7.4/setup.py 2017-08-05 19:28:59.000000000 +0200 +++ new/CommonMark-0.7.5/setup.py 2018-03-13 18:38:22.000000000 +0100 @@ -18,10 +18,18 @@ raise SystemExit(errno) +tests_require = [ + 'flake8==3.5.0', + 'hypothesis==3.47.0', + # For python 2.6 + 'hypothesislegacysupport', +] + + setup( name="CommonMark", packages=find_packages(exclude=['tests']), - version="0.7.4", + version="0.7.5", license="BSD-3-Clause", description="Python parser for the CommonMark Markdown spec", author="Bibek Kafle <[email protected]>, " + @@ -40,17 +48,13 @@ install_requires=[ 'future', ], - tests_require=[ - 'flake8==3.4.0', - 'hypothesis==3.7.1', - # For python 2.6 - 'hypothesislegacysupport', - ], + tests_require=tests_require, + extras_require={'test': tests_require}, classifiers=[ "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", - "Development Status :: 4 - Beta", + "Development Status :: 5 - Production/Stable", "Environment :: Other Environment", "Environment :: Console", "Intended Audience :: Developers",
