Hello community,

here is the log from the commit of package python-google-api-python-client for 
openSUSE:Factory checked in at 2020-05-11 13:43:56
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-google-api-python-client (Old)
 and      /work/SRC/openSUSE:Factory/.python-google-api-python-client.new.2738 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-google-api-python-client"

Mon May 11 13:43:56 2020 rev:13 rq:802599 version:1.8.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-google-api-python-client/python-google-api-python-client.changes
  2020-04-10 23:53:34.248712786 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-google-api-python-client.new.2738/python-google-api-python-client.changes
        2020-05-11 13:44:06.065469268 +0200
@@ -1,0 +2,10 @@
+Mon May 11 06:28:41 UTC 2020 - Matej Cepl <mc...@suse.com>
+
+- Update to 1.8.2:
+  - Remove apiclient.__version__ gh#googleapis/googleapis#870
+  - Adding ConnectionError to retry mechanism gh#googleapis/googleapis#558
+  - replace '-' in method names with '_' 
gh#googleapis/google-api-python-client#863
+- Add missing dependency on oauth2client.
+- Fix filelist (no CHANGELOG anymore, missing README.md)
+
+-------------------------------------------------------------------

Old:
----
  google-api-python-client-1.8.0.tar.gz

New:
----
  google-api-python-client-1.8.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-google-api-python-client.spec ++++++
--- /var/tmp/diff_new_pack.uCqo03/_old  2020-05-11 13:44:07.713472766 +0200
+++ /var/tmp/diff_new_pack.uCqo03/_new  2020-05-11 13:44:07.713472766 +0200
@@ -18,7 +18,7 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 Name:           python-google-api-python-client
-Version:        1.8.0
+Version:        1.8.2
 Release:        0
 Summary:        Google APIs Python Client
 License:        Apache-2.0
@@ -30,6 +30,7 @@
 BuildRequires:  %{python_module google-auth-httplib2 >= 0.0.3}
 BuildRequires:  %{python_module httplib2 >= 0.9.2}
 BuildRequires:  %{python_module mock}
+BuildRequires:  %{python_module oauth2client}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six >= 1.6.1}
@@ -69,7 +70,7 @@
 %pytest -k "not (test_api_endpoint_override_from_client_options and Document)"
 
 %files %{python_files}
