- Update to 2.56.0:

* * : update the api
  * deps: require google-auth 1.19.0 (#1824) (7f478ae)
  * deps: require python 3.7+
  * test: Switch to unittest.mock
- Refresh patches.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-api-python-client?expand=0&rev=47
This commit is contained in:
2022-08-15 05:39:46 +00:00
committed by Git OBS Bridge
parent d95b7a22f0
commit b1258b585f
5 changed files with 33 additions and 24 deletions

View File

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

View File

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

View File

@@ -1,8 +1,8 @@
Index: google-api-python-client-2.44.0/tests/test__auth.py
Index: google-api-python-client-2.56.0/tests/test__auth.py
===================================================================
--- google-api-python-client-2.44.0.orig/tests/test__auth.py
+++ google-api-python-client-2.44.0/tests/test__auth.py
@@ -18,7 +18,6 @@ import mock
--- google-api-python-client-2.56.0.orig/tests/test__auth.py
+++ google-api-python-client-2.56.0/tests/test__auth.py
@@ -18,7 +18,6 @@ from unittest import mock
import google.auth.credentials
import google_auth_httplib2
import httplib2
@@ -22,7 +22,7 @@ Index: google-api-python-client-2.44.0/tests/test__auth.py
def test_default_credentials(self):
with mock.patch("google.auth.default", autospec=True) as default:
@@ -103,75 +100,12 @@ class TestAuthWithGoogleAuth(unittest.Te
@@ -105,75 +102,12 @@ class TestAuthWithGoogleAuth(unittest.Te
self.assertGreater(authorized_http.http.timeout, 0)
@@ -98,20 +98,20 @@ Index: google-api-python-client-2.44.0/tests/test__auth.py
def test_default_credentials(self):
with self.assertRaises(EnvironmentError):
Index: google-api-python-client-2.44.0/tests/test_discovery.py
Index: google-api-python-client-2.56.0/tests/test_discovery.py
===================================================================
--- google-api-python-client-2.44.0.orig/tests/test_discovery.py
+++ google-api-python-client-2.44.0/tests/test_discovery.py
@@ -82,8 +82,6 @@ from googleapiclient.http import MediaUp
from googleapiclient.http import tunnel_patch
from googleapiclient.model import JsonModel
from googleapiclient.schema import Schemas
--- google-api-python-client-2.56.0.orig/tests/test_discovery.py
+++ google-api-python-client-2.56.0/tests/test_discovery.py
@@ -43,8 +43,6 @@ import google.auth.credentials
from google.auth.exceptions import MutualTLSChannelError
import google_auth_httplib2
import httplib2
-from oauth2client import GOOGLE_TOKEN_URI
-from oauth2client.client import OAuth2Credentials, GoogleCredentials
-from oauth2client.client import GoogleCredentials, OAuth2Credentials
from parameterized import parameterized
import uritemplate
from googleapiclient import _helpers as util
@@ -1420,14 +1418,6 @@ class Discovery(unittest.TestCase):
@@ -1498,14 +1496,6 @@ class Discovery(unittest.TestCase):
self.assertTrue(getattr(plus, "activities"))
self.assertTrue(getattr(plus, "people"))
@@ -126,7 +126,7 @@ Index: google-api-python-client-2.44.0/tests/test_discovery.py
def test_google_auth_credentials(self):
credentials = mock.Mock(spec=google.auth.credentials.Credentials)
discovery = read_datafile("plus.json")
@@ -2088,36 +2078,6 @@ class Discovery(unittest.TestCase):
@@ -2166,36 +2156,6 @@ class Discovery(unittest.TestCase):
http.request = wrapped_request
return http

View File

@@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Aug 15 05:38:58 UTC 2022 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 2.56.0:
* * : update the api
* deps: require google-auth 1.19.0 (#1824) (7f478ae)
* deps: require python 3.7+
* test: Switch to unittest.mock
- Refresh patches.
-------------------------------------------------------------------
Thu Apr 14 19:30:07 UTC 2022 - Ben Greiner <code@bnavigator.de>

View File

@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-google-api-python-client
Version: 2.44.0
Version: 2.56.0
Release: 0
Summary: Google APIs Python Client
License: Apache-2.0
@@ -29,10 +29,9 @@ Source: https://files.pythonhosted.org/packages/source/g/google-api-pyth
# the distro has to remove it at some point
Patch0: opensuse-remove-oauth2client-tests.patch
BuildRequires: %{python_module google-api-core >= 1.31.5}
BuildRequires: %{python_module google-auth >= 1.16.0}
BuildRequires: %{python_module google-auth >= 1.19.0}
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
BuildRequires: %{python_module httplib2 >= 0.15.0}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pandas}
BuildRequires: %{python_module parameterized}
BuildRequires: %{python_module pytest}
@@ -41,7 +40,7 @@ BuildRequires: %{python_module uritemplate >= 3.0.1}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-api-core >= 1.31.5
Requires: python-google-auth >= 1.16.0
Requires: python-google-auth >= 1.19.0
Requires: python-google-auth-httplib2 >= 0.1.0
Requires: python-httplib2 >= 0.15.0
Requires: python-uritemplate >= 3.0.1