Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-google-auth-oauthlib for
openSUSE:Factory checked in at 2022-10-12 18:25:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-auth-oauthlib (Old)
and /work/SRC/openSUSE:Factory/.python-google-auth-oauthlib.new.2275 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-auth-oauthlib"
Wed Oct 12 18:25:49 2022 rev:10 rq:1010142 version:0.5.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-auth-oauthlib/python-google-auth-oauthlib.changes
2022-09-13 15:11:29.500997774 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-auth-oauthlib.new.2275/python-google-auth-oauthlib.changes
2022-10-12 18:27:34.434070571 +0200
@@ -1,0 +2,7 @@
+Wed Oct 12 03:29:53 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- Update to version 0.5.3
+ Bug Fixes
+ * Pass port range from get_user_credentials to find_open_port
+
+-------------------------------------------------------------------
Old:
----
google-auth-oauthlib-0.5.2.tar.gz
New:
----
google-auth-oauthlib-0.5.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-auth-oauthlib.spec ++++++
--- /var/tmp/diff_new_pack.C77QAI/_old 2022-10-12 18:27:34.798071372 +0200
+++ /var/tmp/diff_new_pack.C77QAI/_new 2022-10-12 18:27:34.802071381 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without python2
Name: python-google-auth-oauthlib
-Version: 0.5.2
+Version: 0.5.3
Release: 0
Summary: Google authentication library
License: Apache-2.0
++++++ google-auth-oauthlib-0.5.2.tar.gz -> google-auth-oauthlib-0.5.3.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-oauthlib-0.5.2/PKG-INFO
new/google-auth-oauthlib-0.5.3/PKG-INFO
--- old/google-auth-oauthlib-0.5.2/PKG-INFO 2022-06-09 17:20:11.346349000
+0200
+++ new/google-auth-oauthlib-0.5.3/PKG-INFO 2022-09-14 23:36:20.374747800
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-auth-oauthlib
-Version: 0.5.2
+Version: 0.5.3
Summary: Google Authentication Library
Home-page:
https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib
Author: Google Cloud Platform
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-auth-oauthlib-0.5.2/google_auth_oauthlib/flow.py
new/google-auth-oauthlib-0.5.3/google_auth_oauthlib/flow.py
--- old/google-auth-oauthlib-0.5.2/google_auth_oauthlib/flow.py 2022-06-09
17:17:32.000000000 +0200
+++ new/google-auth-oauthlib-0.5.3/google_auth_oauthlib/flow.py 2022-09-14
23:33:31.000000000 +0200
@@ -443,6 +443,7 @@
def run_local_server(
self,
host="localhost",
+ bind_addr=None,
port=8080,
authorization_prompt_message=_DEFAULT_AUTH_PROMPT_MESSAGE,
success_message=_DEFAULT_WEB_SUCCESS_MESSAGE,
@@ -463,6 +464,11 @@
Args:
host (str): The hostname for the local redirect server. This will
be served over http, not https.
+ bind_addr (str): Optionally provide an ip address for the redirect
+ server to listen on when it is not the same as host
+ (e.g. in a container). Default value is None,
+ which means that the redirect server will listen
+ on the ip address specified in the host parameter.
port (int): The port for the local redirect server.
authorization_prompt_message (str): The message to display to tell
the user to navigate to the authorization URL.
@@ -483,7 +489,7 @@
# Fail fast if the address is occupied
wsgiref.simple_server.WSGIServer.allow_reuse_address = False
local_server = wsgiref.simple_server.make_server(
- host, port, wsgi_app, handler_class=_WSGIRequestHandler
+ bind_addr or host, port, wsgi_app,
handler_class=_WSGIRequestHandler
)
redirect_uri_format = (
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-auth-oauthlib-0.5.2/google_auth_oauthlib/interactive.py
new/google-auth-oauthlib-0.5.3/google_auth_oauthlib/interactive.py
--- old/google-auth-oauthlib-0.5.2/google_auth_oauthlib/interactive.py
2022-06-09 17:17:32.000000000 +0200
+++ new/google-auth-oauthlib-0.5.3/google_auth_oauthlib/interactive.py
2022-09-14 23:33:31.000000000 +0200
@@ -166,7 +166,7 @@
client_config, scopes=scopes
)
- port = find_open_port()
+ port = find_open_port(start=minimum_port, stop=maximum_port)
if not port:
raise ConnectionError("Could not find open port.")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-auth-oauthlib-0.5.2/google_auth_oauthlib.egg-info/PKG-INFO
new/google-auth-oauthlib-0.5.3/google_auth_oauthlib.egg-info/PKG-INFO
--- old/google-auth-oauthlib-0.5.2/google_auth_oauthlib.egg-info/PKG-INFO
2022-06-09 17:20:10.000000000 +0200
+++ new/google-auth-oauthlib-0.5.3/google_auth_oauthlib.egg-info/PKG-INFO
2022-09-14 23:36:20.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-auth-oauthlib
-Version: 0.5.2
+Version: 0.5.3
Summary: Google Authentication Library
Home-page:
https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib
Author: Google Cloud Platform
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-oauthlib-0.5.2/setup.py
new/google-auth-oauthlib-0.5.3/setup.py
--- old/google-auth-oauthlib-0.5.2/setup.py 2022-06-09 17:17:32.000000000
+0200
+++ new/google-auth-oauthlib-0.5.3/setup.py 2022-09-14 23:33:31.000000000
+0200
@@ -27,7 +27,7 @@
long_description = fh.read()
-version = "0.5.2"
+version = "0.5.3"
setup(
name="google-auth-oauthlib",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-oauthlib-0.5.2/tests/unit/test_flow.py
new/google-auth-oauthlib-0.5.3/tests/unit/test_flow.py
--- old/google-auth-oauthlib-0.5.2/tests/unit/test_flow.py 2022-06-09
17:17:32.000000000 +0200
+++ new/google-auth-oauthlib-0.5.3/tests/unit/test_flow.py 2022-09-14
23:33:31.000000000 +0200
@@ -403,6 +403,24 @@
assert not webbrowser_mock.open.called
+ @mock.patch("google_auth_oauthlib.flow.webbrowser", autospec=True)
+ @mock.patch("wsgiref.simple_server.make_server", autospec=True)
+ def test_run_local_server_bind_addr(
+ self, make_server_mock, webbrowser_mock, instance, mock_fetch_token
+ ):
+ def assign_last_request_uri(host, port, wsgi_app, **kwargs):
+ wsgi_app.last_request_uri = self.REDIRECT_REQUEST_PATH
+ return mock.Mock()
+
+ make_server_mock.side_effect = assign_last_request_uri
+
+ my_ip = socket.gethostbyname(socket.gethostname())
+ instance.run_local_server(bind_addr=my_ip, host="localhost")
+
+ assert webbrowser_mock.open.called
+ name, args, kwargs = make_server_mock.mock_calls[0]
+ assert args[0] == my_ip
+
@pytest.mark.webtest
@mock.patch("google_auth_oauthlib.flow.webbrowser", autospec=True)
def test_run_local_server_occupied_port(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-auth-oauthlib-0.5.2/tests/unit/test_interactive.py
new/google-auth-oauthlib-0.5.3/tests/unit/test_interactive.py
--- old/google-auth-oauthlib-0.5.2/tests/unit/test_interactive.py
2022-06-09 17:17:32.000000000 +0200
+++ new/google-auth-oauthlib-0.5.3/tests/unit/test_interactive.py
2022-09-14 23:33:31.000000000 +0200
@@ -80,7 +80,7 @@
from google_auth_oauthlib import flow
from google_auth_oauthlib import interactive as module_under_test
- def mock_find_open_port():
+ def mock_find_open_port(start=8080, stop=None):
return None
monkeypatch.setattr(module_under_test, "find_open_port",
mock_find_open_port)