Accepting request 1069189 from devel:languages:python
- Update to version 2.80.0 * **analyticsadmin:** Update the api * **analyticshub:** Update the api * **bigquery:** Update the api * **chat:** Update the api * **chromemanagement:** Update the api * **chromepolicy:** Update the api * **cloudchannel:** Update the api * **cloudfunctions:** Update the api * **cloudsearch:** Update the api * **compute:** Update the api * **connectors:** Update the api * **containeranalysis:** Update the api * **contentwarehouse:** Update the api * **datamigration:** Update the api * **dataplex:** Update the api * **dataproc:** Update the api * **dialogflow:** Update the api * **firestore:** Update the api * **gkehub:** Update the api * **identitytoolkit:** Update the api * **logging:** Update the api * **monitoring:** Update the api * **policysimulator:** Update the api * **recaptchaenterprise:** Update the api * **sasportal:** Update the api * **servicedirectory:** Update the api * **servicemanagement:** Update the api * **tpu:** Update the api * **transcoder:** Update the api (forwarded request 1069187 from glaubitz) OBS-URL: https://build.opensuse.org/request/show/1069189 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-api-python-client?expand=0&rev=30
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:262de094d5a30d337f59e66581019fed45b698c078397ac48dd323c0968236e7
|
||||
size 10245265
|
3
google-api-python-client-2.80.0.tar.gz
Normal file
3
google-api-python-client-2.80.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:51dd62d467da7ad3df63c3f0e6fca84266ce50c2218691204b2e8cd651a0719a
|
||||
size 10556925
|
@@ -1,165 +0,0 @@
|
||||
Index: google-api-python-client-2.56.0/tests/test__auth.py
|
||||
===================================================================
|
||||
--- 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
|
||||
-import oauth2client.client
|
||||
|
||||
from googleapiclient import _auth
|
||||
|
||||
@@ -26,11 +25,9 @@ from googleapiclient import _auth
|
||||
class TestAuthWithGoogleAuth(unittest.TestCase):
|
||||
def setUp(self):
|
||||
_auth.HAS_GOOGLE_AUTH = True
|
||||
- _auth.HAS_OAUTH2CLIENT = False
|
||||
|
||||
def tearDown(self):
|
||||
_auth.HAS_GOOGLE_AUTH = True
|
||||
- _auth.HAS_OAUTH2CLIENT = True
|
||||
|
||||
def test_default_credentials(self):
|
||||
with mock.patch("google.auth.default", autospec=True) as default:
|
||||
@@ -105,75 +102,12 @@ class TestAuthWithGoogleAuth(unittest.Te
|
||||
self.assertGreater(authorized_http.http.timeout, 0)
|
||||
|
||||
|
||||
-class TestAuthWithOAuth2Client(unittest.TestCase):
|
||||
- def setUp(self):
|
||||
- _auth.HAS_GOOGLE_AUTH = False
|
||||
- _auth.HAS_OAUTH2CLIENT = True
|
||||
-
|
||||
- def tearDown(self):
|
||||
- _auth.HAS_GOOGLE_AUTH = True
|
||||
- _auth.HAS_OAUTH2CLIENT = True
|
||||
-
|
||||
- def test_default_credentials(self):
|
||||
- default_patch = mock.patch(
|
||||
- "oauth2client.client.GoogleCredentials.get_application_default"
|
||||
- )
|
||||
-
|
||||
- with default_patch as default:
|
||||
- default.return_value = mock.sentinel.credentials
|
||||
-
|
||||
- credentials = _auth.default_credentials()
|
||||
-
|
||||
- self.assertEqual(credentials, mock.sentinel.credentials)
|
||||
-
|
||||
- def test_credentials_from_file(self):
|
||||
- with self.assertRaises(EnvironmentError):
|
||||
- credentials = _auth.credentials_from_file("credentials.json")
|
||||
-
|
||||
- def test_default_credentials_with_scopes_and_quota_project(self):
|
||||
- with self.assertRaises(EnvironmentError):
|
||||
- credentials = _auth.default_credentials(
|
||||
- scopes=["1", "2"], quota_project_id="my-project"
|
||||
- )
|
||||
-
|
||||
- def test_with_scopes_non_scoped(self):
|
||||
- credentials = mock.Mock(spec=oauth2client.client.Credentials)
|
||||
-
|
||||
- returned = _auth.with_scopes(credentials, mock.sentinel.scopes)
|
||||
-
|
||||
- self.assertEqual(credentials, returned)
|
||||
-
|
||||
- def test_with_scopes_scoped(self):
|
||||
- credentials = mock.Mock(spec=oauth2client.client.GoogleCredentials)
|
||||
- credentials.create_scoped_required.return_value = True
|
||||
-
|
||||
- returned = _auth.with_scopes(credentials, mock.sentinel.scopes)
|
||||
-
|
||||
- self.assertNotEqual(credentials, returned)
|
||||
- self.assertEqual(returned, credentials.create_scoped.return_value)
|
||||
- credentials.create_scoped.assert_called_once_with(mock.sentinel.scopes)
|
||||
-
|
||||
- def test_authorized_http(self):
|
||||
- credentials = mock.Mock(spec=oauth2client.client.Credentials)
|
||||
-
|
||||
- authorized_http = _auth.authorized_http(credentials)
|
||||
-
|
||||
- http = credentials.authorize.call_args[0][0]
|
||||
-
|
||||
- self.assertEqual(authorized_http, credentials.authorize.return_value)
|
||||
- self.assertIsInstance(http, httplib2.Http)
|
||||
- self.assertIsInstance(http.timeout, int)
|
||||
- self.assertGreater(http.timeout, 0)
|
||||
-
|
||||
-
|
||||
class TestAuthWithoutAuth(unittest.TestCase):
|
||||
def setUp(self):
|
||||
_auth.HAS_GOOGLE_AUTH = False
|
||||
- _auth.HAS_OAUTH2CLIENT = False
|
||||
|
||||
def tearDown(self):
|
||||
_auth.HAS_GOOGLE_AUTH = True
|
||||
- _auth.HAS_OAUTH2CLIENT = True
|
||||
|
||||
def test_default_credentials(self):
|
||||
with self.assertRaises(EnvironmentError):
|
||||
Index: google-api-python-client-2.56.0/tests/test_discovery.py
|
||||
===================================================================
|
||||
--- 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 GoogleCredentials, OAuth2Credentials
|
||||
from parameterized import parameterized
|
||||
import uritemplate
|
||||
|
||||
@@ -1498,14 +1496,6 @@ class Discovery(unittest.TestCase):
|
||||
self.assertTrue(getattr(plus, "activities"))
|
||||
self.assertTrue(getattr(plus, "people"))
|
||||
|
||||
- def test_oauth2client_credentials(self):
|
||||
- credentials = mock.Mock(spec=GoogleCredentials)
|
||||
- credentials.create_scoped_required.return_value = False
|
||||
-
|
||||
- discovery = read_datafile("plus.json")
|
||||
- service = build_from_document(discovery, credentials=credentials)
|
||||
- self.assertEqual(service._http, credentials.authorize.return_value)
|
||||
-
|
||||
def test_google_auth_credentials(self):
|
||||
credentials = mock.Mock(spec=google.auth.credentials.Credentials)
|
||||
discovery = read_datafile("plus.json")
|
||||
@@ -2166,36 +2156,6 @@ class Discovery(unittest.TestCase):
|
||||
http.request = wrapped_request
|
||||
return http
|
||||
|
||||
- def _dummy_token(self):
|
||||
- access_token = "foo"
|
||||
- client_id = "some_client_id"
|
||||
- client_secret = "cOuDdkfjxxnv+"
|
||||
- refresh_token = "1/0/a.df219fjls0"
|
||||
- token_expiry = datetime.datetime.utcnow()
|
||||
- user_agent = "refresh_checker/1.0"
|
||||
- return OAuth2Credentials(
|
||||
- access_token,
|
||||
- client_id,
|
||||
- client_secret,
|
||||
- refresh_token,
|
||||
- token_expiry,
|
||||
- GOOGLE_TOKEN_URI,
|
||||
- user_agent,
|
||||
- )
|
||||
-
|
||||
- def test_pickle_with_credentials(self):
|
||||
- credentials = self._dummy_token()
|
||||
- http = self._dummy_zoo_request()
|
||||
- http = credentials.authorize(http)
|
||||
- self.assertTrue(hasattr(http.request, "credentials"))
|
||||
-
|
||||
- zoo = build("zoo", "v1", http=http, static_discovery=False)
|
||||
- pickled_zoo = pickle.dumps(zoo)
|
||||
- new_zoo = pickle.loads(pickled_zoo)
|
||||
- self.assertEqual(sorted(zoo.__dict__.keys()), sorted(new_zoo.__dict__.keys()))
|
||||
- new_http = new_zoo._http
|
||||
- self.assertFalse(hasattr(new_http.request, "credentials"))
|
||||
-
|
||||
def test_resumable_media_upload_no_content(self):
|
||||
self.http = HttpMock(datafile("zoo.json"), {"status": "200"})
|
||||
zoo = build("zoo", "v1", http=self.http, static_discovery=False)
|
@@ -1,3 +1,235 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 3 14:58:29 UTC 2023 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
|
||||
|
||||
- Update to version 2.80.0
|
||||
* **analyticsadmin:** Update the api
|
||||
* **analyticshub:** Update the api
|
||||
* **bigquery:** Update the api
|
||||
* **chat:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **chromepolicy:** Update the api
|
||||
* **cloudchannel:** Update the api
|
||||
* **cloudfunctions:** Update the api
|
||||
* **cloudsearch:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **connectors:** Update the api
|
||||
* **containeranalysis:** Update the api
|
||||
* **contentwarehouse:** Update the api
|
||||
* **datamigration:** Update the api
|
||||
* **dataplex:** Update the api
|
||||
* **dataproc:** Update the api
|
||||
* **dialogflow:** Update the api
|
||||
* **firestore:** Update the api
|
||||
* **gkehub:** Update the api
|
||||
* **identitytoolkit:** Update the api
|
||||
* **logging:** Update the api
|
||||
* **monitoring:** Update the api
|
||||
* **policysimulator:** Update the api
|
||||
* **recaptchaenterprise:** Update the api
|
||||
* **sasportal:** Update the api
|
||||
* **servicedirectory:** Update the api
|
||||
* **servicemanagement:** Update the api
|
||||
* **tpu:** Update the api
|
||||
* **transcoder:** Update the api
|
||||
* **vmmigration:** Update the api
|
||||
* **workstations:** Update the api
|
||||
- from version 2.79.0
|
||||
* **alertcenter:** Update the api
|
||||
* **androidenterprise:** Update the api
|
||||
* **baremetalsolution:** Update the api
|
||||
* **batch:** Update the api
|
||||
* **chat:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **cloudsearch:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **content:** Update the api
|
||||
* **drive:** Update the api
|
||||
* **healthcare:** Update the api
|
||||
* **logging:** Update the api
|
||||
* **monitoring:** Update the api
|
||||
* **networksecurity:** Update the api
|
||||
* **ondemandscanning:** Update the api
|
||||
* **paymentsresellersubscription:** Update the api
|
||||
* **privateca:** Update the api
|
||||
* **redis:** Update the api
|
||||
* **safebrowsing:** Update the api
|
||||
* **serviceconsumermanagement:** Update the api
|
||||
* **servicecontrol:** Update the api
|
||||
* **servicenetworking:** Update the api
|
||||
* **serviceusage:** Update the api
|
||||
- from version 2.78.0
|
||||
* **androidpublisher:** Update the api
|
||||
* **appengine:** Update the api
|
||||
* **artifactregistry:** Update the api
|
||||
* **baremetalsolution:** Update the api
|
||||
* **beyondcorp:** Update the api
|
||||
* **books:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **chromepolicy:** Update the api
|
||||
* **clouddeploy:** Update the api
|
||||
* **cloudsearch:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **dataproc:** Update the api
|
||||
* **datastream:** Update the api
|
||||
* **dialogflow:** Update the api
|
||||
* **gkehub:** Update the api
|
||||
* **healthcare:** Update the api
|
||||
* **iam:** Update the api
|
||||
* **privateca:** Update the api
|
||||
* **prod_tt_sasportal:** Update the api
|
||||
* **retail:** Update the api
|
||||
* **run:** Update the api
|
||||
* **servicecontrol:** Update the api
|
||||
- from version 2.77.0
|
||||
* **analyticsadmin:** Update the api
|
||||
* **apigeeregistry:** Update the api
|
||||
* **artifactregistry:** Update the api
|
||||
* **batch:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **chromeuxreport:** Update the api
|
||||
* **cloudbilling:** Update the api
|
||||
* **cloudsearch:** Update the api
|
||||
* **connectors:** Update the api
|
||||
* **contactcenterinsights:** Update the api
|
||||
* **contentwarehouse:** Update the api
|
||||
* **dataform:** Update the api
|
||||
* **datamigration:** Update the api
|
||||
* **documentai:** Update the api
|
||||
* **firebasehosting:** Update the api
|
||||
* **firebase:** Update the api
|
||||
* **gkehub:** Update the api
|
||||
* **manufacturers:** Update the api
|
||||
* **metastore:** Update the api
|
||||
* **notebooks:** Update the api
|
||||
* **safebrowsing:** Update the api
|
||||
* **servicecontrol:** Update the api
|
||||
* **tpu:** Update the api
|
||||
* **workstations:** Update the api
|
||||
- from version 2.76.0
|
||||
* **analyticsadmin:** Update the api
|
||||
* **container:** Update the api
|
||||
* **datacatalog:** Update the api
|
||||
* **identitytoolkit:** Update the api
|
||||
* **integrations:** Update the api
|
||||
* **monitoring:** Update the api
|
||||
* **recaptchaenterprise:** Update the api
|
||||
- from version 2.75.0
|
||||
* **apigeeregistry:** Update the api
|
||||
* **batch:** Update the api
|
||||
* **bigqueryreservation:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **cloudsearch:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **contentwarehouse:** Update the api
|
||||
* **dataflow:** Update the api
|
||||
* **documentai:** Update the api
|
||||
* **file:** Update the api
|
||||
* **gkehub:** Update the api
|
||||
* **integrations:** Update the api
|
||||
* **mybusinessverifications:** Update the api
|
||||
* **retail:** Update the api
|
||||
* **sts:** Update the api
|
||||
* **testing:** Update the api
|
||||
* **workflowexecutions:** Update the api
|
||||
* **workstations:** Update the api
|
||||
- from version 2.74.0
|
||||
* **analyticshub:** Update the api
|
||||
* **appengine:** Update the api
|
||||
* **baremetalsolution:** Update the api
|
||||
* **bigquery:** Update the api
|
||||
* **cloudbuild:** Update the api
|
||||
* **clouddeploy:** Update the api
|
||||
* **cloudidentity:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **datacatalog:** Update the api
|
||||
* **dataplex:** Update the api
|
||||
* **datastore:** Update the api
|
||||
* **displayvideo:** Update the api
|
||||
* **firebase:** Update the api
|
||||
* **firestore:** Update the api
|
||||
* **gkehub:** Update the api
|
||||
* **identitytoolkit:** Update the api
|
||||
* **integrations:** Update the api
|
||||
* **kmsinventory:** Update the api
|
||||
* **orgpolicy:** Update the api
|
||||
* **pubsub:** Update the api
|
||||
* **retail:** Update the api
|
||||
* **run:** Update the api
|
||||
* **servicenetworking:** Update the api
|
||||
* **androidpublisher:** Update the api
|
||||
- from version 2.73.0
|
||||
* **admob:** Update the api
|
||||
* **androidenterprise:** Update the api
|
||||
* **appengine:** Update the api
|
||||
* **batch:** Update the api
|
||||
* **cloudtasks:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **content:** Update the api
|
||||
* **dataform:** Update the api
|
||||
* **datamigration:** Update the api
|
||||
* **datastore:** Update the api
|
||||
* **dialogflow:** Update the api
|
||||
* **discoveryengine:** Update the api
|
||||
* **documentai:** Update the api
|
||||
* **firestore:** Update the api
|
||||
* **managedidentities:** Update the api
|
||||
* **metastore:** Update the api
|
||||
* **playdeveloperreporting:** Update the api
|
||||
* **recommender:** Update the api
|
||||
* **streetviewpublish:** Update the api
|
||||
* **translate:** Update the api
|
||||
* **vmmigration:** Update the api
|
||||
* **workstations:** Update the api
|
||||
- from version 2.72.0
|
||||
* **admin:** Update the api
|
||||
* **baremetalsolution:** Update the api
|
||||
* **blogger:** Update the api
|
||||
* **chat:** Update the api
|
||||
* **chromemanagement:** Update the api
|
||||
* **chromepolicy:** Update the api
|
||||
* **cloudidentity:** Update the api
|
||||
* **container:** Update the api
|
||||
* **contentwarehouse:** Update the api
|
||||
* **datacatalog:** Update the api
|
||||
* **dataflow:** Update the api
|
||||
* **datapipelines:** Update the api
|
||||
* **dataplex:** Update the api
|
||||
* **dialogflow:** Update the api
|
||||
* **displayvideo:** Update the api
|
||||
* **file:** Update the api
|
||||
* **integrations:** Update the api
|
||||
* **playintegrity:** Update the api
|
||||
* **prod_tt_sasportal:** Update the api
|
||||
* **run:** Update the api
|
||||
* **sasportal:** Update the api
|
||||
* **texttospeech:** Update the api
|
||||
* **bigquery:** Update the api
|
||||
- from version 2.71.0
|
||||
* **accesscontextmanager:** Update the api
|
||||
* **alertcenter:** Update the api
|
||||
* **androidenterprise:** Update the api
|
||||
* **apigee:** Update the api
|
||||
* **batch:** Update the api
|
||||
* **clouddeploy:** Update the api
|
||||
* **compute:** Update the api
|
||||
* **container:** Update the api
|
||||
* **contentwarehouse:** Update the api
|
||||
* **datafusion:** Update the api
|
||||
* **datamigration:** Update the api
|
||||
* **datapipelines:** Update the api
|
||||
* **dataplex:** Update the api
|
||||
* **dataproc:** Update the api
|
||||
* **datastream:** Update the api
|
||||
* **firestore:** Update the api
|
||||
* **gmail:** Update the api
|
||||
* **notebooks:** Update the api
|
||||
* **retail:** Update the api
|
||||
* **speech:** Update the api
|
||||
* **texttospeech:** Update the api
|
||||
* **workloadmanager:** Update the api
|
||||
- Drop patch to disable oauth2client tests, fixed upstream
|
||||
* opensuse-remove-oauth2client-tests.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 5 19:36:47 UTC 2023 - Yogalakshmi Arunachalam <yarunachalam@suse.com>
|
||||
|
||||
|
@@ -18,15 +18,12 @@
|
||||
|
||||
%define skip_python2 1
|
||||
Name: python-google-api-python-client
|
||||
Version: 2.70.0
|
||||
Version: 2.80.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
|
||||
# PATCH-FIX-OPENSUSE opensuse-remove-oauth2client-tests.patch -- upstream wants to support and test deprecated oauth2client indefinitely, but
|
||||
# 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.19.0}
|
||||
BuildRequires: %{python_module google-auth-httplib2 >= 0.1.0}
|
||||
|
Reference in New Issue
Block a user