Hello community,
here is the log from the commit of package python-google-cloud-core for
openSUSE:Factory checked in at 2019-09-18 13:09:28
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-cloud-core (Old)
and /work/SRC/openSUSE:Factory/.python-google-cloud-core.new.7948 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-core"
Wed Sep 18 13:09:28 2019 rev:5 rq:730363 version:1.0.3
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-cloud-core/python-google-cloud-core.changes
2019-05-16 22:11:18.902217183 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-cloud-core.new.7948/python-google-cloud-core.changes
2019-09-18 13:09:29.644714458 +0200
@@ -1,0 +2,7 @@
+Thu Sep 12 10:32:12 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Update to 1.0.3:
+ * Make Client.build_api_url an instance method.
+ * Prevent requests from hanging on SSL handshake
+
+-------------------------------------------------------------------
Old:
----
google-cloud-core-1.0.0.tar.gz
New:
----
google-cloud-core-1.0.3.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-cloud-core.spec ++++++
--- /var/tmp/diff_new_pack.tVwHPT/_old 2019-09-18 13:09:30.104714361 +0200
+++ /var/tmp/diff_new_pack.tVwHPT/_new 2019-09-18 13:09:30.108714360 +0200
@@ -18,29 +18,25 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-cloud-core
-Version: 1.0.0
+Version: 1.0.3
Release: 0
Summary: Google Cloud API client core library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/GoogleCloudPlatform/google-cloud-python
Source:
https://files.pythonhosted.org/packages/source/g/google-cloud-core/google-cloud-core-%{version}.tar.gz
-BuildRequires: %{python_module grpcio}
+BuildRequires: %{python_module google-api-core >= 1.14.0}
+BuildRequires: %{python_module grpcio >= 1.8.2}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
+BuildRequires: python-futures
BuildRequires: python-rpm-macros
-Requires: python-google-api-core >= 1.11.0
+Requires: python-google-api-core >= 1.14.0
Recommends: python-grpcio >= 1.8.2
BuildArch: noarch
%ifpython2
-BuildRequires: python2-futures
-%endif
-# SECTION test requirements
-BuildRequires: %{python_module google-api-core >= 0.1.1}
-# /SECTION
-%ifpython2
Requires: python-futures >= 3.2.0
%endif
%python_subpackages
++++++ google-cloud-core-1.0.0.tar.gz -> google-cloud-core-1.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/PKG-INFO
new/google-cloud-core-1.0.3/PKG-INFO
--- old/google-cloud-core-1.0.0/PKG-INFO 2019-05-15 23:22:37.000000000
+0200
+++ new/google-cloud-core-1.0.3/PKG-INFO 2019-07-29 19:57:23.000000000
+0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-core
-Version: 1.0.0
+Version: 1.0.3
Summary: Google Cloud API client core library
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google LLC
@@ -9,7 +9,7 @@
Description: Core Helpers for Google Cloud Python Client Library
===================================================
- |pypi| |versions|
+ |pypi| |versions| |compat_check_pypi| |compat_check_github|
This library is not meant to stand-alone. Instead it defines
common helpers (e.g. base ``Client`` classes) used by all of the
@@ -22,7 +22,11 @@
:target: https://pypi.org/project/google-cloud-core/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
:target: https://pypi.org/project/google-cloud-core/
- .. _Documentation:
https://googleapis.github.io/google-cloud-python/latest/core/index.html
+ .. |compat_check_pypi| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=google-cloud-core
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=google-cloud-core
+ .. |compat_check_github| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+ .. _Documentation:
https://googleapis.dev/python/google-cloud-core/latest
Quick Start
-----------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/README.rst
new/google-cloud-core-1.0.3/README.rst
--- old/google-cloud-core-1.0.0/README.rst 2019-05-15 23:20:02.000000000
+0200
+++ new/google-cloud-core-1.0.3/README.rst 2019-07-29 19:53:56.000000000
+0200
@@ -1,7 +1,7 @@
Core Helpers for Google Cloud Python Client Library
===================================================
-|pypi| |versions|
+|pypi| |versions| |compat_check_pypi| |compat_check_github|
This library is not meant to stand-alone. Instead it defines
common helpers (e.g. base ``Client`` classes) used by all of the
@@ -14,7 +14,11 @@
:target: https://pypi.org/project/google-cloud-core/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
:target: https://pypi.org/project/google-cloud-core/
-.. _Documentation:
https://googleapis.github.io/google-cloud-python/latest/core/index.html
+.. |compat_check_pypi| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=google-cloud-core
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=google-cloud-core
+.. |compat_check_github| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+.. _Documentation: https://googleapis.dev/python/google-cloud-core/latest
Quick Start
-----------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/google/cloud/_http.py
new/google-cloud-core-1.0.3/google/cloud/_http.py
--- old/google-cloud-core-1.0.0/google/cloud/_http.py 2019-05-15
23:20:02.000000000 +0200
+++ new/google-cloud-core-1.0.3/google/cloud/_http.py 2019-07-29
19:53:56.000000000 +0200
@@ -159,8 +159,6 @@
This defines :meth:`api_request` for making a generic JSON
API request and API requests are created elsewhere.
- The class constants
-
* :attr:`API_BASE_URL`
* :attr:`API_VERSION`
* :attr:`API_URL_TEMPLATE`
@@ -177,9 +175,8 @@
API_URL_TEMPLATE = None
"""A template for the URL of a particular API call."""
- @classmethod
def build_api_url(
- cls, path, query_params=None, api_base_url=None, api_version=None
+ self, path, query_params=None, api_base_url=None, api_version=None
):
"""Construct an API url given a few components, some optional.
@@ -205,9 +202,9 @@
:rtype: str
:returns: The URL assembled from the pieces provided.
"""
- url = cls.API_URL_TEMPLATE.format(
- api_base_url=(api_base_url or cls.API_BASE_URL),
- api_version=(api_version or cls.API_VERSION),
+ url = self.API_URL_TEMPLATE.format(
+ api_base_url=(api_base_url or self.API_BASE_URL),
+ api_version=(api_version or self.API_VERSION),
path=path,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/google/cloud/client.py
new/google-cloud-core-1.0.3/google/cloud/client.py
--- old/google-cloud-core-1.0.0/google/cloud/client.py 2019-05-15
23:20:02.000000000 +0200
+++ new/google-cloud-core-1.0.3/google/cloud/client.py 2019-07-29
19:53:56.000000000 +0200
@@ -33,6 +33,9 @@
"for help on authentication with this library."
)
+# Default timeout for auth requests.
+_CREDENTIALS_REFRESH_TIMEOUT = 300
+
class _ClientFactoryMixin(object):
"""Mixin to allow factories that create credentials.
@@ -59,7 +62,6 @@
:type args: tuple
:param args: Remaining positional arguments to pass to constructor.
- :type kwargs: dict
:param kwargs: Remaining keyword arguments to pass to constructor.
:rtype: :class:`_ClientFactoryMixin`
@@ -153,7 +155,8 @@
"""
if self._http_internal is None:
self._http_internal =
google.auth.transport.requests.AuthorizedSession(
- self._credentials
+ self._credentials,
+ refresh_timeout=_CREDENTIALS_REFRESH_TIMEOUT,
)
return self._http_internal
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-core-1.0.0/google_cloud_core.egg-info/PKG-INFO
new/google-cloud-core-1.0.3/google_cloud_core.egg-info/PKG-INFO
--- old/google-cloud-core-1.0.0/google_cloud_core.egg-info/PKG-INFO
2019-05-15 23:22:36.000000000 +0200
+++ new/google-cloud-core-1.0.3/google_cloud_core.egg-info/PKG-INFO
2019-07-29 19:57:23.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-cloud-core
-Version: 1.0.0
+Version: 1.0.3
Summary: Google Cloud API client core library
Home-page: https://github.com/GoogleCloudPlatform/google-cloud-python
Author: Google LLC
@@ -9,7 +9,7 @@
Description: Core Helpers for Google Cloud Python Client Library
===================================================
- |pypi| |versions|
+ |pypi| |versions| |compat_check_pypi| |compat_check_github|
This library is not meant to stand-alone. Instead it defines
common helpers (e.g. base ``Client`` classes) used by all of the
@@ -22,7 +22,11 @@
:target: https://pypi.org/project/google-cloud-core/
.. |versions| image::
https://img.shields.io/pypi/pyversions/google-cloud-core.svg
:target: https://pypi.org/project/google-cloud-core/
- .. _Documentation:
https://googleapis.github.io/google-cloud-python/latest/core/index.html
+ .. |compat_check_pypi| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=google-cloud-core
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=google-cloud-core
+ .. |compat_check_github| image::
https://python-compatibility-tools.appspot.com/one_badge_image?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+ :target:
https://python-compatibility-tools.appspot.com/one_badge_target?package=git%2Bgit%3A//github.com/googleapis/google-cloud-python.git%23subdirectory%3Dcore
+ .. _Documentation:
https://googleapis.dev/python/google-cloud-core/latest
Quick Start
-----------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-cloud-core-1.0.0/google_cloud_core.egg-info/requires.txt
new/google-cloud-core-1.0.3/google_cloud_core.egg-info/requires.txt
--- old/google-cloud-core-1.0.0/google_cloud_core.egg-info/requires.txt
2019-05-15 23:22:36.000000000 +0200
+++ new/google-cloud-core-1.0.3/google_cloud_core.egg-info/requires.txt
2019-07-29 19:57:23.000000000 +0200
@@ -1,4 +1,4 @@
-google-api-core<2.0.0dev,>=1.11.0
+google-api-core<2.0.0dev,>=1.14.0
[grpc]
-grpcio>=1.8.2
+grpcio<2.0dev,>=1.8.2
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/setup.py
new/google-cloud-core-1.0.3/setup.py
--- old/google-cloud-core-1.0.0/setup.py 2019-05-15 23:20:02.000000000
+0200
+++ new/google-cloud-core-1.0.3/setup.py 2019-07-29 19:53:56.000000000
+0200
@@ -22,14 +22,14 @@
name = "google-cloud-core"
description = "Google Cloud API client core library"
-version = "1.0.0"
+version = "1.0.3"
# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
# 'Development Status :: 5 - Production/Stable'
release_status = "Development Status :: 4 - Beta"
-dependencies = ["google-api-core >= 1.11.0, < 2.0.0dev"]
-extras = {"grpc": "grpcio >= 1.8.2"}
+dependencies = ["google-api-core >= 1.14.0, < 2.0.0dev"]
+extras = {"grpc": "grpcio >= 1.8.2, < 2.0dev"}
# Setup boilerplate below this line.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-cloud-core-1.0.0/tests/unit/test_client.py
new/google-cloud-core-1.0.3/tests/unit/test_client.py
--- old/google-cloud-core-1.0.0/tests/unit/test_client.py 2019-05-15
23:20:02.000000000 +0200
+++ new/google-cloud-core-1.0.3/tests/unit/test_client.py 2019-07-29
19:53:56.000000000 +0200
@@ -122,6 +122,7 @@
self.assertIs(client._http, http)
def test__http_property_new(self):
+ from google.cloud.client import _CREDENTIALS_REFRESH_TIMEOUT
credentials = _make_credentials()
client = self._make_one(credentials=credentials)
self.assertIsNone(client._http_internal)
@@ -133,7 +134,7 @@
with authorized_session_patch as AuthorizedSession:
self.assertIs(client._http, mock.sentinel.http)
# Check the mock.
- AuthorizedSession.assert_called_once_with(credentials)
+ AuthorizedSession.assert_called_once_with(credentials,
refresh_timeout=_CREDENTIALS_REFRESH_TIMEOUT)
# Make sure the cached value is used on subsequent access.
self.assertIs(client._http_internal, mock.sentinel.http)
self.assertIs(client._http, mock.sentinel.http)