Hello community,
here is the log from the commit of package python-google-auth for
openSUSE:Factory checked in at 2018-06-02 12:08:44
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-auth (Old)
and /work/SRC/openSUSE:Factory/.python-google-auth.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-auth"
Sat Jun 2 12:08:44 2018 rev:3 rq:612907 version:1.4.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-google-auth/python-google-auth.changes
2018-05-10 15:48:35.663035250 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-auth.new/python-google-auth.changes
2018-06-02 12:08:54.931104021 +0200
@@ -1,0 +2,13 @@
+Tue May 29 15:54:32 UTC 2018 - [email protected]
+
+- update to 1.4.2:
+ - Raise a helpful exception when trying to refresh credentials without
+ a refresh token. (#262)
+ - Fix links to README and CONTRIBUTING in docs/index.rst. (#260)
+ - Fix a typo in credentials.py. (#256)
+ - Use pytest instead of py.test per upstream recommendation,
+ #dropthedot. (#255)
+ - Fix typo on exemple of jwt usage (#245)
+- Drop Flask from Requires. It is only needed for testing
+
+-------------------------------------------------------------------
Old:
----
google-auth-1.4.1.tar.gz
New:
----
google-auth-1.4.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-auth.spec ++++++
--- /var/tmp/diff_new_pack.4N0pB8/_old 2018-06-02 12:08:55.739074388 +0200
+++ /var/tmp/diff_new_pack.4N0pB8/_new 2018-06-02 12:08:55.743074241 +0200
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-auth
-Version: 1.4.1
+Version: 1.4.2
Release: 0
Summary: Google Authentication Library
License: Apache-2.0
@@ -44,7 +44,6 @@
BuildRequires: %{python_module urllib3}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
-Requires: python-Flask
Requires: python-cachetools
Requires: python-cryptography
Requires: python-oauth2client
++++++ google-auth-1.4.1.tar.gz -> google-auth-1.4.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/CHANGELOG.rst
new/google-auth-1.4.2/CHANGELOG.rst
--- old/google-auth-1.4.1/CHANGELOG.rst 2018-02-12 20:01:58.000000000 +0100
+++ new/google-auth-1.4.2/CHANGELOG.rst 2018-05-24 22:41:18.000000000 +0200
@@ -1,6 +1,15 @@
Changelog
=========
+v1.4.2
+------
+
+- Raise a helpful exception when trying to refresh credentials without a
refresh token. (#262)
+- Fix links to README and CONTRIBUTING in docs/index.rst. (#260)
+- Fix a typo in credentials.py. (#256)
+- Use pytest instead of py.test per upstream recommendation, #dropthedot.
(#255)
+- Fix typo on exemple of jwt usage (#245)
+
v1.4.1
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/PKG-INFO
new/google-auth-1.4.2/PKG-INFO
--- old/google-auth-1.4.1/PKG-INFO 2018-02-12 20:02:50.000000000 +0100
+++ new/google-auth-1.4.2/PKG-INFO 2018-05-29 17:51:21.000000000 +0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: google-auth
-Version: 1.4.1
+Version: 1.4.2
Summary: Google Authentication Library
Home-page: https://github.com/GoogleCloudPlatform/google-auth-library-python
Author: Google Cloud Platform
Author-email: [email protected]
License: Apache 2.0
-Description-Content-Type: UNKNOWN
Description: Google Auth Python Library
==========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/google/auth/credentials.py
new/google-auth-1.4.2/google/auth/credentials.py
--- old/google-auth-1.4.1/google/auth/credentials.py 2018-02-09
00:53:26.000000000 +0100
+++ new/google-auth-1.4.2/google/auth/credentials.py 2018-05-24
22:00:37.000000000 +0200
@@ -53,8 +53,9 @@
def expired(self):
"""Checks if the credentials are expired.
- Note that credentials can be invalid but not expired becaue Credentials
- with :attr:`expiry` set to None is considered to never expire.
+ Note that credentials can be invalid but not expired because
+ Credentials with :attr:`expiry` set to None is considered to never
+ expire.
"""
if not self.expiry:
return False
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/google/auth/jwt.py
new/google-auth-1.4.2/google/auth/jwt.py
--- old/google-auth-1.4.1/google/auth/jwt.py 2018-02-09 00:53:26.000000000
+0100
+++ new/google-auth-1.4.2/google/auth/jwt.py 2018-05-24 22:00:37.000000000
+0200
@@ -21,7 +21,7 @@
To encode a JWT use :func:`encode`::
- from google.auth import crypto
+ from google.auth import crypt
from google.auth import jwt
signer = crypt.Signer(private_key)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/google/oauth2/credentials.py
new/google-auth-1.4.2/google/oauth2/credentials.py
--- old/google-auth-1.4.1/google/oauth2/credentials.py 2018-02-09
00:53:26.000000000 +0100
+++ new/google-auth-1.4.2/google/oauth2/credentials.py 2018-05-24
22:34:23.000000000 +0200
@@ -38,6 +38,7 @@
from google.auth import _helpers
from google.auth import credentials
+from google.auth import exceptions
from google.oauth2 import _client
@@ -120,6 +121,15 @@
@_helpers.copy_docstring(credentials.Credentials)
def refresh(self, request):
+ if (self._refresh_token is None or
+ self._token_uri is None or
+ self._client_id is None or
+ self._client_secret is None):
+ raise exceptions.RefreshError(
+ 'The credentials do not contain the necessary fields need to '
+ 'refresh the access token. You must specify refresh_token, '
+ 'token_uri, client_id, and client_secret.')
+
access_token, refresh_token, expiry, grant_response = (
_client.refresh_grant(
request, self._token_uri, self._refresh_token, self._client_id,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/google_auth.egg-info/PKG-INFO
new/google-auth-1.4.2/google_auth.egg-info/PKG-INFO
--- old/google-auth-1.4.1/google_auth.egg-info/PKG-INFO 2018-02-12
20:02:50.000000000 +0100
+++ new/google-auth-1.4.2/google_auth.egg-info/PKG-INFO 2018-05-29
17:51:21.000000000 +0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: google-auth
-Version: 1.4.1
+Version: 1.4.2
Summary: Google Authentication Library
Home-page: https://github.com/GoogleCloudPlatform/google-auth-library-python
Author: Google Cloud Platform
Author-email: [email protected]
License: Apache 2.0
-Description-Content-Type: UNKNOWN
Description: Google Auth Python Library
==========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/setup.py
new/google-auth-1.4.2/setup.py
--- old/google-auth-1.4.1/setup.py 2018-02-12 20:01:58.000000000 +0100
+++ new/google-auth-1.4.2/setup.py 2018-05-24 22:41:49.000000000 +0200
@@ -31,7 +31,7 @@
setup(
name='google-auth',
- version='1.4.1',
+ version='1.4.2',
author='Google Cloud Platform',
author_email='[email protected]',
description='Google Authentication Library',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-auth-1.4.1/tests/oauth2/test_credentials.py
new/google-auth-1.4.2/tests/oauth2/test_credentials.py
--- old/google-auth-1.4.1/tests/oauth2/test_credentials.py 2018-02-09
00:53:26.000000000 +0100
+++ new/google-auth-1.4.2/tests/oauth2/test_credentials.py 2018-05-24
22:34:23.000000000 +0200
@@ -17,8 +17,10 @@
import os
import mock
+import pytest
from google.auth import _helpers
+from google.auth import exceptions
from google.auth import transport
from google.oauth2 import credentials
@@ -95,6 +97,16 @@
# expired)
assert credentials.valid
+ def test_refresh_no_refresh_token(self):
+ request = mock.create_autospec(transport.Request)
+ credentials_ = credentials.Credentials(
+ token=None, refresh_token=None)
+
+ with pytest.raises(exceptions.RefreshError, match='necessary fields'):
+ credentials_.refresh(request)
+
+ request.assert_not_called()
+
def test_from_authorized_user_info(self):
info = AUTH_USER_INFO.copy()