Hello community, here is the log from the commit of package python-Unidecode for openSUSE:Factory checked in at 2019-09-23 12:07:35 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Unidecode (Old) and /work/SRC/openSUSE:Factory/.python-Unidecode.new.7948 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Unidecode" Mon Sep 23 12:07:35 2019 rev:10 rq:730130 version:1.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Unidecode/python-Unidecode.changes 2019-06-17 10:30:29.537356057 +0200 +++ /work/SRC/openSUSE:Factory/.python-Unidecode.new.7948/python-Unidecode.changes 2019-09-23 12:07:41.437902593 +0200 @@ -1,0 +2,6 @@ +Wed Sep 11 12:35:09 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.1.1: + * no upstream changelog + +------------------------------------------------------------------- Old: ---- Unidecode-1.1.0.tar.gz New: ---- Unidecode-1.1.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Unidecode.spec ++++++ --- /var/tmp/diff_new_pack.xZE49y/_old 2019-09-23 12:07:42.345902443 +0200 +++ /var/tmp/diff_new_pack.xZE49y/_new 2019-09-23 12:07:42.345902443 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Unidecode -Version: 1.1.0 +Version: 1.1.1 Release: 0 Summary: ASCII transliterations of Unicode text License: GPL-2.0-or-later ++++++ Unidecode-1.1.0.tar.gz -> Unidecode-1.1.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Unidecode-1.1.0/ChangeLog new/Unidecode-1.1.1/ChangeLog --- old/Unidecode-1.1.0/ChangeLog 2019-06-14 16:26:44.000000000 +0200 +++ new/Unidecode-1.1.1/ChangeLog 2019-06-21 11:02:29.000000000 +0200 @@ -1,3 +1,6 @@ +2019-06-21 unidecode 1.1.1 + * Fix tests failing on PyPy 7.1.1 + 2019-06-14 unidecode 1.1.0 * Add more Latin letter variants in U+1F1xx page. * Make it possible to use the Unidecode command-line utility via diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Unidecode-1.1.0/PKG-INFO new/Unidecode-1.1.1/PKG-INFO --- old/Unidecode-1.1.0/PKG-INFO 2019-06-14 16:35:37.000000000 +0200 +++ new/Unidecode-1.1.1/PKG-INFO 2019-06-21 11:09:00.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: Unidecode -Version: 1.1.0 +Version: 1.1.1 Summary: ASCII transliterations of Unicode text Home-page: UNKNOWN Author: Tomaz Solc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Unidecode-1.1.0/Unidecode.egg-info/PKG-INFO new/Unidecode-1.1.1/Unidecode.egg-info/PKG-INFO --- old/Unidecode-1.1.0/Unidecode.egg-info/PKG-INFO 2019-06-14 16:35:36.000000000 +0200 +++ new/Unidecode-1.1.1/Unidecode.egg-info/PKG-INFO 2019-06-21 11:09:00.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.2 Name: Unidecode -Version: 1.1.0 +Version: 1.1.1 Summary: ASCII transliterations of Unicode text Home-page: UNKNOWN Author: Tomaz Solc diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Unidecode-1.1.0/setup.py new/Unidecode-1.1.1/setup.py --- old/Unidecode-1.1.0/setup.py 2019-06-14 16:28:38.000000000 +0200 +++ new/Unidecode-1.1.1/setup.py 2019-06-21 11:02:36.000000000 +0200 @@ -11,7 +11,7 @@ setup( name='Unidecode', - version='1.1.0', + version='1.1.1', description='ASCII transliterations of Unicode text', license='GPL', long_description=get_long_description(), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Unidecode-1.1.0/tests/test_utility.py new/Unidecode-1.1.1/tests/test_utility.py --- old/Unidecode-1.1.0/tests/test_utility.py 2019-01-19 11:34:57.000000000 +0100 +++ new/Unidecode-1.1.1/tests/test_utility.py 2019-06-16 11:01:32.000000000 +0200 @@ -5,10 +5,14 @@ import subprocess import sys import tempfile +import re here = os.path.dirname(__file__) +# Python 2.7 does not have assertRegex +if not hasattr(unittest.TestCase, 'assertRegex'): + unittest.TestCase.assertRegex = lambda self, text, exp: self.assertTrue(re.search(exp, text)) def get_cmd(): sys_path = os.path.join(here, "..") @@ -22,7 +26,7 @@ out, err = p.communicate() - return out.decode('ascii'), err.decode('ascii') + return out.decode('ascii'), err.decode('ascii'), p.returncode def temp(content): f = tempfile.NamedTemporaryFile() @@ -37,21 +41,24 @@ def test_encoding_error(self): f = temp(self.TEST_UNICODE.encode('sjis')) - out, err = run(['-e', 'utf8', f.name]) + out, err, rc = run(['-e', 'utf8', f.name]) - expected = 'Unable to decode input: invalid start byte, start: 0, end: 1\n' - self.assertEqual(err, expected) + # Text after : ... can differ between Python versions + self.assertRegex(err, '^Unable to decode input: ') + self.assertEqual(rc, 1) def test_file_specified_encoding(self): f = temp(self.TEST_UNICODE.encode('sjis')) - out, err = run(['-e', 'sjis', f.name]) + out, err, rc = run(['-e', 'sjis', f.name]) self.assertEqual(out, self.TEST_ASCII) + self.assertEqual(rc, 0) def test_file_default_encoding(self): f = temp(self.TEST_UNICODE.encode(locale.getpreferredencoding())) - out, err = run([f.name]) + out, err, rc = run([f.name]) self.assertEqual(out, self.TEST_ASCII) + self.assertEqual(rc, 0) def test_file_stdin(self): cmd = get_cmd() @@ -61,5 +68,6 @@ self.assertEqual(out.decode('ascii'), self.TEST_ASCII) def test_commandline(self): - out = run(['-e', 'sjis', '-c', self.TEST_UNICODE.encode('sjis')])[0] + out, err, rc = run(['-e', 'sjis', '-c', self.TEST_UNICODE.encode('sjis')]) self.assertEqual(out, self.TEST_ASCII + '\n') + self.assertEqual(rc, 0)