diff --git a/python-repoze-who.spec b/python-repoze-who.spec index 0b707dc..20551bb 100644 --- a/python-repoze-who.spec +++ b/python-repoze-who.spec @@ -4,12 +4,13 @@ Name: python-repoze-who Version: 2.3 -Release: 1%{?dist} +Release: 2%{?dist} Summary: An identification and authentication framework for WSGI License: BSD URL: https://pypi.python.org/pypi/%{modname} Source0: https://pypi.python.org/packages/source/r/%{modname}/%{modname}-%{version}.tar.gz +Patch1: repoze-who-zope-interface-5.patch BuildArch: noarch BuildRequires: python3-devel @@ -48,6 +49,7 @@ considered to be the domain of the WSGI application. %prep %setup -q -n %{modname}-%{version} +%patch1 -p1 # Remove bundled egg-info in case it exists rm -rf %{modname}.egg-info @@ -72,6 +74,9 @@ PYTHONPATH=$(pwd) %{__python3} setup.py test %changelog +* Sun May 10 2020 Ján ONDREJ (SAL) - 2.3-2 +- Fix compatibility with zope-interface >= 5 (bz#1825462) + * Thu Apr 16 2020 Ján ONDREJ (SAL) - 2.3-1 - Update to upstream - Update URLs to https diff --git a/repoze-who-zope-interface-5.patch b/repoze-who-zope-interface-5.patch new file mode 100644 index 0000000..a7bcf53 --- /dev/null +++ b/repoze-who-zope-interface-5.patch @@ -0,0 +1,21 @@ +diff -ur repoze.who-2.3/repoze/who/api.py repoze.who-2.3.fixed/repoze/who/api.py +--- repoze.who-2.3/repoze/who/api.py 2015-03-18 20:33:59.000000000 +0100 ++++ repoze.who-2.3.fixed/repoze/who/api.py 2020-05-09 19:02:44.318618915 +0200 +@@ -58,7 +58,7 @@ + + + def make_registries(identifiers, authenticators, challengers, mdproviders): +- from zope.interface.verify import BrokenImplementation ++ from zope.interface import Invalid + interface_registry = {} + name_registry = {} + +@@ -70,7 +70,7 @@ + for name, value in supplied: + try: + verify(value, iface) +- except BrokenImplementation as why: ++ except Invalid as why: + why = str(why) + raise ValueError(str(name) + ': ' + why) + L = interface_registry.setdefault(iface, [])