-%doc CHANGELOG
+%doc README.md
 %license LICENSE
 %{python_sitelib}/*
 

++++++ google-api-python-client-1.8.0.tar.gz -> 
google-api-python-client-1.8.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/CHANGELOG 
new/google-api-python-client-1.8.2/CHANGELOG
--- old/google-api-python-client-1.8.0/CHANGELOG        2020-03-13 
21:13:29.000000000 +0100
+++ new/google-api-python-client-1.8.2/CHANGELOG        1970-01-01 
01:00:00.000000000 +0100
@@ -1,513 +0,0 @@
-v1.8.0
-  Version 1.8.0
-
-  Release to support API endpoint override.
-
-  New Features
-  - Add api endpoint override. 
([#829](https://github.com/googleapis/google-api-python-client/pull/829))
-
-  Implementation Changes
-  - Don't set http.redirect_codes if the attr doesn't exist and allow more 
httplib2 versions. 
([#841](https://github.com/googleapis/google-api-python-client/pull/841))
-
-v1.7.12
-  Version 1.7.12
-  
-  Bugfix release
-  
-  Implementation Changes
-  - Look for field 'detail' in error message. 
([#739](https://github.com/googleapis/google-api-python-client/pull/739))
-  - Exclude 308s from httplib2 redirect codes list 
([#813](https://github.com/googleapis/google-api-python-client/pull/813))
-  
-  Documentation 
-  - Remove oauth2client from docs 
([#738](https://github.com/googleapis/google-api-python-client/pull/738))
-  - Fix typo. 
([#745](https://github.com/googleapis/google-api-python-client/pull/745))
-  - Remove compatibility badges. 
([#746](https://github.com/googleapis/google-api-python-client/pull/746))
-  - Fix TypeError: search_analytics_api_sample.py #732 
([#742](https://github.com/googleapis/google-api-python-client/pull/742))
-  - Correct response access 
([#750](https://github.com/googleapis/google-api-python-client/pull/750))
-  - Fix link to API explorer 
([#760](https://github.com/googleapis/google-api-python-client/pull/760))
-  - Fix argument typo in oauth2 code example 
([#763](https://github.com/googleapis/google-api-python-client/pull/763))
-  - Recommend install with virtualenv 
([#768](https://github.com/googleapis/google-api-python-client/pull/768))
-  - Fix capitalization in docs/README.md 
([#770](https://github.com/googleapis/google-api-python-client/pull/770))
-
-  - Remove compatibility badges 
([#796](https://github.com/googleapis/google-api-python-client/pull/796))
-  - Remove mentions of pycrypto 
([#799](https://github.com/googleapis/google-api-python-client/pull/799))
-  - Fix typo in model.py
-  - Add note about Google Ads llibrary 
([#814](https://github.com/googleapis/google-api-python-client/pull/814))
-
-  
-  Internal / Testing Changes
-  - Blacken 
([#772](https://github.com/googleapis/google-api-python-client/pull/722))
-  - Move kokoro configs 
([#832](https://github.com/googleapis/google-api-python-client/pull/832))
-  
-v1.7.11
-  Version 1.7.11
-
-  Bugfix release
-
-  Implementation Changes
-  - Pass library and Python version in x-goog-api-client header 
([#734](https://github.com/googleapis/google-api-python-client/pull/734))
-
-  Documentation
-  - Fix typo in filename used in 'docs/auth.md' 
([#736](https://github.com/googleapis/google-api-python-client/pull/736))
-
-  
-v1.7.10
-  Version 1.7.10
-
-  Bugfix release
-
-  Implementation Changes
-  - Decode service to utf-8 
([#723](https://github.com/googleapis/google-api-python-client/pull/723))
-  - Use print() function in both Python2 and Python 3 
([#722](https://github.com/googleapis/google-api-python-client/pull/722))
-  - Make http.MediaFileUpload close its file descriptor 
([#600](https://github.com/googleapis/google-api-python-client/pull/600))
-  - Never make 'body' required 
([#718](https://github.com/googleapis/google-api-python-client/pull/718))
-
-  Documentation
-  - Add compatability check badges to README 
([#691](https://github.com/googleapis/google-api-python-client/pull/691))
-  - Regenerate docs 
([#696](https://github.com/googleapis/google-api-python-client/pull/696), 
[#700](https://github.com/googleapis/google-api-python-client/pull/700))
-  - Create index file for dynamically generated docs 
([#702](https://github.com/googleapis/google-api-python-client/pull/702))
-  - Add docs folder with guides from developers.google.com 
([#706](https://github.com/googleapis/google-api-python-client/pull/706), 
[#710](https://github.com/googleapis/google-api-python-client/pull/710))
-
-  Internal / Testing Changes
-  - Fix http.py, lint errors, unit test 
([#724](https://github.com/googleapis/google-api-python-client/pull/724))
-  - tox.ini: Look for Python syntax errors and undefined names 
([#721](https://github.com/googleapis/google-api-python-client/pull/721))
-
-
-v1.7.9
-  Version 1.7.9
-
-  Bugfix release
-  - Remove Django Samples. 
([#657](https://github.com/googleapis/google-api-python-client/pull/657))
-  - Call request_orig with kwargs 
([#658](https://github.com/googleapis/google-api-python-client/pull/658))
-
-v1.7.8
-  Version 1.7.8
-
-  Bugfix release
-  - Convert '$' in method name to '_' 
([#616](https://github.com/googleapis/google-api-python-client/pull/616))
-  - Alias unitest2 import as unittest in test__auth.py 
([#613](https://github.com/googleapis/google-api-python-client/pull/613))
-
-v1.7.7
-  Version 1.7.7
-
-    Bugfix release
-    - Change xrange to range 
([#601](https://github.com/google/google-api-python-client/pull/601))
-    - Typo in http.py exception message. 
([#602](https://github.com/google/google-api-python-client/pull/602))
-
-    - Announce deprecation of Python 2.7 
([#603](https://github.com/google/google-api-python-client/pull/603))
-    - Updates documentation for stopping channel subscriptions 
([#598](https://github.com/google/google-api-python-client/pull/598))
-    - Adding example for searchAppearance 
([#414](https://github.com/google/google-api-python-client/pull/414))
-
-    - Add badges 
([#455](https://github.com/google/google-api-python-client/pull/455))
-
-v1.7.6
-  Version 1.7.6
-
-  Bugfix release
-
-  - Add client-side limit for batch requests (#585)
-
-v1.7.5
-  Version 1.7.5
-
-  Bugfix release
-
-  - Fix the client to respect the passed in developerKey and credentials
-
-v1.7.4
-  Version 1.7.4
-
-  Bugfix release
-
-  - Catch ServerNotFoundError to retry the request (#532)
-
-v1.7.3
-  Version 1.7.3
-
-  Bugfix release
-
-  - Make apiclient.sample_tools gracefully fail to import (#525).
-
-
-v1.7.2
-  Version 1.7.2
-
-  Bugfix release
-
-  - Remove unnecessary check in apiclient/__ini__.py (#522).
-
-v1.7.1
-  Version 1.7.1
-
-  Bugfix release
-
-  - Remove unnecessary check in setup.py (#518).
-
-v1.7.0
-  Version 1.7.0
-
-  This release drops the hard requirement on oauth2client and installs
-  google-auth by default instead. oauth2client is still supported but will
-  need to be explicitly installed.
-
-  - Drop oauth2client dependency (#499)
-  - Include tests in source distribution (#514)
-
-v1.6.7
-  Version 1.6.7
-
-  Bugfix release
-
-  **Note**: The next release of this library will no longer directly depend on
-    oauth2client. If you need to use oauth2client, you'll need to explicitly
-    install it.
-
-  - Make body optional for requests with no parameters. (#446)
-  - Fix retying on socket.timeout. (#495)
-  - Match travis matrix with tox testenv. (#498)
-  - Remove oauth2client._helpers dependency. (#493)
-  - Remove unused keyring test dependency. (#496)
-  - discovery.py: remove unused oauth2client import. (#492)
-  - Update README to reference GCP API client libraries. (#490)
-
-v1.6.6
-  Version 1.6.6
-
-  Bugfix release
-
-  - Warn when constructing BatchHttpRequest using the legacy batch URI (#488)
-  - Increase the default media chunksize to 100MB. (#482)
-  - Remove unnecessary parsing of mime headers in HttpRequest.__init__ (#467)
-
-v1.6.5
-  Version 1.6.5
-
-  Bugfix release
-
-  - Proactively refresh credentials when applying and treat a missing
-    `access_token` as invalid. Note: This change reveals surprising behavior
-    between default credentials and batches. If you allow
-    `googleapiclient.discovery.build` to use default credentials *and* specify
-    different credentials by providing `batch.execut()` with an explicit `http`
-    argument, your individual requests will use the default credentials and
-    *not* the credentials specified to the batch http. To avoid this, tell
-    `build` explicitly not to use default credentials by specifying
-    `build(..., http=httplib2.Http()`. (#469)
-  - Remove mutual exclusivity check for developerKey and credentials (#465)
-  - Handle unknown media length. (#406)
-  - Handle variant error format gracefully. (#459)
-  - Avoid testing against Django >= 2.0.0 on Python 2. (#460)
-
-v1.6.4
-  Version 1.6.4
-
-  Bugfix release
-
-  - Warn when google-auth credentials are used but google-auth-httplib2 isn't 
available. (#443)
-
-v1.6.3
-  Version 1.6.3
-
-  Bugfix release
-
-  - Add notification of maintenance mode to README. (#410)
-  - Fix generation of methods with abnormal page token conventions. (#338)
-  - Raise ValueError is credentials and developerKey are both specified. (#358)
-  - Re-generate documentation. (#364, #373, #401)
-  - Fix method signature documentation for multiline required parameters. 
(#374)
-  - Fix ZeroDivisionError in MediaDownloadProgress.progress. (#377)
-  - Fix dead link to WebTest in README. (#378)
-  - Fix details missing in googleapiclient.errors.HttpError. (#412)
-  - Don't treat httplib2.Credentials as oauth credentials. (#425)
-  - Various fixes to the Django sample. (#413)
-
-v1.6.2
-  Version 1.6.2
-
-  Bugfix release
-
-  - Fixed a bug where application default credentials would still be used even
-    when a developerKey was specified. (#347)
-  - Official support for Python 3.5 and 3.6. (#341)
- 
-v1.6.1
-  Version 1.6.1
-
-  Bugfix release
-
-  - Fixed a bug where using google-auth with scoped credentials would fail. 
(#328)
-
-v1.6.0
-  Version 1.6.0
-
-  Release to drop support for Python 2.6 and add support for google-auth.
-
-  - Support for Python 2.6 has been dropped. (#319)
-  - The credentials argument to discovery.build and 
discovery.build_from_document
-    can be either oauth2client credentials or google-auth credentials. (#319)
-  - discovery.build and discovery.build_from_document now unambiguously use the
-    http argument to make all requests, including the request for the discovery
-    document. (#319)
-  - The http and credentials arguments to discovery.build and
-    discovery.build_from_document are now mutually exclusive, eliminating a
-    buggy edge case. (#319)
-  - If neither http or credentials is specified to discovery.build and
-    discovery.build_from_document, then Application Default Credentials will
-    be used. The library prefers google-auth for this if it is available, but
-    can also use oauth2client's implementation. (#319)
-  - Fixed resumable upload failure when receiving a 308 response. (#312)
-  - Clarified the support versions of Python 3. (#316)
-
-v1.5.5
-  Version 1.5.5
-
-  Bugfix release
-
-  - Allow explicit MIME type specification with media_mime_type keyword 
argument.
-  - Fix unprintable representation of BatchError with default constructor. 
(#165)
-  - Refresh all discovery docs, not just the preferred ones. (#298)
-  - Update minimum httplib2 dependency to >=0.9.2.
-
-v1.5.4
-  Version 1.5.4
-
-  Bugfix release
-
-  - Properly handle errors when the API returns a mapping or sequence. (#289)
-  - Upgrade to unified uritemplate 3.0.0. (#293)
-  - Allow oauth2client 4.0.0, with the caveat that file-based discovery
-    caching is disabled.
-
-v1.5.3
-  Version 1.5.3
-
-  Bugfix release
-
-  - Fixed import error with oauth2client >= 3.0.0. (#270)
-
-v1.5.2
-  Version 1.5.2
-
-  Bugfix release
-
-  - Allow using oauth2client >= 1.5.0, < 4.0.0. (#265)
-  - Fix project_id argument description. (#257)
-  - Retry chunk uploaded on rate limit exceeded errors. (#255)
-  - Obtain access token if necessary in BatchHttpRequest.execute(). (#232)
-  - Warn when running tests using HttpMock without having a cache. (#261)
-
-v1.5.1
-  Version 1.5.1
-
-  Bugfix release
-
-  - Allow using versions of oauth2client < 2.0.0. (#197)
-  - Check both current and new API discovery URL. (#202)
-  - Retry http requests on connection errors and timeouts. (#218)
-  - Retry http requests on rate limit responses. (#201)
-  - Import guards for ssl (for Google App Engine). (#220)
-  - Use named loggers instead of the root logger. (#206)
-  - New search console example. (#212)
-
-v1.5.0
-  Version 1.5.0
-
-  Release to support oauth2client >= 2.0.0.
-
-  - Fix file stream recognition in Python 3 (#141)
-  - Fix non-resumable binary uploads in Python 3 (#147)
-  - Default to 'octet-stream' if mimetype detection fails (#157)
-  - Handle SSL errors with retries (#160)
-  - Fix incompatibility with oauth2client v2.0.0 (#182)
-
-v1.4.2
-  Version 1.4.2
-
-  Add automatic caching for the discovery docs.
-
-v1.4.1
-  Version 1.4.1
-
-  Add the googleapiclient.discovery.Resource.new_batch_http_request method.
-
-v1.4.0
-  Version 1.4.0
-
-  Python 3 support.
-
-v1.3.2
-  Version 1.3.2
-
-  Small bugfix release.
-
-  - Fix an infinite loop for downloading small files.
-  - Fix a unicode error in error encoding.
-  - Better handling of `content-length` in media requests.
-  - Add support for methodPath entries containing colon.
-
-v1.3.1
-  Version 1.3.1
-
-  Quick release for a fix around aliasing in v1.3.
-
-v1.3
-  Version 1.3
-
-  Add support for the Google Application Default Credentials.
-  Require python 2.6 as a minimum version.
-  Update several API samples.
-  Finish splitting out oauth2client repo and update tests.
-  Various doc cleanup and bugfixes.
-
-  Two important notes:
-    * We've added `googleapiclient` as the primary suggested import
-      name, and kept `apiclient` as an alias, in order to have a more
-      appropriate import name. At some point, we will remove `apiclient`
-      as an alias.
-    * Due to an issue around in-place upgrades for Python packages,
-      it's not possible to do an upgrade from version 1.2 to 1.3. Instead,
-      setup.py attempts to detect this and prevents it. Simply remove
-      the previous version and reinstall to fix this.
-
-v1.2
-  Version 1.2
-
-  The use of the gflags library is now deprecated, and is no longer a
-    dependency. If you are still using the oauth2client.tools.run() function
-    then include gflags as a dependency of your application or switch to
-    oauth2client.tools.run_flow.
-  Samples have been updated to use the new apiclient.sample_tools, and no
-    longer use gflags.
-  Added support for the experimental Object Change Notification, as found in
-    the Cloud Storage API.
-  The oauth2client App Engine decorators are now threadsafe.
-
-  - Use the following redirects feature of httplib2 where it returns the
-    ultimate URL after a series of redirects to avoid multiple hops for every
-    resumable media upload request.
-  - Updated AdSense Management API samples to V1.3
-  - Add option to automatically retry requests.
-  - Ability to list registered keys in multistore_file.
-  - User-agent must contain (gzip).
-  - The 'method' parameter for httplib2 is not positional. This would cause
-    spurious warnings in the logging.
-  - Making OAuth2Decorator more extensible. Fixes Issue 256.
-  - Update AdExchange Buyer API examples to version v1.2.
-
-
-v1.1
-  Version 1.1
-
-  Add PEM support to SignedJWTAssertionCredentials (used to only support
-  PKCS12 formatted keys). Note that if you use PEM formatted keys you can use
-  PyCrypto 2.6 or later instead of OpenSSL.
-
-  Allow deserialized discovery docs to be passed to build_from_document().
-
-  - Make ResumableUploadError derive from HttpError.
-  - Many changes to move all the closures in apiclient.discovery into real
-  -  classes and objects.
-  - Make from_json behavior inheritable.
-  - Expose the full token response in OAuth2Client and OAuth2Decorator.
-  - Handle reasons that are None.
-  - Added support for NDB based storing of oauth2client objects.
-  - Update grant_type for AssertionCredentials.
-  - Adding a .revoke() to Credentials. Closes issue 98.
-  - Modify oauth2client.multistore_file to store and retrieve credentials
-    using an arbitrary key.
-  - Don't accept 403 challenges by default for auth challenges.
-  - Set httplib2.RETRIES to 1.
-  - Consolidate handling of scopes.
-  - Upgrade to httplib2 version 0.8.
-  - Allow setting the response_type in OAuth2WebServerFlow.
-  - Ensure that dataWrapper feature is checked before using the 'data' value.
-  - HMAC verification does not use a constant time algorithm.
-
-v1.0
- Version 1.0
-
-  - Changes to the code for running tests and building releases.
-
-v1.0c3
- Version 1.0 Release Candidate 3
-
-  - In samples and oauth2 decorator, escape untrusted content before 
displaying it.
-  - Do not allow credentials files to be symlinks.
-  - Add XSRF protection to oauth2decorator callback 'state'.
-  - Handle uploading chunked media by stream.
-  - Handle passing streams directly to httplib2.
-  - Add support for Google Compute Engine service accounts.
-  - Flows no longer need to be saved between uses.
-  - Change GET to POST if URI is too long. Fixes issue #96.
-  - Add a keyring based Storage.
-  - More robust picking up JSON error responses.
-  - Make batch errors align with normal errors.
-  - Add a Google Compute sample.
-  - Token refresh to work with 'old' GData API
-  - Loading of client_secrets JSON file backed by a cache.
-  - Switch to new discovery path parameters.
-  - Add support for additionalProperties when printing schema'd objects.
-  - Fix media upload parameter names. Reviewed in 
http://codereview.appspot.com/6374062/
-  - oauth2client support for URL-encoded format of exchange token response 
(e.g.  Facebook)
-  - Build cleaner and easier to read docs for dynamic surfaces.
-
-v1.0c2
- Version 1.0 Release Candidate 2
-
-  - Parameter values of None should be treated as missing. Fixes issue #144.
-  - Distribute the samples separately from the library source. Fixes issue 
#155.
-  - Move all remaining samples over to client_secrets.json. Fixes issue #156.
-  - Make locked_file.py understand win32file primitives for better awesomeness.
-
-v1.0c1
- Version 1.0 Release Candidate 1
-
- - Documentation for the library has switched to epydoc:
-     http://google-api-python-client.googlecode.com/hg/docs/epy/index.html
- - Many improvements for media support:
-   * Added media download support, including resumable downloads.
-   * Better handling of streams that report their size as 0.
-   * Update Media Upload to include io.Base and also fix some bugs.
- - OAuth bug fixes and improvements.
-   * Remove OAuth 1.0 support.
-   * Added credentials_from_code and credentials_from_clientsecrets_and_code.
-   * Make oauth2client support Windows-friendly locking.
-   * Fix bug in StorageByKeyName.
-   * Fix None handling in Django fields. Reviewed in 
http://codereview.appspot.com/6298084/. Fixes issue #128.
- - Add epydoc generated docs. Reviewed in 
http://codereview.appspot.com/6305043/
- - Move to PEP386 compliant version numbers.
- - New and updated samples
-   * Ad Exchange Buyer API v1 code samples.
-   * Automatically generate Samples wiki page from README files.
-   * Update Google Prediction samples.
-   * Add a Tasks sample that demonstrates Service accounts.
-   * new analytics api samples. Reviewed here: 
http://codereview.appspot.com/5494058/
- - Convert all inline samples to the Farm API for consistency.
-
-v1.0beta8
- - Updated meda upload support.
- - Many fixes for batch requests.
- - Better handling for requests that don't require a body.
- - Fix issues with Google App Engine Python 2.7 runtime.
- - Better support for proxies.
- - All Storages now have a .delete() method.
- - Important changes which might break your code:
-    * apiclient.anyjson has moved to oauth2client.anyjson.
-    * Some calls, for example, taskqueue().lease() used to require a parameter
-      named body. In this new release only methods that really need to send a 
body
-      require a body parameter, and so you may get errors about an unknown
-      'body' parameter in your call. The solution is to remove the unneeded
-      body={} parameter.
-
-v1.0beta7
- - Support for batch requests.  
http://code.google.com/p/google-api-python-client/wiki/Batch
- - Support for media upload.  
http://code.google.com/p/google-api-python-client/wiki/MediaUpload
- - Better handling for APIs that return something other than JSON.
- - Major cleanup and consolidation of the samples.
- - Bug fixes and other enhancements:
-   72  Defect  Appengine OAuth2Decorator: Convert redirect address to string
-   22  Defect  Better error handling for unknown service name or version
-   48  Defect  StorageByKeyName().get() has side effects
-   50  Defect  Need sample client code for Admin Audit API
-   28  Defect  better comments for app engine sample   Nov 9
-   63  Enhancement Let OAuth2Decorator take a list of scope
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/PKG-INFO 
new/google-api-python-client-1.8.2/PKG-INFO
--- old/google-api-python-client-1.8.0/PKG-INFO 2020-03-13 23:46:17.000000000 
+0100
+++ new/google-api-python-client-1.8.2/PKG-INFO 2020-04-21 22:22:25.310601500 
+0200
@@ -1,18 +1,86 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: google-api-python-client
-Version: 1.8.0
+Version: 1.8.2
 Summary: Google API Client Library for Python
 Home-page: http://github.com/google/google-api-python-client/
-Author: Google Inc.
+Author: Google LLC
+Author-email: googleapis-packa...@google.com
 License: Apache 2.0
-Description: The Google API Client for Python is a client library for
-        accessing the Plus, Moderator, and many other Google APIs.
+Description: # Google API Client
+        
+        [![PyPI 
version](https://badge.fury.io/py/google-api-python-client.svg)](https://badge.fury.io/py/google-api-python-client)
+        
+        This is the Python client library for Google's discovery based APIs. 
To get started, please see the [docs folder](docs/README.md).
+        
+        These client libraries are officially supported by Google.  However, 
the libraries are considered complete and are in maintenance mode. This means 
that we will address critical bugs and security issues but will not add any new 
features.
+        
+        ## Documentation
+        
+        See the [docs folder](docs/README.md) for more detailed instructions 
and additional documentation.
+        
+        ## Other Google API libraries
+        
+        For Google Cloud Platform APIs such as Datastore, Cloud Storage or 
Pub/Sub, we recommend using [Cloud Client Libraries for 
Python](https://github.com/GoogleCloudPlatform/google-cloud-python).
+        
+        For Google Ads API, we recommend using [Google Ads API Client Library 
for Python](https://github.com/googleads/google-ads-python/).
+        
+        For Google Firebase Admin API, we recommend using [Firebase Admin 
Python SDK](https://github.com/firebase/firebase-admin-python).
+        
+        ## Installation
+        
+        Install this library in a 
[virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. virtualenv is a 
tool to
+        create isolated Python environments. The basic problem it addresses is 
one of
+        dependencies and versions, and indirectly permissions.
+        
+        With virtualenv, it's possible to install this library without needing 
system
+        install permissions, and without clashing with the installed system
+        dependencies.
+        
+        ### Mac/Linux
+        
+        ```
+        pip install virtualenv
+        virtualenv <your-env>
+        source <your-env>/bin/activate
+        <your-env>/bin/pip install google-api-python-client
+        ```
+        
+        ### Windows
+        
+        ```
+        pip install virtualenv
+        virtualenv <your-env>
+        <your-env>\Scripts\activate
+        <your-env>\Scripts\pip.exe install google-api-python-client
+        ```
+        
+        ## Supported Python Versions
+        
+        Python 3.5, 3.6 and 3.7, and 3.8 are fully supported and tested. This 
library may work on later versions of 3, but we do not currently run tests 
against those versions
+        
+        ## Deprecated Python Versions
+        
+        Python == 2.7
+        
+        ## Third Party Libraries and Dependencies
+        
+        The following libraries will be installed when you install the client 
library:
+        * [httplib2](https://github.com/httplib2/httplib2)
+        * [uritemplate](https://github.com/sigmavirus24/uritemplate)
+        
+        For development you will also need the following libraries:
+        * [WebTest](http://webtest.pythonpaste.org/en/latest/index.html)
+        * [pyopenssl](https://pypi.python.org/pypi/pyOpenSSL)
+        
+        ## Contributing
+        
+        Please see the [contributing 
page](http://google.github.io/google-api-python-client/contributing.html) for 
more information. In particular, we love pull requests - but please make sure 
to sign the contributor license agreement.
+        
 Keywords: google api client
 Platform: UNKNOWN
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
@@ -22,3 +90,4 @@
 Classifier: Operating System :: OS Independent
 Classifier: Topic :: Internet :: WWW/HTTP
 Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
+Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/README.md 
new/google-api-python-client-1.8.2/README.md
--- old/google-api-python-client-1.8.0/README.md        2020-03-12 
20:39:52.000000000 +0100
+++ new/google-api-python-client-1.8.2/README.md        2020-04-21 
22:20:42.000000000 +0200
@@ -10,12 +10,14 @@
 
 See the [docs folder](docs/README.md) for more detailed instructions and 
additional documentation.
 
-## Google Cloud Platform / Google Ads
+## Other Google API libraries
 
 For Google Cloud Platform APIs such as Datastore, Cloud Storage or Pub/Sub, we 
recommend using [Cloud Client Libraries for 
Python](https://github.com/GoogleCloudPlatform/google-cloud-python).
 
 For Google Ads API, we recommend using [Google Ads API Client Library for 
Python](https://github.com/googleads/google-ads-python/).
 
+For Google Firebase Admin API, we recommend using [Firebase Admin Python 
SDK](https://github.com/firebase/firebase-admin-python).
+
 ## Installation
 
 Install this library in a [virtualenv](https://virtualenv.pypa.io/en/latest/) 
using pip. virtualenv is a tool to
@@ -46,7 +48,7 @@
 
 ## Supported Python Versions
 
-Python 3.4, 3.5, 3.6 and 3.7 are fully supported and tested. This library may 
work on later versions of 3, but we do not currently run tests against those 
versions
+Python 3.5, 3.6 and 3.7, and 3.8 are fully supported and tested. This library 
may work on later versions of 3, but we do not currently run tests against 
those versions
 
 ## Deprecated Python Versions
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/apiclient/__init__.py 
new/google-api-python-client-1.8.2/apiclient/__init__.py
--- old/google-api-python-client-1.8.0/apiclient/__init__.py    2020-03-12 
20:39:52.000000000 +0100
+++ new/google-api-python-client-1.8.2/apiclient/__init__.py    2020-04-21 
22:20:42.000000000 +0200
@@ -19,8 +19,6 @@
     sample_tools = None
 from googleapiclient import schema
 
-__version__ = googleapiclient.__version__
-
 _SUBMODULES = {
     "channel": channel,
     "discovery": discovery,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/google_api_python_client.egg-info/PKG-INFO 
new/google-api-python-client-1.8.2/google_api_python_client.egg-info/PKG-INFO
--- 
old/google-api-python-client-1.8.0/google_api_python_client.egg-info/PKG-INFO   
    2020-03-13 23:46:16.000000000 +0100
+++ 
new/google-api-python-client-1.8.2/google_api_python_client.egg-info/PKG-INFO   
    2020-04-21 22:22:25.000000000 +0200
@@ -1,18 +1,86 @@
-Metadata-Version: 1.2
+Metadata-Version: 2.1
 Name: google-api-python-client
-Version: 1.8.0
+Version: 1.8.2
 Summary: Google API Client Library for Python
 Home-page: http://github.com/google/google-api-python-client/
-Author: Google Inc.
+Author: Google LLC
+Author-email: googleapis-packa...@google.com
 License: Apache 2.0
-Description: The Google API Client for Python is a client library for
-        accessing the Plus, Moderator, and many other Google APIs.
+Description: # Google API Client
+        
+        [![PyPI 
version](https://badge.fury.io/py/google-api-python-client.svg)](https://badge.fury.io/py/google-api-python-client)
+        
+        This is the Python client library for Google's discovery based APIs. 
To get started, please see the [docs folder](docs/README.md).
+        
+        These client libraries are officially supported by Google.  However, 
the libraries are considered complete and are in maintenance mode. This means 
that we will address critical bugs and security issues but will not add any new 
features.
+        
+        ## Documentation
+        
+        See the [docs folder](docs/README.md) for more detailed instructions 
and additional documentation.
+        
+        ## Other Google API libraries
+        
+        For Google Cloud Platform APIs such as Datastore, Cloud Storage or 
Pub/Sub, we recommend using [Cloud Client Libraries for 
Python](https://github.com/GoogleCloudPlatform/google-cloud-python).
+        
+        For Google Ads API, we recommend using [Google Ads API Client Library 
for Python](https://github.com/googleads/google-ads-python/).
+        
+        For Google Firebase Admin API, we recommend using [Firebase Admin 
Python SDK](https://github.com/firebase/firebase-admin-python).
+        
+        ## Installation
+        
+        Install this library in a 
[virtualenv](https://virtualenv.pypa.io/en/latest/) using pip. virtualenv is a 
tool to
+        create isolated Python environments. The basic problem it addresses is 
one of
+        dependencies and versions, and indirectly permissions.
+        
+        With virtualenv, it's possible to install this library without needing 
system
+        install permissions, and without clashing with the installed system
+        dependencies.
+        
+        ### Mac/Linux
+        
+        ```
+        pip install virtualenv
+        virtualenv <your-env>
+        source <your-env>/bin/activate
+        <your-env>/bin/pip install google-api-python-client
+        ```
+        
+        ### Windows
+        
+        ```
+        pip install virtualenv
+        virtualenv <your-env>
+        <your-env>\Scripts\activate
+        <your-env>\Scripts\pip.exe install google-api-python-client
+        ```
+        
+        ## Supported Python Versions
+        
+        Python 3.5, 3.6 and 3.7, and 3.8 are fully supported and tested. This 
library may work on later versions of 3, but we do not currently run tests 
against those versions
+        
+        ## Deprecated Python Versions
+        
+        Python == 2.7
+        
+        ## Third Party Libraries and Dependencies
+        
+        The following libraries will be installed when you install the client 
library:
+        * [httplib2](https://github.com/httplib2/httplib2)
+        * [uritemplate](https://github.com/sigmavirus24/uritemplate)
+        
+        For development you will also need the following libraries:
+        * [WebTest](http://webtest.pythonpaste.org/en/latest/index.html)
+        * [pyopenssl](https://pypi.python.org/pypi/pyOpenSSL)
+        
+        ## Contributing
+        
+        Please see the [contributing 
page](http://google.github.io/google-api-python-client/contributing.html) for 
more information. In particular, we love pull requests - but please make sure 
to sign the contributor license agreement.
+        
 Keywords: google api client
 Platform: UNKNOWN
 Classifier: Programming Language :: Python :: 2
 Classifier: Programming Language :: Python :: 2.7
 Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.4
 Classifier: Programming Language :: Python :: 3.5
 Classifier: Programming Language :: Python :: 3.6
 Classifier: Programming Language :: Python :: 3.7
@@ -22,3 +90,4 @@
 Classifier: Operating System :: OS Independent
 Classifier: Topic :: Internet :: WWW/HTTP
 Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*
+Description-Content-Type: text/markdown
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/google_api_python_client.egg-info/SOURCES.txt
 
new/google-api-python-client-1.8.2/google_api_python_client.egg-info/SOURCES.txt
--- 
old/google-api-python-client-1.8.0/google_api_python_client.egg-info/SOURCES.txt
    2020-03-13 23:46:16.000000000 +0100
+++ 
new/google-api-python-client-1.8.2/google_api_python_client.egg-info/SOURCES.txt
    2020-04-21 22:22:25.000000000 +0200
@@ -1,4 +1,3 @@
-CHANGELOG
 LICENSE
 MANIFEST.in
 README.md
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/googleapiclient/__init__.py 
new/google-api-python-client-1.8.2/googleapiclient/__init__.py
--- old/google-api-python-client-1.8.0/googleapiclient/__init__.py      
2020-03-13 21:06:54.000000000 +0100
+++ new/google-api-python-client-1.8.2/googleapiclient/__init__.py      
2020-04-21 22:20:42.000000000 +0200
@@ -12,8 +12,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-__version__ = "1.8.0"
-
 # Set default logging handler to avoid "No handler found" warnings.
 import logging
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/googleapiclient/discovery.py 
new/google-api-python-client-1.8.2/googleapiclient/discovery.py
--- old/google-api-python-client-1.8.0/googleapiclient/discovery.py     
2020-03-13 21:06:14.000000000 +0100
+++ new/google-api-python-client-1.8.2/googleapiclient/discovery.py     
2020-04-21 22:20:42.000000000 +0200
@@ -131,10 +131,10 @@
     name: string, method name.
 
   Returns:
-    The name with '_' appended if the name is a reserved word and '$' 
+    The name with '_' appended if the name is a reserved word and '$' and '-'
     replaced with '_'. 
   """
-    name = name.replace("$", "_")
+    name = name.replace("$", "_").replace("-", "_")
     if keyword.iskeyword(name) or name in RESERVED_WORDS:
         return name + "_"
     else:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/googleapiclient/errors.py 
new/google-api-python-client-1.8.2/googleapiclient/errors.py
--- old/google-api-python-client-1.8.0/googleapiclient/errors.py        
2020-03-12 20:39:52.000000000 +0100
+++ new/google-api-python-client-1.8.2/googleapiclient/errors.py        
2020-04-21 22:20:42.000000000 +0200
@@ -124,7 +124,7 @@
 
 
 class ResumableUploadError(HttpError):
-    """Error occured during resumable upload."""
+    """Error occurred during resumable upload."""
 
     pass
 
@@ -142,7 +142,7 @@
 
 
 class BatchError(HttpError):
-    """Error occured during batch operations."""
+    """Error occurred during batch operations."""
 
     @util.positional(2)
     def __init__(self, reason, resp=None, content=None):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/googleapiclient/http.py 
new/google-api-python-client-1.8.2/googleapiclient/http.py
--- old/google-api-python-client-1.8.0/googleapiclient/http.py  2020-03-13 
21:06:14.000000000 +0100
+++ new/google-api-python-client-1.8.2/googleapiclient/http.py  2020-04-21 
22:20:42.000000000 +0200
@@ -81,6 +81,11 @@
 
 _LEGACY_BATCH_URI = "https://www.googleapis.com/batch";
 
+if six.PY2:
+    # That's a builtin python3 exception, nonexistent in python2.
+    # Defined to None to avoid NameError while trying to catch it
+    ConnectionError = None
+
 
 def _should_retry_response(resp_status, content):
     """Determines whether a response should be retried.
@@ -177,6 +182,10 @@
             # It's important that this be before socket.error as it's a 
subclass
             # socket.timeout has no errorcode
             exception = socket_timeout
+        except ConnectionError as connection_error:
+            # Needs to be before socket.error as it's a subclass of
+            # OSError (socket.error)
+            exception = connection_error
         except socket.error as socket_error:
             # errno's contents differ by platform, so we have to match by name.
             if socket.errno.errorcode.get(socket_error.errno) not in {
@@ -700,7 +709,7 @@
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         headers = self._headers.copy()
         headers["range"] = "bytes=%d-%d" % (
@@ -851,7 +860,7 @@
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         if http is None:
             http = self.http
@@ -947,7 +956,7 @@
 
     Raises:
       googleapiclient.errors.HttpError if the response was not a 2xx.
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
     """
         if http is None:
             http = self.http
@@ -1410,7 +1419,7 @@
       request: list, list of request objects to send.
 
     Raises:
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
       googleapiclient.errors.BatchError if the response is the wrong format.
     """
         message = MIMEMultipart("mixed")
@@ -1486,7 +1495,7 @@
       None
 
     Raises:
-      httplib2.HttpLib2Error if a transport error has occured.
+      httplib2.HttpLib2Error if a transport error has occurred.
       googleapiclient.errors.BatchError if the response is the wrong format.
     """
         # If we have no requests return
@@ -1751,16 +1760,18 @@
         connection_type=None,
     ):
         resp, content = self._iterable.pop(0)
-        if content == "echo_request_headers":
+        content = six.ensure_binary(content)
+
+        if content == b"echo_request_headers":
             content = headers
-        elif content == "echo_request_headers_as_json":
+        elif content == b"echo_request_headers_as_json":
             content = json.dumps(headers)
-        elif content == "echo_request_body":
+        elif content == b"echo_request_body":
             if hasattr(body, "read"):
                 content = body.read()
             else:
                 content = body
-        elif content == "echo_request_uri":
+        elif content == b"echo_request_uri":
             content = uri
         if isinstance(content, six.text_type):
             content = content.encode("utf-8")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/googleapiclient/model.py 
new/google-api-python-client-1.8.2/googleapiclient/model.py
--- old/google-api-python-client-1.8.0/googleapiclient/model.py 2020-03-12 
20:39:52.000000000 +0100
+++ new/google-api-python-client-1.8.2/googleapiclient/model.py 2020-04-21 
22:20:42.000000000 +0200
@@ -27,12 +27,13 @@
 import json
 import logging
 import platform
+import pkg_resources
 
 from six.moves.urllib.parse import urlencode
 
-from googleapiclient import __version__
 from googleapiclient.errors import HttpError
 
+_LIBRARY_VERSION = 
pkg_resources.get_distribution("google-api-python-client").version
 _PY_VERSION = platform.python_version()
 
 LOGGER = logging.getLogger(__name__)
@@ -152,7 +153,7 @@
         else:
             headers["x-goog-api-client"] = ""
         headers["x-goog-api-client"] += "gdcl/%s gl-python/%s" % (
-            __version__,
+            _LIBRARY_VERSION,
             _PY_VERSION,
         )
 
@@ -218,7 +219,7 @@
                 return self.no_content_response
             return self.deserialize(content)
         else:
-            LOGGER.debug("Content from bad request was: %s" % content)
+            LOGGER.debug("Content from bad request was: %r" % content)
             raise HttpError(resp, content)
 
     def serialize(self, body_value):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/setup.py 
new/google-api-python-client-1.8.2/setup.py
--- old/google-api-python-client-1.8.0/setup.py 2020-03-13 21:06:14.000000000 
+0100
+++ new/google-api-python-client-1.8.2/setup.py 2020-04-21 22:20:42.000000000 
+0200
@@ -28,6 +28,8 @@
     print("google-api-python-client requires python3 version >= 3.4.", 
file=sys.stderr)
     sys.exit(1)
 
+import io
+import os
 from setuptools import setup
 
 packages = ["apiclient", "googleapiclient", "googleapiclient/discovery_cache"]
@@ -44,19 +46,22 @@
     "uritemplate>=3.0.0,<4dev",
 ]
 
-long_desc = """The Google API Client for Python is a client library for
-accessing the Plus, Moderator, and many other Google APIs."""
+package_root = os.path.abspath(os.path.dirname(__file__))
 
-import googleapiclient
+readme_filename = os.path.join(package_root, "README.md")
+with io.open(readme_filename, encoding="utf-8") as readme_file:
+    readme = readme_file.read()
 
-version = googleapiclient.__version__
+version = "1.8.2"
 
 setup(
     name="google-api-python-client",
     version=version,
     description="Google API Client Library for Python",
-    long_description=long_desc,
-    author="Google Inc.",
+    long_description=readme,
+    long_description_content_type='text/markdown',
+    author="Google LLC",
+    author_email="googleapis-packa...@google.com",
     url="http://github.com/google/google-api-python-client/";,
     install_requires=install_requires,
     python_requires=">=2.7,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*",
@@ -68,7 +73,6 @@
         "Programming Language :: Python :: 2",
         "Programming Language :: Python :: 2.7",
         "Programming Language :: Python :: 3",
-        "Programming Language :: Python :: 3.4",
         "Programming Language :: Python :: 3.5",
         "Programming Language :: Python :: 3.6",
         "Programming Language :: Python :: 3.7",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/google-api-python-client-1.8.0/tests/test_http.py 
new/google-api-python-client-1.8.2/tests/test_http.py
--- old/google-api-python-client-1.8.0/tests/test_http.py       2020-03-13 
21:06:14.000000000 +0100
+++ new/google-api-python-client-1.8.2/tests/test_http.py       2020-04-21 
22:20:42.000000000 +0200
@@ -132,32 +132,31 @@
     def request(self, *args, **kwargs):
         if not self.num_errors:
             return httplib2.Response(self.success_json), self.success_data
+        elif self.num_errors == 5 and PY3:
+            ex = ConnectionResetError  # noqa: F821
+        elif self.num_errors == 4:
+            ex = httplib2.ServerNotFoundError()
+        elif self.num_errors == 3:
+            ex = socket.error()
+            ex.errno = socket.errno.EPIPE
+        elif self.num_errors == 2:
+            ex = ssl.SSLError()
         else:
-            self.num_errors -= 1
-            if self.num_errors == 1:  # initial == 2
-                raise ssl.SSLError()
-            if self.num_errors == 3:  # initial == 4
-                raise httplib2.ServerNotFoundError()
-            else:  # initial != 2,4
-                if self.num_errors == 2:
-                    # first try a broken pipe error (#218)
-                    ex = socket.error()
-                    ex.errno = socket.errno.EPIPE
+            # Initialize the timeout error code to the platform's error code.
+            try:
+                # For Windows:
+                ex = socket.error()
+                ex.errno = socket.errno.WSAETIMEDOUT
+            except AttributeError:
+                # For Linux/Mac:
+                if PY3:
+                    ex = socket.timeout()
                 else:
-                    # Initialize the timeout error code to the platform's 
error code.
-                    try:
-                        # For Windows:
-                        ex = socket.error()
-                        ex.errno = socket.errno.WSAETIMEDOUT
-                    except AttributeError:
-                        # For Linux/Mac:
-                        if PY3:
-                            ex = socket.timeout()
-                        else:
-                            ex = socket.error()
-                            ex.errno = socket.errno.ETIMEDOUT
-                # Now raise the correct error.
-                raise ex
+                    ex = socket.error()
+                    ex.errno = socket.errno.ETIMEDOUT
+
+        self.num_errors -= 1
+        raise ex
 
 
 class HttpMockWithNonRetriableErrors(object):
@@ -562,14 +561,14 @@
 
     def test_media_io_base_download_retries_connection_errors(self):
         self.request.http = HttpMockWithErrors(
-            4, {"status": "200", "content-range": "0-2/3"}, b"123"
+            5, {"status": "200", "content-range": "0-2/3"}, b"123"
         )
 
         download = MediaIoBaseDownload(fd=self.fd, request=self.request, 
chunksize=3)
         download._sleep = lambda _x: 0  # do nothing
         download._rand = lambda: 10
 
-        status, done = download.next_chunk(num_retries=4)
+        status, done = download.next_chunk(num_retries=5)
 
         self.assertEqual(self.fd.getvalue(), b"123")
         self.assertEqual(True, done)
@@ -899,13 +898,13 @@
     def test_retry_connection_errors_non_resumable(self):
         model = JsonModel()
         request = HttpRequest(
-            HttpMockWithErrors(4, {"status": "200"}, '{"foo": "bar"}'),
+            HttpMockWithErrors(5, {"status": "200"}, '{"foo": "bar"}'),
             model.response,
             u"https://www.example.com/json_api_endpoint";,
         )
         request._sleep = lambda _x: 0  # do nothing
         request._rand = lambda: 10
-        response = request.execute(num_retries=4)
+        response = request.execute(num_retries=5)
         self.assertEqual({u"foo": u"bar"}, response)
 
     def test_retry_connection_errors_resumable(self):
@@ -918,7 +917,7 @@
 
         request = HttpRequest(
             HttpMockWithErrors(
-                4, {"status": "200", "location": "location"}, '{"foo": "bar"}'
+                5, {"status": "200", "location": "location"}, '{"foo": "bar"}'
             ),
             model.response,
             u"https://www.example.com/file_upload";,
@@ -927,7 +926,7 @@
         )
         request._sleep = lambda _x: 0  # do nothing
         request._rand = lambda: 10
-        response = request.execute(num_retries=4)
+        response = request.execute(num_retries=5)
         self.assertEqual({u"foo": u"bar"}, response)
 
     def test_retry(self):
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/google-api-python-client-1.8.0/tests/test_json_model.py 
new/google-api-python-client-1.8.2/tests/test_json_model.py
--- old/google-api-python-client-1.8.0/tests/test_json_model.py 2020-03-12 
20:39:52.000000000 +0100
+++ new/google-api-python-client-1.8.2/tests/test_json_model.py 2020-04-21 
22:20:42.000000000 +0200
@@ -26,17 +26,19 @@
 import copy
 import json
 import os
+import pkg_resources
 import platform
 import unittest2 as unittest
 import httplib2
 import googleapiclient.model
 
-from googleapiclient import __version__
 from googleapiclient.errors import HttpError
 from googleapiclient.model import JsonModel
 
 from six.moves.urllib.parse import parse_qs
 
+_LIBRARY_VERSION = 
pkg_resources.get_distribution("google-api-python-client").version
+
 
 class Model(unittest.TestCase):
     def test_json_no_body(self):
@@ -171,7 +173,7 @@
             headers["x-goog-api-client"],
             "gccl/1.23.4"
             + " gdcl/"
-            + __version__
+            + _LIBRARY_VERSION
             + " gl-python/"
             + platform.python_version(),
         )


Reply via email to