Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-zope.exceptions for openSUSE:Factory checked in at 2021-12-25 20:16:30 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-zope.exceptions (Old) and /work/SRC/openSUSE:Factory/.python-zope.exceptions.new.2520 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zope.exceptions" Sat Dec 25 20:16:30 2021 rev:12 rq:941566 version:4.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-zope.exceptions/python-zope.exceptions.changes 2020-08-01 12:29:09.378343243 +0200 +++ /work/SRC/openSUSE:Factory/.python-zope.exceptions.new.2520/python-zope.exceptions.changes 2021-12-25 20:16:38.433249356 +0100 @@ -1,0 +2,6 @@ +Sun Dec 19 15:29:01 UTC 2021 - Ben Greiner <c...@bnavigator.de> + +- Add zope.exceptions-pr19+pr21-py310.patch + * gh#zopefoundation/zope.exceptions#21 + +------------------------------------------------------------------- New: ---- zope.exceptions-pr19+pr21-py310.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-zope.exceptions.spec ++++++ --- /var/tmp/diff_new_pack.Ml6MNn/_old 2021-12-25 20:16:39.449250183 +0100 +++ /var/tmp/diff_new_pack.Ml6MNn/_new 2021-12-25 20:16:39.453250186 +0100 @@ -1,7 +1,7 @@ # -# spec file for package python-zope.exceptions +# spec file # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -33,6 +33,8 @@ Group: Development/Languages/Python URL: http://cheeseshop.python.org/pypi/zope.exceptions Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz +# PATCH-FIX-UPSTREAM zope.exceptions-pr19+pr21-py310.patch -- gh#zopefoundation/zope.exceptions#21 +Patch0: zope.exceptions-pr19+pr21-py310.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -52,7 +54,7 @@ general purpose that they don't belong in Zope application-specific packages. %prep -%setup -q -n zope.exceptions-%{version} +%autosetup -p1 -n zope.exceptions-%{version} %build %python_build @@ -72,7 +74,10 @@ %files %{python_files} %license LICENSE.txt %doc CHANGES.rst COPYRIGHT.txt README.rst -%{python_sitelib}/* +%dir %{python_sitelib}/zope/ +%{python_sitelib}/zope/exceptions +%{python_sitelib}/zope.exceptions-%{version}*-info +%{python_sitelib}/zope.exceptions-%{version}*-nspkg.pth %endif %changelog ++++++ zope.exceptions-pr19+pr21-py310.patch ++++++ >From 71be9d0724f087c99857edeef514d0b99e429cc9 Mon Sep 17 00:00:00 2001 From: Zamarin Arthur <arthur...@gmail.com> Date: Mon, 31 May 2021 12:14:30 +0300 Subject: [PATCH 1/2] Adapt to python 3.10 SyntaxError messages Signed-off-by: Zamarin Arthur <arthur...@gmail.com> --- src/zope/exceptions/tests/test_exceptionformatter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: zope.exceptions-4.4/src/zope/exceptions/tests/test_exceptionformatter.py =================================================================== --- zope.exceptions-4.4.orig/src/zope/exceptions/tests/test_exceptionformatter.py +++ zope.exceptions-4.4/src/zope/exceptions/tests/test_exceptionformatter.py @@ -666,9 +666,8 @@ class Test_format_exception(unittest.Tes s = self._callFUT(False) lines = s.splitlines()[-3:] self.assertEqual(lines[0], ' syntax error') - # PyPy has a shorter prefix - self.assertTrue(lines[1].endswith(' ^')) - self.assertEqual(lines[2], 'SyntaxError: invalid syntax') + self.assertIn(' ^', lines[1]) + self.assertTrue(lines[2].startswith('SyntaxError: invalid syntax'), lines[2]) def test_traceback_info_non_ascii(self): __traceback_info__ = u"Have a Snowman: \u2603"