forked from pool/python-google-api-python-client
Accepting request 995084 from devel:languages:python
- 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/request/show/995084 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-api-python-client?expand=0&rev=21
This commit is contained in:
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fc9c31737b82a592d29636c6f77af9cf9666e45ed966d0a5ebe20711aa0df83c
|
|
||||||
size 7937116
|
|
||||||
3
google-api-python-client-2.56.0.tar.gz
Normal file
3
google-api-python-client-2.56.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:70d33203a4752bf4144b33fc689e997a2b5ed42c696d57149e4b3f5082682436
|
||||||
|
size 8508389
|
||||||
@@ -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.56.0.orig/tests/test__auth.py
|
||||||
+++ google-api-python-client-2.44.0/tests/test__auth.py
|
+++ google-api-python-client-2.56.0/tests/test__auth.py
|
||||||
@@ -18,7 +18,6 @@ import mock
|
@@ -18,7 +18,6 @@ from unittest import mock
|
||||||
import google.auth.credentials
|
import google.auth.credentials
|
||||||
import google_auth_httplib2
|
import google_auth_httplib2
|
||||||
import httplib2
|
import httplib2
|
||||||
@@ -22,7 +22,7 @@ Index: google-api-python-client-2.44.0/tests/test__auth.py
|
|||||||
|
|
||||||
def test_default_credentials(self):
|
def test_default_credentials(self):
|
||||||
with mock.patch("google.auth.default", autospec=True) as default:
|
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)
|
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):
|
def test_default_credentials(self):
|
||||||
with self.assertRaises(EnvironmentError):
|
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.56.0.orig/tests/test_discovery.py
|
||||||
+++ google-api-python-client-2.44.0/tests/test_discovery.py
|
+++ google-api-python-client-2.56.0/tests/test_discovery.py
|
||||||
@@ -82,8 +82,6 @@ from googleapiclient.http import MediaUp
|
@@ -43,8 +43,6 @@ import google.auth.credentials
|
||||||
from googleapiclient.http import tunnel_patch
|
from google.auth.exceptions import MutualTLSChannelError
|
||||||
from googleapiclient.model import JsonModel
|
import google_auth_httplib2
|
||||||
from googleapiclient.schema import Schemas
|
import httplib2
|
||||||
-from oauth2client import GOOGLE_TOKEN_URI
|
-from oauth2client import GOOGLE_TOKEN_URI
|
||||||
-from oauth2client.client import OAuth2Credentials, GoogleCredentials
|
-from oauth2client.client import GoogleCredentials, OAuth2Credentials
|
||||||
|
from parameterized import parameterized
|
||||||
|
import uritemplate
|
||||||
|
|
||||||
|
@@ -1498,14 +1496,6 @@ class Discovery(unittest.TestCase):
|
||||||
from googleapiclient import _helpers as util
|
|
||||||
@@ -1420,14 +1418,6 @@ class Discovery(unittest.TestCase):
|
|
||||||
self.assertTrue(getattr(plus, "activities"))
|
self.assertTrue(getattr(plus, "activities"))
|
||||||
self.assertTrue(getattr(plus, "people"))
|
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):
|
def test_google_auth_credentials(self):
|
||||||
credentials = mock.Mock(spec=google.auth.credentials.Credentials)
|
credentials = mock.Mock(spec=google.auth.credentials.Credentials)
|
||||||
discovery = read_datafile("plus.json")
|
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
|
http.request = wrapped_request
|
||||||
return http
|
return http
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
Thu Apr 14 19:30:07 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-google-api-python-client
|
Name: python-google-api-python-client
|
||||||
Version: 2.44.0
|
Version: 2.56.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Google APIs Python Client
|
Summary: Google APIs Python Client
|
||||||
License: Apache-2.0
|
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
|
# the distro has to remove it at some point
|
||||||
Patch0: opensuse-remove-oauth2client-tests.patch
|
Patch0: opensuse-remove-oauth2client-tests.patch
|
||||||
BuildRequires: %{python_module google-api-core >= 1.31.5}
|
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 google-auth-httplib2 >= 0.1.0}
|
||||||
BuildRequires: %{python_module httplib2 >= 0.15.0}
|
BuildRequires: %{python_module httplib2 >= 0.15.0}
|
||||||
BuildRequires: %{python_module mock}
|
|
||||||
BuildRequires: %{python_module pandas}
|
BuildRequires: %{python_module pandas}
|
||||||
BuildRequires: %{python_module parameterized}
|
BuildRequires: %{python_module parameterized}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
@@ -41,7 +40,7 @@ BuildRequires: %{python_module uritemplate >= 3.0.1}
|
|||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-google-api-core >= 1.31.5
|
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-google-auth-httplib2 >= 0.1.0
|
||||||
Requires: python-httplib2 >= 0.15.0
|
Requires: python-httplib2 >= 0.15.0
|
||||||
Requires: python-uritemplate >= 3.0.1
|
Requires: python-uritemplate >= 3.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user