Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-requests-gssapi for
openSUSE:Factory checked in at 2022-03-04 00:17:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-requests-gssapi (Old)
and /work/SRC/openSUSE:Factory/.python-requests-gssapi.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-requests-gssapi"
Fri Mar 4 00:17:45 2022 rev:3 rq:958699 version:1.2.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-requests-gssapi/python-requests-gssapi.changes
2020-08-04 20:21:54.372997715 +0200
+++
/work/SRC/openSUSE:Factory/.python-requests-gssapi.new.1958/python-requests-gssapi.changes
2022-03-04 00:18:31.156296337 +0100
@@ -1,0 +2,11 @@
+Tue Feb 22 21:45:48 UTC 2022 - Matej Cepl <[email protected]>
+
+- Update to 1.2.3:
+ - Drop python2 compat glue
+ - Drop external mock dependency
+ - Use USER_NAME instead of HOSTBASED_SERVICE for user
+ principals
+ - Remove unused imports in example code
+ - Fix typo in explicit mech example
+
+-------------------------------------------------------------------
Old:
----
requests-gssapi-1.2.1.tar.gz
New:
----
requests-gssapi-1.2.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-requests-gssapi.spec ++++++
--- /var/tmp/diff_new_pack.CZAwzj/_old 2022-03-04 00:18:31.592296429 +0100
+++ /var/tmp/diff_new_pack.CZAwzj/_new 2022-03-04 00:18:31.596296430 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-requests-gssapi
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-requests-gssapi
-Version: 1.2.1
+Version: 1.2.3
Release: 0
Summary: A GSSAPI authentication handler for python-requests
License: ISC
@@ -33,7 +33,6 @@
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module gssapi}
-BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests >= 1.1.0}
# /SECTION
++++++ requests-gssapi-1.2.1.tar.gz -> requests-gssapi-1.2.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/HISTORY.rst
new/requests-gssapi-1.2.3/HISTORY.rst
--- old/requests-gssapi-1.2.1/HISTORY.rst 2020-03-31 20:03:46.000000000
+0200
+++ new/requests-gssapi-1.2.3/HISTORY.rst 2021-02-08 23:35:02.000000000
+0100
@@ -1,6 +1,19 @@
History
=======
+1.2.3: 2021-02-08
+-----------------
+
+- Drop python2 compat glue
+- Drop external mock dependency
+
+1.2.2: 2020-08-07
+-----------------
+
+- Use USER_NAME instead of HOSTBASED_SERVICE for user principals
+- Remove unused imports in example code
+- Fix typo in explicit mech example
+
1.2.1: 2020-03-31
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/PKG-INFO
new/requests-gssapi-1.2.3/PKG-INFO
--- old/requests-gssapi-1.2.1/PKG-INFO 2020-03-31 20:05:02.432600300 +0200
+++ new/requests-gssapi-1.2.3/PKG-INFO 2021-02-08 23:35:40.845538000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: requests-gssapi
-Version: 1.2.1
+Version: 1.2.3
Summary: A GSSAPI authentication handler for python-requests
Home-page: https://github.com/pythongssapi/requests-gssapi
Author: Ian Cordasco, Cory Benfield, Michael Komitee, Robbie Harwood
@@ -144,8 +144,8 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
- >>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED,
opportunistic_auth=True)
+ >>> from requests_gssapi import HTTPSPNEGOAuth
+ >>> gssapi_auth = HTTPSPNEGOAuth(opportunistic_auth=True)
>>> r = requests.get("https://windows.example.org/wsman",
auth=gssapi_auth)
...
@@ -160,7 +160,7 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> gssapi_auth = HTTPSPNEGOAuth(target_name="internalhost.local")
>>> r = requests.get("https://externalhost.example.org/",
auth=gssapi_auth)
...
@@ -176,7 +176,7 @@
>>> import gssapi
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> name = gssapi.Name("user@REALM",
gssapi.NameType.hostbased_service)
>>> creds = gssapi.Credentials(name=name, usage="initiate")
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
@@ -197,7 +197,7 @@
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> try:
- ... spnego = gssapi,mechs.Mechanism.from_sasl_name("SPNEGO")
+ ... spnego = gssapi.mechs.Mechanism.from_sasl_name("SPNEGO")
... except AttributeError:
... spnego = gssapi.OID.from_int_seq("1.3.6.1.5.5.2")
>>> gssapi_auth = HTTPSPNEGOAuth(mech=spnego)
@@ -238,6 +238,19 @@
History
=======
+ 1.2.3: 2021-02-08
+ -----------------
+
+ - Drop python2 compat glue
+ - Drop external mock dependency
+
+ 1.2.2: 2020-08-07
+ -----------------
+
+ - Use USER_NAME instead of HOSTBASED_SERVICE for user principals
+ - Remove unused imports in example code
+ - Fix typo in explicit mech example
+
1.2.1: 2020-03-31
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/README.rst
new/requests-gssapi-1.2.3/README.rst
--- old/requests-gssapi-1.2.1/README.rst 2020-02-18 21:53:32.000000000
+0100
+++ new/requests-gssapi-1.2.3/README.rst 2020-04-24 19:54:05.000000000
+0200
@@ -136,8 +136,8 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
- >>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED,
opportunistic_auth=True)
+ >>> from requests_gssapi import HTTPSPNEGOAuth
+ >>> gssapi_auth = HTTPSPNEGOAuth(opportunistic_auth=True)
>>> r = requests.get("https://windows.example.org/wsman", auth=gssapi_auth)
...
@@ -152,7 +152,7 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> gssapi_auth = HTTPSPNEGOAuth(target_name="internalhost.local")
>>> r = requests.get("https://externalhost.example.org/", auth=gssapi_auth)
...
@@ -168,7 +168,7 @@
>>> import gssapi
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> name = gssapi.Name("user@REALM", gssapi.NameType.hostbased_service)
>>> creds = gssapi.Credentials(name=name, usage="initiate")
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
@@ -189,7 +189,7 @@
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> try:
- ... spnego = gssapi,mechs.Mechanism.from_sasl_name("SPNEGO")
+ ... spnego = gssapi.mechs.Mechanism.from_sasl_name("SPNEGO")
... except AttributeError:
... spnego = gssapi.OID.from_int_seq("1.3.6.1.5.5.2")
>>> gssapi_auth = HTTPSPNEGOAuth(mech=spnego)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/requests_gssapi/__init__.py
new/requests-gssapi-1.2.3/requests_gssapi/__init__.py
--- old/requests-gssapi-1.2.1/requests_gssapi/__init__.py 2020-03-31
20:04:00.000000000 +0200
+++ new/requests-gssapi-1.2.3/requests_gssapi/__init__.py 2021-02-08
23:35:16.000000000 +0100
@@ -22,4 +22,4 @@
__all__ = ('HTTPSPNEGOAuth', 'HTTPKerberosAuth', 'MutualAuthenticationError',
'REQUIRED', 'OPTIONAL', 'DISABLED')
-__version__ = '1.2.1'
+__version__ = '1.2.3'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/requests_gssapi/compat.py
new/requests-gssapi-1.2.3/requests_gssapi/compat.py
--- old/requests-gssapi-1.2.1/requests_gssapi/compat.py 2019-05-17
22:33:26.000000000 +0200
+++ new/requests-gssapi-1.2.3/requests_gssapi/compat.py 2020-08-07
01:49:56.000000000 +0200
@@ -46,7 +46,7 @@
if self.principal is not None:
gss_stage = "acquiring credentials"
name = gssapi.Name(
- self.principal, gssapi.NameType.hostbased_service)
+ self.principal, gssapi.NameType.user)
self.creds = gssapi.Credentials(name=name, usage="initiate")
# contexts still need to be stored by host, but hostname_override
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/requests-gssapi-1.2.1/requests_gssapi.egg-info/PKG-INFO
new/requests-gssapi-1.2.3/requests_gssapi.egg-info/PKG-INFO
--- old/requests-gssapi-1.2.1/requests_gssapi.egg-info/PKG-INFO 2020-03-31
20:05:02.000000000 +0200
+++ new/requests-gssapi-1.2.3/requests_gssapi.egg-info/PKG-INFO 2021-02-08
23:35:40.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: requests-gssapi
-Version: 1.2.1
+Version: 1.2.3
Summary: A GSSAPI authentication handler for python-requests
Home-page: https://github.com/pythongssapi/requests-gssapi
Author: Ian Cordasco, Cory Benfield, Michael Komitee, Robbie Harwood
@@ -144,8 +144,8 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
- >>> gssapi_auth = HTTPSPNEGOAuth(mutual_authentication=REQUIRED,
opportunistic_auth=True)
+ >>> from requests_gssapi import HTTPSPNEGOAuth
+ >>> gssapi_auth = HTTPSPNEGOAuth(opportunistic_auth=True)
>>> r = requests.get("https://windows.example.org/wsman",
auth=gssapi_auth)
...
@@ -160,7 +160,7 @@
.. code-block:: python
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> gssapi_auth = HTTPSPNEGOAuth(target_name="internalhost.local")
>>> r = requests.get("https://externalhost.example.org/",
auth=gssapi_auth)
...
@@ -176,7 +176,7 @@
>>> import gssapi
>>> import requests
- >>> from requests_gssapi import HTTPSPNEGOAuth, REQUIRED
+ >>> from requests_gssapi import HTTPSPNEGOAuth
>>> name = gssapi.Name("user@REALM",
gssapi.NameType.hostbased_service)
>>> creds = gssapi.Credentials(name=name, usage="initiate")
>>> gssapi_auth = HTTPSPNEGOAuth(creds=creds)
@@ -197,7 +197,7 @@
>>> import requests
>>> from requests_gssapi import HTTPSPNEGOAuth
>>> try:
- ... spnego = gssapi,mechs.Mechanism.from_sasl_name("SPNEGO")
+ ... spnego = gssapi.mechs.Mechanism.from_sasl_name("SPNEGO")
... except AttributeError:
... spnego = gssapi.OID.from_int_seq("1.3.6.1.5.5.2")
>>> gssapi_auth = HTTPSPNEGOAuth(mech=spnego)
@@ -238,6 +238,19 @@
History
=======
+ 1.2.3: 2021-02-08
+ -----------------
+
+ - Drop python2 compat glue
+ - Drop external mock dependency
+
+ 1.2.2: 2020-08-07
+ -----------------
+
+ - Use USER_NAME instead of HOSTBASED_SERVICE for user principals
+ - Remove unused imports in example code
+ - Fix typo in explicit mech example
+
1.2.1: 2020-03-31
-----------------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/setup.py
new/requests-gssapi-1.2.3/setup.py
--- old/requests-gssapi-1.2.1/setup.py 2018-08-02 22:13:23.000000000 +0200
+++ new/requests-gssapi-1.2.3/setup.py 2021-02-08 23:33:21.000000000 +0100
@@ -52,7 +52,6 @@
'gssapi',
],
test_suite='test_requests_gssapi',
- tests_require=['mock'],
classifiers=[
"License :: OSI Approved :: ISC License (ISCL)"
],
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/requests-gssapi-1.2.1/test_requests_gssapi.py
new/requests-gssapi-1.2.3/test_requests_gssapi.py
--- old/requests-gssapi-1.2.1/test_requests_gssapi.py 2020-02-18
21:53:32.000000000 +0100
+++ new/requests-gssapi-1.2.3/test_requests_gssapi.py 2021-02-08
23:33:21.000000000 +0100
@@ -4,7 +4,7 @@
"""Tests for requests_gssapi."""
from base64 import b64encode
-from mock import Mock, patch
+from unittest.mock import Mock, patch
from requests.compat import urlparse
import requests
@@ -39,10 +39,14 @@
b64_negotiate_server = "negotiate " + b64encode(b"servertoken").decode()
-def gssapi_name(s):
+def gssapi_sname(s):
return gssapi.Name(s, gssapi.NameType.hostbased_service)
+def gssapi_uname(s):
+ return gssapi.Name(s, gssapi.NameType.user)
+
+
class GSSAPITestCase(unittest.TestCase):
def setUp(self):
"""Setup."""
@@ -105,7 +109,7 @@
auth.generate_request_header(response, host),
b64_negotiate_response)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
creds=None, mech=None, flags=gssflags, usage="initiate")
fake_resp.assert_called_with(b"token")
@@ -120,7 +124,7 @@
self.assertRaises(requests_gssapi.exceptions.SPNEGOExchangeError,
auth.generate_request_header, response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
def test_generate_request_header_step_error(self):
@@ -134,7 +138,7 @@
self.assertRaises(requests_gssapi.exceptions.SPNEGOExchangeError,
auth.generate_request_header, response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fail_resp.assert_called_with(b"token")
@@ -171,7 +175,7 @@
connection.send.assert_called_with(request)
raw.release_conn.assert_called_with()
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
flags=gssflags, usage="initiate", creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -208,7 +212,7 @@
connection.send.assert_called_with(request)
raw.release_conn.assert_called_with()
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
creds=None, mech=None, flags=gssflags, usage="initiate")
fake_resp.assert_called_with(b"token")
@@ -447,7 +451,7 @@
connection.send.assert_called_with(request)
raw.release_conn.assert_called_with()
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -490,7 +494,7 @@
connection.send.assert_called_with(request)
raw.release_conn.assert_called_with()
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -504,7 +508,7 @@
auth = requests_gssapi.HTTPKerberosAuth(service="barfoo")
auth.generate_request_header(response, host),
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -542,7 +546,7 @@
connection.send.assert_called_with(request)
raw.release_conn.assert_called_with()
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssdelegflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -558,9 +562,9 @@
auth.generate_request_header(response, host)
fake_creds.assert_called_with(gssapi.creds.Credentials,
usage="initiate",
- name=gssapi_name("user@REALM"))
+ name=gssapi_uname("user@REALM", ))
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags,
creds=b"fake creds", mech=None)
@@ -575,7 +579,7 @@
hostname_override="otherhost.otherdomain.org")
auth.generate_request_header(response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")
@@ -604,7 +608,7 @@
auth = requests_gssapi.HTTPSPNEGOAuth(creds=creds)
auth.generate_request_header(response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags,
creds=b"fake creds", mech=None)
fake_resp.assert_called_with(b"token")
@@ -621,7 +625,7 @@
auth = requests_gssapi.HTTPSPNEGOAuth(mech=fake_mech)
auth.generate_request_header(response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags,
creds=None, mech=b'fake mech')
fake_resp.assert_called_with(b"token")
@@ -637,7 +641,7 @@
target_name="[email protected]")
auth.generate_request_header(response, host)
fake_init.assert_called_with(
- name=gssapi_name("[email protected]"),
+ name=gssapi_sname("[email protected]"),
usage="initiate", flags=gssflags, creds=None, mech=None)
fake_resp.assert_called_with(b"token")