Hello community,
here is the log from the commit of package python-google-api-python-client for
openSUSE:Factory checked in at 2020-06-02 14:39:58
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-api-python-client (Old)
and /work/SRC/openSUSE:Factory/.python-google-api-python-client.new.3606
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-api-python-client"
Tue Jun 2 14:39:58 2020 rev:14 rq:810641 version:1.8.4
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-google-api-python-client/python-google-api-python-client.changes
2020-05-11 13:44:06.065469268 +0200
+++
/work/SRC/openSUSE:Factory/.python-google-api-python-client.new.3606/python-google-api-python-client.changes
2020-06-02 14:40:46.387926139 +0200
@@ -1,0 +2,11 @@
+Mon Jun 1 13:53:40 UTC 2020 - [email protected]
+
+- version update to 1.8.4
+ * don't try to import GAE API in other environments (#903) (09e6447)
+ * the turn down date for global batch uri (#901) (6ddadd7)
+ * downgrade repetitive logging calls to debug (#885) (3bf2781), closes #781
+- added patches
+ fix unittest2 seems to be fake dependency
+ + python-google-api-python-client-no-unittest2.patch
+
+-------------------------------------------------------------------
Old:
----
google-api-python-client-1.8.2.tar.gz
New:
----
google-api-python-client-1.8.4.tar.gz
python-google-api-python-client-no-unittest2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-google-api-python-client.spec ++++++
--- /var/tmp/diff_new_pack.hQEBGf/_old 2020-06-02 14:40:47.775930526 +0200
+++ /var/tmp/diff_new_pack.hQEBGf/_new 2020-06-02 14:40:47.787930564 +0200
@@ -18,13 +18,15 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-google-api-python-client
-Version: 1.8.2
+Version: 1.8.4
Release: 0
Summary: Google APIs Python Client
License: Apache-2.0
Group: Development/Languages/Python
URL: https://github.com/google/google-api-python-client
Source:
https://files.pythonhosted.org/packages/source/g/google-api-python-client/google-api-python-client-%{version}.tar.gz
+# https://github.com/googleapis/google-api-python-client/pull/929
+Patch0: python-google-api-python-client-no-unittest2.patch
BuildRequires: %{python_module google-api-core >= 1.13.0}
BuildRequires: %{python_module google-auth >= 1.4.1}
BuildRequires: %{python_module google-auth-httplib2 >= 0.0.3}
@@ -56,6 +58,7 @@
%prep
%setup -q -n google-api-python-client-%{version}
+%patch0 -p1
%build
%python_build
++++++ google-api-python-client-1.8.2.tar.gz ->
google-api-python-client-1.8.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-api-python-client-1.8.2/PKG-INFO
new/google-api-python-client-1.8.4/PKG-INFO
--- old/google-api-python-client-1.8.2/PKG-INFO 2020-04-21 22:22:25.310601500
+0200
+++ new/google-api-python-client-1.8.4/PKG-INFO 2020-05-26 22:19:38.414078000
+0200
@@ -1,8 +1,8 @@
Metadata-Version: 2.1
Name: google-api-python-client
-Version: 1.8.2
+Version: 1.8.4
Summary: Google API Client Library for Python
-Home-page: http://github.com/google/google-api-python-client/
+Home-page: https://github.com/googleapis/google-api-python-client/
Author: Google LLC
Author-email: [email protected]
License: Apache 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/google_api_python_client.egg-info/PKG-INFO
new/google-api-python-client-1.8.4/google_api_python_client.egg-info/PKG-INFO
---
old/google-api-python-client-1.8.2/google_api_python_client.egg-info/PKG-INFO
2020-04-21 22:22:25.000000000 +0200
+++
new/google-api-python-client-1.8.4/google_api_python_client.egg-info/PKG-INFO
2020-05-26 22:19:38.000000000 +0200
@@ -1,8 +1,8 @@
Metadata-Version: 2.1
Name: google-api-python-client
-Version: 1.8.2
+Version: 1.8.4
Summary: Google API Client Library for Python
-Home-page: http://github.com/google/google-api-python-client/
+Home-page: https://github.com/googleapis/google-api-python-client/
Author: Google LLC
Author-email: [email protected]
License: Apache 2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/googleapiclient/_helpers.py
new/google-api-python-client-1.8.4/googleapiclient/_helpers.py
--- old/google-api-python-client-1.8.2/googleapiclient/_helpers.py
2020-04-21 22:20:42.000000000 +0200
+++ new/google-api-python-client-1.8.4/googleapiclient/_helpers.py
2020-05-26 22:17:53.000000000 +0200
@@ -40,7 +40,7 @@
def positional(max_positional_args):
- """A decorator to declare that only the first N arguments my be positional.
+ """A decorator to declare that only the first N arguments may be
positional.
This decorator makes it easy to support Python 3 style keyword-only
parameters. For example, in Python 3 it is possible to write::
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/googleapiclient/discovery.py
new/google-api-python-client-1.8.4/googleapiclient/discovery.py
--- old/google-api-python-client-1.8.2/googleapiclient/discovery.py
2020-04-21 22:20:42.000000000 +0200
+++ new/google-api-python-client-1.8.4/googleapiclient/discovery.py
2020-05-26 22:17:53.000000000 +0200
@@ -277,7 +277,7 @@
actual_url = _add_query_parameter(url, "userIp",
os.environ["REMOTE_ADDR"])
if developerKey:
actual_url = _add_query_parameter(url, "key", developerKey)
- logger.info("URL being requested: GET %s", actual_url)
+ logger.debug("URL being requested: GET %s", actual_url)
resp, content = http.request(actual_url)
@@ -908,7 +908,7 @@
) % multipart_boundary
url = _add_query_parameter(url, "uploadType", "multipart")
- logger.info("URL being requested: %s %s" % (httpMethod, url))
+ logger.debug("URL being requested: %s %s" % (httpMethod, url))
return self._requestBuilder(
self._http,
model.response,
@@ -1028,14 +1028,14 @@
request.uri = _add_query_parameter(
request.uri, pageTokenName, nextPageToken
)
- logger.info("Next page request URL: %s %s" % (methodName,
request.uri))
+ logger.debug("Next page request URL: %s %s" % (methodName,
request.uri))
else:
# Replace pageToken value in request body
model = self._model
body = model.deserialize(request.body)
body[pageTokenName] = nextPageToken
request.body = model.serialize(body)
- logger.info("Next page request body: %s %s" % (methodName, body))
+ logger.debug("Next page request body: %s %s" % (methodName, body))
return request
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/googleapiclient/discovery_cache/__init__.py
new/google-api-python-client-1.8.4/googleapiclient/discovery_cache/__init__.py
---
old/google-api-python-client-1.8.2/googleapiclient/discovery_cache/__init__.py
2020-04-21 22:20:42.000000000 +0200
+++
new/google-api-python-client-1.8.4/googleapiclient/discovery_cache/__init__.py
2020-05-26 22:17:53.000000000 +0200
@@ -18,7 +18,7 @@
import logging
import datetime
-
+import os
LOGGER = logging.getLogger(__name__)
@@ -32,16 +32,18 @@
googleapiclient.discovery_cache.base.Cache, a cache object which
is auto detected, or None if no cache object is available.
"""
- try:
- from google.appengine.api import memcache
- from . import appengine_memcache
-
- return appengine_memcache.cache
- except Exception:
+ if 'APPENGINE_RUNTIME' in os.environ:
try:
- from . import file_cache
+ from google.appengine.api import memcache
+ from . import appengine_memcache
+
+ return appengine_memcache.cache
+ except Exception:
+ pass
+ try:
+ from . import file_cache
- return file_cache.cache
- except Exception as e:
- LOGGER.warning(e, exc_info=True)
- return None
+ return file_cache.cache
+ except Exception as e:
+ LOGGER.warning(e, exc_info=True)
+ return None
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/googleapiclient/http.py
new/google-api-python-client-1.8.4/googleapiclient/http.py
--- old/google-api-python-client-1.8.2/googleapiclient/http.py 2020-04-21
22:20:42.000000000 +0200
+++ new/google-api-python-client-1.8.4/googleapiclient/http.py 2020-05-26
22:17:53.000000000 +0200
@@ -1170,7 +1170,7 @@
if batch_uri == _LEGACY_BATCH_URI:
LOGGER.warn(
"You have constructed a BatchHttpRequest using the legacy
batch "
- "endpoint %s. This endpoint will be turned down on March 25,
2019. "
+ "endpoint %s. This endpoint will be turned down on August 12,
2020. "
"Please provide the API-specific endpoint or use "
"service.new_batch_http_request(). For more details see "
"https://developers.googleblog.com/2018/03/discontinuing-support-for-json-rpc-and.html"
@@ -1249,7 +1249,7 @@
# NB: we intentionally leave whitespace between base/id and '+', so
RFC2822
# line folding works properly on Python 3; see
- # https://github.com/google/google-api-python-client/issues/164
+ # https://github.com/googleapis/google-api-python-client/issues/164
return "<%s + %s>" % (self._base_id, quote(id_))
def _header_to_id(self, header):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/google-api-python-client-1.8.2/setup.py
new/google-api-python-client-1.8.4/setup.py
--- old/google-api-python-client-1.8.2/setup.py 2020-04-21 22:20:42.000000000
+0200
+++ new/google-api-python-client-1.8.4/setup.py 2020-05-26 22:17:53.000000000
+0200
@@ -52,7 +52,7 @@
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()
-version = "1.8.2"
+version = "1.8.4"
setup(
name="google-api-python-client",
@@ -62,7 +62,7 @@
long_description_content_type='text/markdown',
author="Google LLC",
author_email="[email protected]",
- url="http://github.com/google/google-api-python-client/",
+ url="https://github.com/googleapis/google-api-python-client/",
install_requires=install_requires,
python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
packages=packages,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/google-api-python-client-1.8.2/tests/test_discovery.py
new/google-api-python-client-1.8.4/tests/test_discovery.py
--- old/google-api-python-client-1.8.2/tests/test_discovery.py 2020-04-21
22:20:42.000000000 +0200
+++ new/google-api-python-client-1.8.4/tests/test_discovery.py 2020-05-26
22:17:53.000000000 +0200
@@ -521,7 +521,11 @@
options = google.api_core.client_options.ClientOptions(
api_endpoint=api_endpoint
)
- plus = build_from_document(discovery, client_options=options)
+ plus = build_from_document(
+ discovery,
+ client_options=options,
+ credentials=self.MOCK_CREDENTIALS
+ )
self.assertEqual(plus._baseUrl, api_endpoint)
@@ -529,7 +533,9 @@
discovery = open(datafile("plus.json")).read()
api_endpoint = "https://foo.googleapis.com/"
plus = build_from_document(
- discovery, client_options={"api_endpoint": api_endpoint}
+ discovery,
+ client_options={"api_endpoint": api_endpoint},
+ credentials=self.MOCK_CREDENTIALS
)
self.assertEqual(plus._baseUrl, api_endpoint)
@@ -642,6 +648,14 @@
class DiscoveryFromAppEngineCache(unittest.TestCase):
+
+ def setUp(self):
+ self.old_environ = os.environ.copy()
+ os.environ["APPENGINE_RUNTIME"] = "python27"
+
+ def tearDown(self):
+ os.environ = self.old_environ
+
def test_appengine_memcache(self):
# Hack module import
self.orig_import = __import__
++++++ python-google-api-python-client-no-unittest2.patch ++++++
Index: google-api-python-client-1.8.4/tests/test__auth.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test__auth.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test__auth.py 2020-06-01
15:48:23.340280191 +0200
@@ -18,7 +18,7 @@ import google.auth.credentials
import google_auth_httplib2
import httplib2
import oauth2client.client
-import unittest2 as unittest
+import unittest
from googleapiclient import _auth
Index: google-api-python-client-1.8.4/tests/test_channel.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_channel.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_channel.py 2020-06-01
15:48:45.200411976 +0200
@@ -3,7 +3,7 @@ from __future__ import absolute_import
__author__ = "[email protected] (Joe Gregorio)"
-import unittest2 as unittest
+import unittest
import datetime
from googleapiclient import channel
Index: google-api-python-client-1.8.4/tests/test_discovery.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_discovery.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_discovery.py 2020-06-01
15:49:06.480540264 +0200
@@ -37,7 +37,7 @@ import os
import pickle
import re
import sys
-import unittest2 as unittest
+import unittest
import mock
Index: google-api-python-client-1.8.4/tests/test_discovery_cache.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_discovery_cache.py
2020-05-26 22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_discovery_cache.py
2020-06-01 15:49:21.664631801 +0200
@@ -18,7 +18,7 @@
"""Discovery document cache tests."""
import datetime
-import unittest2 as unittest
+import unittest
import mock
Index: google-api-python-client-1.8.4/tests/test_errors.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_errors.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_errors.py 2020-06-01
15:49:32.728698502 +0200
@@ -21,7 +21,7 @@ from __future__ import absolute_import
__author__ = "[email protected] (Ali Afshar)"
-import unittest2 as unittest
+import unittest
import httplib2
Index: google-api-python-client-1.8.4/tests/test_http.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_http.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_http.py 2020-06-01
15:49:53.456823460 +0200
@@ -35,7 +35,7 @@ import io
import logging
import mock
import os
-import unittest2 as unittest
+import unittest
import random
import socket
import ssl
Index: google-api-python-client-1.8.4/tests/test_json_model.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_json_model.py
2020-05-26 22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_json_model.py 2020-06-01
15:50:08.064911523 +0200
@@ -28,7 +28,7 @@ import json
import os
import pkg_resources
import platform
-import unittest2 as unittest
+import unittest
import httplib2
import googleapiclient.model
Index: google-api-python-client-1.8.4/tests/test_mocks.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_mocks.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_mocks.py 2020-06-01
15:50:21.572991364 +0200
@@ -24,7 +24,7 @@ __author__ = "[email protected] (Joe
import httplib2
import os
-import unittest2 as unittest
+import unittest
from googleapiclient.errors import HttpError
from googleapiclient.errors import UnexpectedBodyError
Index: google-api-python-client-1.8.4/tests/test_model.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_model.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_model.py 2020-06-01
15:50:35.321072029 +0200
@@ -23,7 +23,7 @@ from __future__ import absolute_import
__author__ = "[email protected] (Joe Gregorio)"
-import unittest2 as unittest
+import unittest
from googleapiclient.model import BaseModel
from googleapiclient.model import makepatch
Index: google-api-python-client-1.8.4/tests/test_protobuf_model.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_protobuf_model.py
2020-05-26 22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_protobuf_model.py 2020-06-01
15:50:53.605179328 +0200
@@ -22,7 +22,7 @@ from __future__ import absolute_import
__author__ = "[email protected] (Matt McDonald)"
-import unittest2 as unittest
+import unittest
import httplib2
import googleapiclient.model
Index: google-api-python-client-1.8.4/tests/test_schema.py
===================================================================
--- google-api-python-client-1.8.4.orig/tests/test_schema.py 2020-05-26
22:17:53.000000000 +0200
+++ google-api-python-client-1.8.4/tests/test_schema.py 2020-06-01
15:51:08.885268956 +0200
@@ -19,7 +19,7 @@ __author__ = "[email protected] (Joe
import json
import os
-import unittest2 as unittest
+import unittest
from googleapiclient.schema import Schemas