Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pysaml2 for openSUSE:Factory checked in at 2021-05-03 22:07:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pysaml2 (Old) and /work/SRC/openSUSE:Factory/.python-pysaml2.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pysaml2" Mon May 3 22:07:59 2021 rev:24 rq:889742 version:6.5.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pysaml2/python-pysaml2.changes 2021-01-25 18:25:41.384609132 +0100 +++ /work/SRC/openSUSE:Factory/.python-pysaml2.new.2988/python-pysaml2.changes 2021-05-03 22:08:04.884513970 +0200 @@ -1,0 +2,5 @@ +Mon Apr 26 12:55:01 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- add 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch + +------------------------------------------------------------------- New: ---- 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pysaml2.spec ++++++ --- /var/tmp/diff_new_pack.g4Bel8/_old 2021-05-03 22:08:05.348511869 +0200 +++ /var/tmp/diff_new_pack.g4Bel8/_new 2021-05-03 22:08:05.352511851 +0200 @@ -26,6 +26,8 @@ License: Apache-2.0 URL: https://github.com/IdentityPython/pysaml2 Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM: https://github.com/IdentityPython/pysaml2/pull/797 +Patch1: 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch BuildRequires: %{python_module Paste} BuildRequires: %{python_module cryptography >= 1.4} BuildRequires: %{python_module dbm} @@ -64,7 +66,7 @@ Requires: python-xmlschema Requires: python-zope.interface Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives # We need to have arch build to make ifarch condition below working # BuildArch: noarch %python_subpackages @@ -76,8 +78,7 @@ %prep %setup -q -n %{modname}-%{version} -%ifarch %{ix86} -%endif +%autopatch -p1 # delete shebang of files not in executable path find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//' ++++++ 0001-Always-use-base64.encodebytes-base64.encodestring-ha.patch ++++++ >From 3debe07ef5c1571f9cfb85985ab4889ab286c35b Mon Sep 17 00:00:00 2001 From: Dirk Mueller <d...@dmllr.de> Date: Mon, 26 Apr 2021 14:40:50 +0200 Subject: [PATCH] Always use base64.encodebytes; base64.encodestring has been dropped --- tests/test_60_sp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/test_60_sp.py b/tests/test_60_sp.py index 78e88400..b1eaa7c6 100644 --- a/tests/test_60_sp.py +++ b/tests/test_60_sp.py @@ -1,7 +1,8 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -import base64 +from base64 import encodebytes as b64encode + import pytest from saml2.authn_context import INTERNETPROTOCOLPASSWORD from saml2.saml import NAMEID_FORMAT_TRANSIENT @@ -73,7 +74,7 @@ class TestSP(): "urn:mace:example.com:saml:roland:sp", trans_name_policy, "foba0...@example.com", authn=AUTHN) - resp_str = base64.encodestring(resp_str.encode('utf-8')) + resp_str = b64encode(resp_str.encode('utf-8')) self.sp.outstanding_queries = {"id1": "http://www.example.com/service"} session_info = self.sp._eval_authn_response( {}, {"SAMLResponse": [resp_str]}) -- 2.31.1