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 2022-07-28 20:58:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pysaml2 (Old) and /work/SRC/openSUSE:Factory/.python-pysaml2.new.1533 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pysaml2" Thu Jul 28 20:58:58 2022 rev:27 rq:991485 version:7.1.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pysaml2/python-pysaml2.changes 2022-04-08 00:28:59.085468182 +0200 +++ /work/SRC/openSUSE:Factory/.python-pysaml2.new.1533/python-pysaml2.changes 2022-07-28 20:59:26.215703092 +0200 @@ -1,0 +2,6 @@ +Thu Jul 28 06:04:01 UTC 2022 - Steve Kowalik <[email protected]> + +- Add patch pymongo-4-support.patch: + * Support pymongo >= 4 + +------------------------------------------------------------------- New: ---- pymongo-4-support.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pysaml2.spec ++++++ --- /var/tmp/diff_new_pack.IZ88Zi/_old 2022-07-28 20:59:26.795704725 +0200 +++ /var/tmp/diff_new_pack.IZ88Zi/_new 2022-07-28 20:59:26.799704737 +0200 @@ -26,6 +26,9 @@ License: Apache-2.0 URL: https://github.com/IdentityPython/pysaml2 Source: https://github.com/IdentityPython/pysaml2/archive/v%{version}.tar.gz +# PATCH-FIX-UPSTREAM closed PR, but provides context: +# gh#IdentityPython/pysaml2#843 +Patch0: pymongo-4-support.patch BuildRequires: %{python_module Paste} BuildRequires: %{python_module cryptography >= 1.4} BuildRequires: %{python_module dbm} @@ -74,7 +77,7 @@ SAML2 service provider or an identity provider. %prep -%setup -q -n %{modname}-%{version} +%autosetup -p1 -n %{modname}-%{version} # delete shebang of files not in executable path find src/ -name '*.py' -print0 | xargs -0 sed -i '1s/#!.*$//' ++++++ pymongo-4-support.patch ++++++ >From 32a3c24ae1292ad04065aaaee6324ab9441fad8e Mon Sep 17 00:00:00 2001 From: Johan Lundberg <[email protected]> Date: Wed, 8 Dec 2021 15:10:27 +0100 Subject: [PATCH] MongoReplicaSetClient removed in pymongo>=4 from pymongo docs: Since PyMongo 3.0, MongoReplicaSetClient has been identical to pymongo.mongo_client.MongoClient. Applications can simply replace MongoReplicaSetClient with pymongo.mongo_client.MongoClient and get the same behavior. --- src/saml2/mongo_store.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/saml2/mongo_store.py b/src/saml2/mongo_store.py index 7df1b5655..d7f834d1b 100644 --- a/src/saml2/mongo_store.py +++ b/src/saml2/mongo_store.py @@ -2,8 +2,7 @@ from hashlib import sha1 import logging -from pymongo import MongoClient -from pymongo.mongo_replica_set_client import MongoReplicaSetClient +from pymongo.mongo_client import MongoClient import pymongo.uri_parser import pymongo.errors from saml2.saml import NAMEID_FORMAT_PERSISTENT @@ -288,8 +287,6 @@ def _mdb_get_database(uri, **kwargs): _conn = MongoClient() pass else: - if "replicaset" in _parsed_uri["options"]: - connection_factory = MongoReplicaSetClient db_name = _parsed_uri.get("database", "pysaml2") _conn = connection_factory(uri, **kwargs)
