Accepting request 941518 from home:bnavigator:python-rpm-macros
- Add zope.exceptions-pr19+pr21-py310.patch * gh#zopefoundation/zope.exceptions#21 OBS-URL: https://build.opensuse.org/request/show/941518 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zope.exceptions?expand=0&rev=22
This commit is contained in:
parent
2b86219d87
commit
13ccc714bd
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Dec 19 15:29:01 UTC 2021 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
- Add zope.exceptions-pr19+pr21-py310.patch
|
||||||
|
* gh#zopefoundation/zope.exceptions#21
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jul 21 09:01:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
Tue Jul 21 09:01:45 UTC 2020 - Marketa Calabkova <mcalabkova@suse.com>
|
||||||
|
|
||||||
|
@ -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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -33,6 +33,8 @@ License: ZPL-2.1
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://cheeseshop.python.org/pypi/zope.exceptions
|
URL: http://cheeseshop.python.org/pypi/zope.exceptions
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zope.exceptions/zope.exceptions-%{version}.tar.gz
|
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: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -52,7 +54,7 @@ This package contains exception interfaces and implementations which are so
|
|||||||
general purpose that they don't belong in Zope application-specific packages.
|
general purpose that they don't belong in Zope application-specific packages.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n zope.exceptions-%{version}
|
%autosetup -p1 -n zope.exceptions-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -72,7 +74,10 @@ general purpose that they don't belong in Zope application-specific packages.
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc CHANGES.rst COPYRIGHT.txt README.rst
|
%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
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
26
zope.exceptions-pr19+pr21-py310.patch
Normal file
26
zope.exceptions-pr19+pr21-py310.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From 71be9d0724f087c99857edeef514d0b99e429cc9 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Zamarin Arthur <arthurzam@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 <arthurzam@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"
|
Loading…
Reference in New Issue
Block a user