Compare commits

...

1 Commits
main ... 1.1

5 changed files with 267 additions and 129 deletions

BIN
google-api-core-2.15.0.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

BIN
google_api_core-2.24.1.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -0,0 +1,240 @@
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/future/test_async_future.py google-api-core-2.11.0/tests/asyncio/future/test_async_future.py
--- google-api-core-2.11.0.orig/tests/asyncio/future/test_async_future.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/future/test_async_future.py 2022-12-02 11:02:43.002329239 +0100
@@ -14,7 +14,7 @@
import asyncio
-import mock
+from unittest import mock
import pytest
from google.api_core import exceptions
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/gapic/test_method_async.py google-api-core-2.11.0/tests/asyncio/gapic/test_method_async.py
--- google-api-core-2.11.0.orig/tests/asyncio/gapic/test_method_async.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/gapic/test_method_async.py 2022-12-02 11:02:42.994329152 +0100
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/operations_v1/test_operations_async_client.py google-api-core-2.11.0/tests/asyncio/operations_v1/test_operations_async_client.py
--- google-api-core-2.11.0.orig/tests/asyncio/operations_v1/test_operations_async_client.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/operations_v1/test_operations_async_client.py 2022-12-02 11:02:42.990329109 +0100
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/test_grpc_helpers_async.py google-api-core-2.11.0/tests/asyncio/test_grpc_helpers_async.py
--- google-api-core-2.11.0.orig/tests/asyncio/test_grpc_helpers_async.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/test_grpc_helpers_async.py 2022-12-02 11:02:42.982329022 +0100
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest # noqa: I202
try:
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/test_operation_async.py google-api-core-2.11.0/tests/asyncio/test_operation_async.py
--- google-api-core-2.11.0.orig/tests/asyncio/test_operation_async.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/test_operation_async.py 2022-12-02 11:02:43.002329239 +0100
@@ -13,7 +13,7 @@
# limitations under the License.
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/test_page_iterator_async.py google-api-core-2.11.0/tests/asyncio/test_page_iterator_async.py
--- google-api-core-2.11.0.orig/tests/asyncio/test_page_iterator_async.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/test_page_iterator_async.py 2022-12-02 11:02:42.982329022 +0100
@@ -14,7 +14,7 @@
import inspect
-import mock
+from unittest import mock
import pytest
from google.api_core import page_iterator_async
diff -Nru google-api-core-2.11.0.orig/tests/asyncio/test_retry_async.py google-api-core-2.11.0/tests/asyncio/test_retry_async.py
--- google-api-core-2.11.0.orig/tests/asyncio/test_retry_async.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/asyncio/test_retry_async.py 2022-12-02 11:02:42.986329066 +0100
@@ -15,7 +15,7 @@
import datetime
import re
-import mock
+from unittest import mock
import pytest
from google.api_core import exceptions
diff -Nru google-api-core-2.11.0.orig/tests/unit/future/test__helpers.py google-api-core-2.11.0/tests/unit/future/test__helpers.py
--- google-api-core-2.11.0.orig/tests/unit/future/test__helpers.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/future/test__helpers.py 2022-12-02 11:02:43.070329976 +0100
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
from google.api_core.future import _helpers
diff -Nru google-api-core-2.11.0.orig/tests/unit/future/test_polling.py google-api-core-2.11.0/tests/unit/future/test_polling.py
--- google-api-core-2.11.0.orig/tests/unit/future/test_polling.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/future/test_polling.py 2022-12-02 11:02:43.070329976 +0100
@@ -16,7 +16,7 @@
import threading
import time
-import mock
+from unittest import mock
import pytest
from google.api_core import exceptions, retry
diff -Nru google-api-core-2.11.0.orig/tests/unit/gapic/test_method.py google-api-core-2.11.0/tests/unit/gapic/test_method.py
--- google-api-core-2.11.0.orig/tests/unit/gapic/test_method.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/gapic/test_method.py 2022-12-02 11:02:43.054329803 +0100
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/unit/operations_v1/test_operations_rest_client.py google-api-core-2.11.0/tests/unit/operations_v1/test_operations_rest_client.py
--- google-api-core-2.11.0.orig/tests/unit/operations_v1/test_operations_rest_client.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/operations_v1/test_operations_rest_client.py 2022-12-02 11:02:43.038329629 +0100
@@ -15,7 +15,7 @@
#
import os
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_bidi.py google-api-core-2.11.0/tests/unit/test_bidi.py
--- google-api-core-2.11.0.orig/tests/unit/test_bidi.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_bidi.py 2022-12-02 11:02:43.010329326 +0100
@@ -17,7 +17,7 @@
import queue
import threading
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_exceptions.py google-api-core-2.11.0/tests/unit/test_exceptions.py
--- google-api-core-2.11.0.orig/tests/unit/test_exceptions.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_exceptions.py 2022-12-02 11:02:43.050329759 +0100
@@ -15,7 +15,7 @@
import http.client
import json
-import mock
+from unittest import mock
import pytest
import requests
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_extended_operation.py google-api-core-2.11.0/tests/unit/test_extended_operation.py
--- google-api-core-2.11.0.orig/tests/unit/test_extended_operation.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_extended_operation.py 2022-12-02 11:02:43.022329456 +0100
@@ -16,7 +16,7 @@
import enum
import typing
-import mock
+from unittest import mock
import pytest
from google.api_core import exceptions
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_grpc_helpers.py google-api-core-2.11.0/tests/unit/test_grpc_helpers.py
--- google-api-core-2.11.0.orig/tests/unit/test_grpc_helpers.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_grpc_helpers.py 2022-12-02 11:02:43.034329586 +0100
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_operation.py google-api-core-2.11.0/tests/unit/test_operation.py
--- google-api-core-2.11.0.orig/tests/unit/test_operation.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_operation.py 2022-12-02 11:02:43.018329413 +0100
@@ -13,7 +13,7 @@
# limitations under the License.
-import mock
+from unittest import mock
import pytest
try:
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_page_iterator.py google-api-core-2.11.0/tests/unit/test_page_iterator.py
--- google-api-core-2.11.0.orig/tests/unit/test_page_iterator.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_page_iterator.py 2022-12-02 11:02:43.014329369 +0100
@@ -15,7 +15,7 @@
import math
import types
-import mock
+from unittest import mock
import pytest
from google.api_core import page_iterator
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_path_template.py google-api-core-2.11.0/tests/unit/test_path_template.py
--- google-api-core-2.11.0.orig/tests/unit/test_path_template.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_path_template.py 2022-12-02 11:02:43.010329326 +0100
@@ -14,7 +14,7 @@
from __future__ import unicode_literals
-import mock
+from unittest import mock
import pytest
from google.api import auth_pb2
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_retry.py google-api-core-2.11.0/tests/unit/test_retry.py
--- google-api-core-2.11.0.orig/tests/unit/test_retry.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_retry.py 2022-12-02 11:02:43.046329716 +0100
@@ -16,7 +16,7 @@
import itertools
import re
-import mock
+from unittest import mock
import pytest
import requests.exceptions
diff -Nru google-api-core-2.11.0.orig/tests/unit/test_timeout.py google-api-core-2.11.0/tests/unit/test_timeout.py
--- google-api-core-2.11.0.orig/tests/unit/test_timeout.py 2022-12-01 16:29:15.000000000 +0100
+++ google-api-core-2.11.0/tests/unit/test_timeout.py 2022-12-02 11:02:43.066329933 +0100
@@ -15,7 +15,7 @@
import datetime
import itertools
-import mock
+from unittest import mock
from google.api_core import timeout as timeouts

