diff --git a/google-api-python-client-2.20.0.tar.gz b/google-api-python-client-2.20.0.tar.gz deleted file mode 100644 index d599b23..0000000 --- a/google-api-python-client-2.20.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:102dfe41455ac017796b2da2ec144ac7d66c55c369cb7cbc9480e29c046b055f -size 7081312 diff --git a/google-api-python-client-2.31.0.tar.gz b/google-api-python-client-2.31.0.tar.gz new file mode 100644 index 0000000..01d0181 --- /dev/null +++ b/google-api-python-client-2.31.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4ba0cdbae20ba092aa2f9ffc471410a3d4b84bac43880930887f74614434caa +size 27822400 diff --git a/python-google-api-python-client-no-unittest2.patch b/python-google-api-python-client-no-unittest2.patch deleted file mode 100644 index 9bd83e8..0000000 --- a/python-google-api-python-client-no-unittest2.patch +++ /dev/null @@ -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 - diff --git a/python-google-api-python-client.changes b/python-google-api-python-client.changes index 7e67c73..56b0213 100644 --- a/python-google-api-python-client.changes +++ b/python-google-api-python-client.changes @@ -1,3 +1,19 @@ +------------------------------------------------------------------- +Wed Dec 1 16:58:38 UTC 2021 - Jan Baier + +- 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 @@ -21,7 +37,7 @@ Mon Sep 13 01:39:48 UTC 2021 - Steve Kowalik * 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 - 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 diff --git a/python-google-api-python-client.spec b/python-google-api-python-client.spec index 0bc97f9..1c1e0aa 100644 --- a/python-google-api-python-client.spec +++ b/python-google-api-python-client.spec @@ -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