Accepting request 935081 from devel:languages:python

- Update to 2.31.0:
  * MediaIoBaseDownload range header off-by-one (#1595) (4b73b2e)
- from version 2.28.0:
  * manage JSONDecodeError exception (#1574) (7d63027)
  * update thread_safety.md (#1568) (0b400f9)
- from version 2.26.1:
  * disable self signed jwt (#1566) (623a71e)
- from version 2.26.0:
  * add support for python 3.10 (#1557) (bcc507f)
- from version 2.25.0:
  * enable self signed jwt for service account credentials (#1553) (1fb3c8e)
- Drop python-google-api-python-client-no-unittest2.patch
- Update to 2.20.0:
  * Adds support for errors.py to also use 'errors' for error_details (#1281) (a5d2081)
  * add status_code property on http error handling (#1185) (db2a766)
  * Change default of static_discovery when discoveryServiceUrl set (#1261) (3b4f2e2)
  * correct api version in oauth-installed.md (#1258) (d1a255f)
  * fix .close() (#1231) (a9583f7)
  * Resolve issue where num_retries would have no effect (#1244) (c518472)
  * Include discovery artifacts in published package (#1221) (ad618d0)
  * Require Python 3.6+
  * Add support for using static discovery documents (#1109) (32d1c59)
  * Update synth.py to copy discovery files from discovery-artifact-manager (#1104) (af918e8)
  * Catch ECONNRESET and other errors more reliably (#1147) (ae9cd99)
  * deps: add upper-bound google-auth dependency (#1180) (c687f42)
  * handle error on service not enabled (#1117) (c691283)
  * Improve support for error_details (#1126) (e6a1da3)
  * MediaFileUpload error if file does not exist (#1127) (2c6d029)
  * replace deprecated socket.error with OSError (#1161) (b7b9986)
  * Use logging level info when file_cache is not available (#1125) (0b32e69)
  * add httplib2 authorization to thread_safety (#1005) (205ae59), closes #808
  * Change error parsing to check for 'message' (#1083) (a341c5a), closes #1082
  * don't raise when downloading zero byte files (#1074) (86d8788)
- Refreshed python-google-api-python-client-no-unittest2.patch
- Update to version 1.12.8
  * add httplib2 authorization to thread_safety (#1005), closes #808
- from version 1.12.7
  * Update Webmasters API sample (#1092)
- from version 1.12.6
  * Dcoumentation fixes
- from version 1.12.5
  * don't raise when downloading zero byte files (#1074)
- from version 1.12.4
  * don't set content-range on empty uploads (#1070)
- from version 1.12.3
  * deps: update setup.py to install httplib2>=0.15.0 (#1050)
- from version 1.12.2
  * add method to close httplib2 connections (#1038), closes #618
- from version 1.12.1
  * deps: require six>=1.13.0 (#1030)
- from version 1.12.0
  * convert print statement to function (#988), closes #987
  * remove http from batch execute docs (#1003), closes #1002
- Update to version 1.11.0
  * add support for mtls env variables (#1008)
- from version 1.10.1
  * discovery uses V2 when version is None (#975), closes (#971)
  * fix deprecation warnings due to invalid escape sequences. (#996), closes (#995)
  * fix link to service accounts documentation (#986)
  * update generated docs (#981)
- from version 1.10.0
  * allow to use 'six.moves.collections_abc.Mapping' in 'client_options.from_dict()' (#943)
  * Build universal wheels (#948)
  * discovery supports retries (#967), closes (#848)
  * consolidating and updating the Contribution Guide (#964), closes (#963)
- from version 1.9.3
  * update GOOGLE_API_USE_MTLS values (#940)
- from version 1.9.2
  * bump api-core version (#936)
- from version 1.9.1
  * fix python-api-core dependency issue (#931)
- from version 1.9.0
  * add mtls feature (#917)
  * add templates for python samples projects (#506), (#924)
- Refresh patches for new version
  + python-google-api-python-client-no-unittest2.patch
- Update BuildRequires and Requires from setup.py
- so remove the dependency on unittest2 from BuildRequires, too
- 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
- 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)
- Update to 1.8.0
  * Add api endpoint override. (https://github.com/googleapis/google-api-python-client/pull/829)
  * Various small bugfixes.
- Update to 1.7.11 bsc#1161898:
  * Various small bugfixes only
- Update to 1.7.8:
  * bunch of small bugfixes
  * python2 exec prints warning now about deprecation
- Remove hidePythonDeps.patch does not make sense
- Add back unittest2 dep, upstream hardcoded it
- Remove superfluous devel dependency for noarch package
- Remove dependency on unittest2
- Upgrade to 1.7.4: just series of minor bugfixes
- Add bug report about tests
- update to 1.6.7:
  - 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)
  - 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)
  - 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)
- Use %license
- update to version 1.6.4:
  * Warn when google-auth credentials are used but
    google-auth-httplib2 isn't available. (#443)
- changes from version 1.6.3:
  * 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)
- Implement single-spec version.
- Update source URL.
- Update to Version 1.6.2
  * 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)
- Update to Version 1.6.1
  * Fixed a bug where using google-auth with scoped credentials would fail. (#328)
- Update to Version 1.6.0
  * 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)
- Update to Version 1.5.5
  * 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.
- Fix description of -test sub-package
- Add missing runtime dependencies as requires
- Use new package's name in -test sub-package requires
- Include in SLE 12 (FATE#321630, bsc#1002895)
- Renamed package to python-google-api-python-client
  * Conform with openSUSE/SUSE naming policy
- Upgrade to version 1.5.4 (bsc#1002895)
  * 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.
- From 1.5.2
  * 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)
- From 1.5.1
  * 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)
- From 1.5.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)
- Upgrade to version 1.4.2 (bsc#954690)
  * oauth2client is now a separate package python-oauth2client
  * Need to update this version as the previous embedded version for
    oauth2client lacks necessary features for google-cloud-sdk
  * remove patch no_embed_uritempl_dep.patch
  * add patch hidePythonDeps.patch
  * Add automatic caching for the discovery docs.
  - From 1.4.1
    * Add the googleapiclient.discovery.Resource.new_batch_http_request method.
  - From 1.4.0
    * Python 3 support.
  - From 1.3.2
    * 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.
  - From 1.3.1
    * Quick release for a fix around aliasing in v1.3.
  - From 1.3.0
    * 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.
- Fix dependency issue, do not include uritemplate, this is an
  independent upstream code stream
- Add patch no_embed_uritempl_dep.patch
- include in SLE 12 (FATE #316168)
- update to 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.
- Initial build

OBS-URL: https://build.opensuse.org/request/show/935081
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-api-python-client?expand=0&rev=19
This commit is contained in:
2021-12-02 21:30:14 +00:00
committed by Git OBS Bridge
5 changed files with 27 additions and 155 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:102dfe41455ac017796b2da2ec144ac7d66c55c369cb7cbc9480e29c046b055f
size 7081312

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3f64a5eee6fa03ab51806dccf48e342fda83fea60c290518c6a2dfdbf2de9efd
size 7436726

View File

@@ -1,143 +0,0 @@
Index: google-api-python-client-2.20.0/tests/test__auth.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test__auth.py
+++ google-api-python-client-2.20.0/tests/test__auth.py
@@ -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-2.20.0/tests/test_channel.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_channel.py
+++ google-api-python-client-2.20.0/tests/test_channel.py
@@ -3,7 +3,7 @@ from __future__ import absolute_import
__author__ = "jcgregorio@google.com (Joe Gregorio)"
-import unittest2 as unittest
+import unittest
import datetime
from googleapiclient import channel
Index: google-api-python-client-2.20.0/tests/test_discovery_cache.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_discovery_cache.py
+++ google-api-python-client-2.20.0/tests/test_discovery_cache.py
@@ -18,7 +18,7 @@
"""Discovery document cache tests."""
import datetime
-import unittest2 as unittest
+import unittest
import mock
Index: google-api-python-client-2.20.0/tests/test_discovery.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_discovery.py
+++ google-api-python-client-2.20.0/tests/test_discovery.py
@@ -35,7 +35,7 @@ import os
import pickle
import re
import sys
-import unittest2 as unittest
+import unittest
import urllib
from parameterized import parameterized
Index: google-api-python-client-2.20.0/tests/test_errors.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_errors.py
+++ google-api-python-client-2.20.0/tests/test_errors.py
@@ -21,7 +21,7 @@ from __future__ import absolute_import
__author__ = "afshar@google.com (Ali Afshar)"
-import unittest2 as unittest
+import unittest
import httplib2
Index: google-api-python-client-2.20.0/tests/test_http.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_http.py
+++ google-api-python-client-2.20.0/tests/test_http.py
@@ -31,7 +31,7 @@ import io
import logging
import mock
import os
-import unittest2 as unittest
+import unittest
import urllib
import random
import socket
Index: google-api-python-client-2.20.0/tests/test_json_model.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_json_model.py
+++ google-api-python-client-2.20.0/tests/test_json_model.py
@@ -26,7 +26,7 @@ import httplib2
import json
import pkg_resources
import platform
-import unittest2 as unittest
+import unittest
import urllib
import googleapiclient.model
Index: google-api-python-client-2.20.0/tests/test_mocks.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_mocks.py
+++ google-api-python-client-2.20.0/tests/test_mocks.py
@@ -24,7 +24,7 @@ __author__ = "jcgregorio@google.com (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-2.20.0/tests/test_model.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_model.py
+++ google-api-python-client-2.20.0/tests/test_model.py
@@ -23,7 +23,7 @@ from __future__ import absolute_import
__author__ = "jcgregorio@google.com (Joe Gregorio)"
-import unittest2 as unittest
+import unittest
from googleapiclient.model import BaseModel
from googleapiclient.model import makepatch
Index: google-api-python-client-2.20.0/tests/test_protobuf_model.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_protobuf_model.py
+++ google-api-python-client-2.20.0/tests/test_protobuf_model.py
@@ -22,7 +22,7 @@ from __future__ import absolute_import
__author__ = "mmcdonald@google.com (Matt McDonald)"
-import unittest2 as unittest
+import unittest
import httplib2
from googleapiclient.model import ProtocolBufferModel
Index: google-api-python-client-2.20.0/tests/test_schema.py
===================================================================
--- google-api-python-client-2.20.0.orig/tests/test_schema.py
+++ google-api-python-client-2.20.0/tests/test_schema.py
@@ -19,7 +19,7 @@ __author__ = "jcgregorio@google.com (Joe
import json
import os
-import unittest2 as unittest
+import unittest
from googleapiclient.schema import Schemas

View File

@@ -1,3 +1,19 @@
-------------------------------------------------------------------
Wed Dec 1 16:58:38 UTC 2021 - Jan Baier <jbaier@suse.com>
- Update to 2.31.0:
* MediaIoBaseDownload range header off-by-one (#1595) (4b73b2e)
- from version 2.28.0:
* manage JSONDecodeError exception (#1574) (7d63027)
* update thread_safety.md (#1568) (0b400f9)
- from version 2.26.1:
* disable self signed jwt (#1566) (623a71e)
- from version 2.26.0:
* add support for python 3.10 (#1557) (bcc507f)
- from version 2.25.0:
* enable self signed jwt for service account credentials (#1553) (1fb3c8e)
- Drop python-google-api-python-client-no-unittest2.patch
-------------------------------------------------------------------
Mon Sep 13 01:39:48 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
@@ -21,7 +37,7 @@ Mon Sep 13 01:39:48 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>
* Use logging level info when file_cache is not available (#1125) (0b32e69)
* add httplib2 authorization to thread_safety (#1005) (205ae59), closes #808
* Change error parsing to check for 'message' (#1083) (a341c5a), closes #1082
* don't raise when downloading zero byte files (#1074) (86d8788)
* don't raise when downloading zero byte files (#1074) (86d8788)
- Refreshed python-google-api-python-client-no-unittest2.patch
-------------------------------------------------------------------
@@ -30,15 +46,15 @@ Mon Jul 5 19:41:14 UTC 2021 - Martin Wilck <mwilck@suse.com>
- Update to version 1.12.8
* add httplib2 authorization to thread_safety (#1005), closes #808
- from version 1.12.7
* Update Webmasters API sample (#1092)
* Update Webmasters API sample (#1092)
- from version 1.12.6
* Dcoumentation fixes
- from version 1.12.5
* don't raise when downloading zero byte files (#1074)
- from version 1.12.4
* don't set content-range on empty uploads (#1070)
* don't set content-range on empty uploads (#1070)
- from version 1.12.3
* deps: update setup.py to install httplib2>=0.15.0 (#1050)
* deps: update setup.py to install httplib2>=0.15.0 (#1050)
- from version 1.12.2
* add method to close httplib2 connections (#1038), closes #618
- from version 1.12.1

View File

@@ -18,21 +18,21 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
%define skip_python36 1
Name: python-google-api-python-client
Version: 2.20.0
Version: 2.31.0
Release: 0
Summary: Google APIs Python Client
License: Apache-2.0
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.21.0}
BuildRequires: %{python_module google-auth >= 1.16.0}
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
BuildRequires: %{python_module httplib2 >= 0.15.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module oauth2client}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -58,7 +58,6 @@ Google APIs Client Library for Python
%prep
%setup -q -n google-api-python-client-%{version}
%patch0 -p1
%build
%python_build
@@ -71,7 +70,7 @@ Google APIs Client Library for Python
# DiscoveryFromDocument::test_api_endpoint_override_from_client_options and
# DiscoveryFromDocument::test_api_endpoint_override_from_client_options_dict fail with "server unavailable"
# DiscoveryErrors::test_credentials_and_credentials_file_mutually_exclusive fails with "socket.gaierror: [Errno -3] Temporary failure in name resolution"
%pytest -k "not (test_api_endpoint_override_from_client_options and Document) and not test_credentials_and_credentials_file_mutually_exclusive"
%pytest --ignore=samples -k "not (test_api_endpoint_override_from_client_options and Document) and not test_credentials_and_credentials_file_mutually_exclusive"
%files %{python_files}
%doc README.md