View File

@ -1,113 +1,3 @@
-------------------------------------------------------------------
Mon Feb 3 09:50:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.24.1
* Memory leak in bidi classes (#770)
* Resolve the issue where rpc timeout of 0 is used when timeout expires (#776)
* Add warnings regarding consuming externally sourced credentials (#783)
-------------------------------------------------------------------
Mon Jan 6 15:21:38 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.24.0
* Add automatic logging config to support debug logging (#754)
* Update recognized logging fields (#766)
-------------------------------------------------------------------
Wed Dec 4 14:22:59 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.23.0
* Migrate to pyproject.toml (#736)
- from version 2.22.0
* Add support for python 3.13 (#696)
* Add type hints to ClientOptions (#735)
* Improve `Any` decode error (#712)
* Require proto-plus >= 1.25.0 for Python 3.13 (#740)
* Switch to unittest.mock from mock (#713)
- Drop python-google-api-core-no-mock.patch, merged upstream
-------------------------------------------------------------------
Tue Oct 29 04:42:29 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Resurrect python-google-api-core-no-mock.patch and refresh it, it is
still required until 2.22.0.
-------------------------------------------------------------------
Mon Oct 28 12:59:16 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.21.0
* Add support for asynchronous long running operations (#724)
- Drop python-google-api-core-no-mock.patch, merged upstream
-------------------------------------------------------------------
Mon Oct 7 11:43:06 UTC 2024 - Adrian Schröter <adrian@suse.de>
- fix requirements
* Accepts new protobuf version 5.28 now.
-------------------------------------------------------------------
Wed Oct 2 04:03:30 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Remove unneeded BuildRequires.
- Refreshed patches:
* python-google-api-core-no-mock.patch
-------------------------------------------------------------------
Thu Sep 26 13:32:08 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.20.0
* Add async unsupported paramater exception (#694)
* Add support for asynchronous rest streaming (#686)
* Add support for creating exceptions from an asynchronous response (#688)
-------------------------------------------------------------------
Tue Sep 3 11:00:13 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 2.19.2
* Fail gracefully if could not import `rpc_status` module (#680)
- Adjust upstream source name in spec file
-------------------------------------------------------------------
Sat Jun 29 19:31:29 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 2.19.1:
* Add support for protobuf 5.x
* Ignore unknown fields in rest streaming.
-------------------------------------------------------------------
Thu May 16 14:03:49 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.19.0
* Add google.api_core.version_header (#638)
- from version 2.18.0
* Add common logic for supporting universe domain (#621)
* Add _registered_method to grpc ChannelStub (#614)
* **deps:** Require proto-plus >= 1.22.3 (#626)
- from version 2.17.1
* Resolve issue handling protobuf responses in rest streaming (#604)
- from version 2.17.0
* Add attempt_direct_path argument to create_channel (#583)
* Retry constructors methods support None (#592)
- from version 2.16.2
* Spelling error `a,out` -> `amount` (#596)
- from version 2.16.1
* Fix broken import for google.api_core.retry_async.AsyncRetry (#587)
- from version 2.16.0
* Retry and retry_async support streaming rpcs (#495)
- Refresh patches for new version
* python-google-api-core-no-mock.patch
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Tue Mar 5 20:20:17 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Obsolete Python 3.6 build for SLE 15 SP4 and openSUSE Leap 15.4 and later
-------------------------------------------------------------------
Mon Feb 26 16:23:40 UTC 2024 - Robert Schweikert <rjschwei@suse.com>
- Version update in SLE 15 SP4 and later (jsc#PED-6697)
-------------------------------------------------------------------
Sat Dec 16 19:25:47 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-google-api-core
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -26,36 +26,42 @@
%endif
%{?sle15_python_module_pythons}
Name: python-google-api-core
Version: 2.24.1
Version: 2.15.0
Release: 0
Summary: Google API client core library
License: Apache-2.0
URL: https://github.com/googleapis/python-api-core
Source: https://files.pythonhosted.org/packages/source/g/google_api_core/google_api_core-%{version}.tar.gz
BuildRequires: %{python_module googleapis-common-protos >= 1.56.2}
Source: https://files.pythonhosted.org/packages/source/g/google-api-core/google-api-core-%{version}.tar.gz
# https://github.com/googleapis/python-api-core/issues/377
Patch0: python-google-api-core-no-mock.patch
BuildRequires: %{python_module google-auth >= 2.14.1}
BuildRequires: %{python_module googleapis-common-protos >= 1.53.0}
BuildRequires: %{python_module grpcio >= 1.33.2}
BuildRequires: %{python_module grpcio-status >= 1.33.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module protobuf >= 3.19.5 with %python-protobuf < 5.0.0.dev0}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module requests >= 2.18.0}
BuildRequires: %{python_module setuptools >= 40.3.0}
BuildRequires: %{python_module wheel}
%if 0%{?sle_version} >= 150400
Obsoletes: python3-google-api-core < %{version}
%endif
# START TESTING SECTION
%if %{with test}
BuildRequires: %{python_module google-api-core = %{version}}
BuildRequires: %{python_module google-api-core >= %{version}}
BuildRequires: %{python_module proto-plus}
BuildRequires: %{python_module pytest-asyncio}
BuildRequires: %{python_module pytest}
%endif
# END TESTING SECTION
# END TESTIN SECTION
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-google-auth >= 2.14.1
Requires: python-googleapis-common-protos >= 1.56.2
Requires: python-grpcio >= 1.49.1
Requires: python-grpcio-status >= 1.49.1
Requires: python-googleapis-common-protos >= 1.53.0
Requires: python-grpcio >= 1.33.2
Requires: python-grpcio-status >= 1.33.2
Requires: python-pytz
Requires: python-requests >= 2.18.0
Requires: (python-proto-plus >= 1.25.0 with python-proto-plus < 2.0.0dev0)
Requires: (python-protobuf >= 3.19.5 with python-protobuf < 6.0.0.dev0)
Requires: python-setuptools >= 40.3.0
Requires: (python-protobuf >= 3.19.5 with python-protobuf < 5.0.0.dev0)
BuildArch: noarch
%python_subpackages
@ -63,7 +69,7 @@ BuildArch: noarch
Core Library for Google Client Libraries.
%prep
%autosetup -p1 -n google_api_core-%{version}
%autosetup -p1 -n google-api-core-%{version}
%build
%pyproject_wheel
@ -79,12 +85,14 @@ Core Library for Google Client Libraries.
%pytest
%endif
%clean
%if !%{with test}
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/google/api_core
%{python_sitelib}/google_api_core-%{version}.dist-info
%{python_sitelib}/google_api_core-%{version}*-info
%endif
%changelog