google-api-core 2.30.1__tar.gz → 2.30.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. {google_api_core-2.30.1/google_api_core.egg-info → google_api_core-2.30.3}/PKG-INFO +2 -2
  2. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/_python_version_support.py +15 -5
  3. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/version.py +1 -1
  4. {google_api_core-2.30.1 → google_api_core-2.30.3/google_api_core.egg-info}/PKG-INFO +2 -2
  5. {google_api_core-2.30.1 → google_api_core-2.30.3}/google_api_core.egg-info/requires.txt +1 -1
  6. {google_api_core-2.30.1 → google_api_core-2.30.3}/pyproject.toml +1 -1
  7. {google_api_core-2.30.1 → google_api_core-2.30.3}/LICENSE +0 -0
  8. {google_api_core-2.30.1 → google_api_core-2.30.3}/MANIFEST.in +0 -0
  9. {google_api_core-2.30.1 → google_api_core-2.30.3}/README.rst +0 -0
  10. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/__init__.py +0 -0
  11. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/_python_package_support.py +0 -0
  12. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/_rest_streaming_base.py +0 -0
  13. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/bidi.py +0 -0
  14. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/bidi_async.py +0 -0
  15. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/bidi_base.py +0 -0
  16. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/client_info.py +0 -0
  17. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/client_logging.py +0 -0
  18. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/client_options.py +0 -0
  19. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/datetime_helpers.py +0 -0
  20. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/exceptions.py +0 -0
  21. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/extended_operation.py +0 -0
  22. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/future/__init__.py +0 -0
  23. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/future/_helpers.py +0 -0
  24. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/future/async_future.py +0 -0
  25. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/future/base.py +0 -0
  26. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/future/polling.py +0 -0
  27. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/__init__.py +0 -0
  28. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/client_info.py +0 -0
  29. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/config.py +0 -0
  30. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/config_async.py +0 -0
  31. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/method.py +0 -0
  32. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/method_async.py +0 -0
  33. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/gapic_v1/routing_header.py +0 -0
  34. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/general_helpers.py +0 -0
  35. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/grpc_helpers.py +0 -0
  36. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/grpc_helpers_async.py +0 -0
  37. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/iam.py +0 -0
  38. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operation.py +0 -0
  39. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operation_async.py +0 -0
  40. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/__init__.py +0 -0
  41. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/abstract_operations_base_client.py +0 -0
  42. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/abstract_operations_client.py +0 -0
  43. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/operations_async_client.py +0 -0
  44. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/operations_client.py +0 -0
  45. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/operations_client_config.py +0 -0
  46. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/operations_rest_client_async.py +0 -0
  47. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/pagers.py +0 -0
  48. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/pagers_async.py +0 -0
  49. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/pagers_base.py +0 -0
  50. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/transports/__init__.py +0 -0
  51. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/transports/base.py +0 -0
  52. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/transports/rest.py +0 -0
  53. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/operations_v1/transports/rest_asyncio.py +0 -0
  54. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/page_iterator.py +0 -0
  55. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/page_iterator_async.py +0 -0
  56. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/path_template.py +0 -0
  57. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/protobuf_helpers.py +0 -0
  58. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/py.typed +0 -0
  59. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/rest_helpers.py +0 -0
  60. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/rest_streaming.py +0 -0
  61. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/rest_streaming_async.py +0 -0
  62. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/__init__.py +0 -0
  63. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/retry_base.py +0 -0
  64. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/retry_streaming.py +0 -0
  65. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/retry_streaming_async.py +0 -0
  66. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/retry_unary.py +0 -0
  67. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry/retry_unary_async.py +0 -0
  68. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/retry_async.py +0 -0
  69. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/timeout.py +0 -0
  70. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/universe.py +0 -0
  71. {google_api_core-2.30.1 → google_api_core-2.30.3}/google/api_core/version_header.py +0 -0
  72. {google_api_core-2.30.1 → google_api_core-2.30.3}/google_api_core.egg-info/SOURCES.txt +0 -0
  73. {google_api_core-2.30.1 → google_api_core-2.30.3}/google_api_core.egg-info/dependency_links.txt +0 -0
  74. {google_api_core-2.30.1 → google_api_core-2.30.3}/google_api_core.egg-info/top_level.txt +0 -0
  75. {google_api_core-2.30.1 → google_api_core-2.30.3}/setup.cfg +0 -0
  76. {google_api_core-2.30.1 → google_api_core-2.30.3}/setup.py +0 -0
  77. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/__init__.py +0 -0
  78. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/__init__.py +0 -0
  79. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/future/__init__.py +0 -0
  80. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/future/test_async_future.py +0 -0
  81. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/gapic/test_config_async.py +0 -0
  82. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/gapic/test_method_async.py +0 -0
  83. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/operations_v1/__init__.py +0 -0
  84. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/operations_v1/test_operations_async_client.py +0 -0
  85. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/retry/__init__.py +0 -0
  86. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/retry/test_retry_streaming_async.py +0 -0
  87. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/retry/test_retry_unary_async.py +0 -0
  88. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/test_bidi_async.py +0 -0
  89. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/test_grpc_helpers_async.py +0 -0
  90. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/test_operation_async.py +0 -0
  91. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/test_page_iterator_async.py +0 -0
  92. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/asyncio/test_rest_streaming_async.py +0 -0
  93. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/helpers.py +0 -0
  94. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/__init__.py +0 -0
  95. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/future/__init__.py +0 -0
  96. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/future/test__helpers.py +0 -0
  97. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/future/test_polling.py +0 -0
  98. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/gapic/test_client_info.py +0 -0
  99. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/gapic/test_config.py +0 -0
  100. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/gapic/test_method.py +0 -0
  101. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/gapic/test_routing_header.py +0 -0
  102. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/operations_v1/__init__.py +0 -0
  103. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/operations_v1/test_operations_client.py +0 -0
  104. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/operations_v1/test_operations_rest_client.py +0 -0
  105. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/retry/__init__.py +0 -0
  106. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/retry/test_retry_base.py +0 -0
  107. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/retry/test_retry_imports.py +0 -0
  108. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/retry/test_retry_streaming.py +0 -0
  109. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/retry/test_retry_unary.py +0 -0
  110. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_bidi.py +0 -0
  111. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_client_info.py +0 -0
  112. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_client_logging.py +0 -0
  113. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_client_options.py +0 -0
  114. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_datetime_helpers.py +0 -0
  115. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_exceptions.py +0 -0
  116. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_extended_operation.py +0 -0
  117. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_grpc_helpers.py +0 -0
  118. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_iam.py +0 -0
  119. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_operation.py +0 -0
  120. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_packaging.py +0 -0
  121. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_page_iterator.py +0 -0
  122. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_path_template.py +0 -0
  123. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_protobuf_helpers.py +0 -0
  124. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_python_package_support.py +0 -0
  125. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_python_version_support.py +0 -0
  126. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_rest_helpers.py +0 -0
  127. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_rest_streaming.py +0 -0
  128. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_timeout.py +0 -0
  129. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_universe.py +0 -0
  130. {google_api_core-2.30.1 → google_api_core-2.30.3}/tests/unit/test_version_header.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-api-core
3
- Version: 2.30.1
3
+ Version: 2.30.3
4
4
  Summary: Google API client core library
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache 2.0
@@ -24,7 +24,7 @@ Requires-Python: >=3.9
24
24
  Description-Content-Type: text/x-rst
25
25
  License-File: LICENSE
26
26
  Requires-Dist: googleapis-common-protos<2.0.0,>=1.63.2
27
- Requires-Dist: protobuf<7.0.0,>=4.25.8
27
+ Requires-Dist: protobuf<8.0.0,>=4.25.8
28
28
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
29
29
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
30
30
  Requires-Dist: google-auth<3.0.0,>=2.14.1
@@ -16,6 +16,7 @@
16
16
 
17
17
  import datetime
18
18
  import enum
19
+ import functools
19
20
  import logging
20
21
  import warnings
21
22
  import sys
@@ -152,15 +153,16 @@ if sys.version_info < (3, 10):
152
153
  else:
153
154
  from importlib import metadata
154
155
 
156
+ @functools.cache
157
+ def _cached_packages_distributions():
158
+ return metadata.packages_distributions()
159
+
155
160
  def _get_pypi_package_name(module_name):
156
161
  """Determine the PyPI package name for a given module name."""
157
162
  try:
158
- # Get the mapping of modules to distributions
159
- module_to_distributions = metadata.packages_distributions()
163
+ module_to_distributions = _cached_packages_distributions()
160
164
 
161
- # Check if the module is found in the mapping
162
165
  if module_name in module_to_distributions: # pragma: NO COVER
163
- # The value is a list of distribution names, take the first one
164
166
  return module_to_distributions[module_name][0]
165
167
  except Exception as e: # pragma: NO COVER
166
168
  _LOGGER.info(
@@ -195,7 +197,6 @@ def check_python_version(
195
197
  The support status of the current Python version.
196
198
  """
197
199
  today = today or datetime.date.today()
198
- package_label, _ = _get_distribution_and_import_packages(package)
199
200
 
200
201
  python_version = sys.version_info
201
202
  version_tuple = (python_version.major, python_version.minor)
@@ -221,7 +222,14 @@ def check_python_version(
221
222
  return f"{version[0]}.{version[1]}"
222
223
  return "at a currently supported version [https://devguide.python.org/versions]"
223
224
 
225
+ # Resolve the pretty package label lazily so we avoid any work on
226
+ # the happy path (supported Python version, no warning needed).
227
+ def get_package_label():
228
+ label, _ = _get_distribution_and_import_packages(package)
229
+ return label
230
+
224
231
  if gapic_end < today:
232
+ package_label = get_package_label()
225
233
  message = _flatten_message(
226
234
  f"""
227
235
  You are using a non-supported Python version ({py_version_str}).
@@ -236,6 +244,7 @@ def check_python_version(
236
244
 
237
245
  eol_date = version_info.python_eol + EOL_GRACE_PERIOD
238
246
  if eol_date <= today <= gapic_end:
247
+ package_label = get_package_label()
239
248
  message = _flatten_message(
240
249
  f"""
241
250
  You are using a Python version ({py_version_str})
@@ -250,6 +259,7 @@ def check_python_version(
250
259
  return PythonVersionStatus.PYTHON_VERSION_EOL
251
260
 
252
261
  if gapic_deprecation <= today <= gapic_end:
262
+ package_label = get_package_label()
253
263
  message = _flatten_message(
254
264
  f"""
255
265
  You are using a Python version ({py_version_str}) which Google will
@@ -12,4 +12,4 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
 
15
- __version__ = "2.30.1"
15
+ __version__ = "2.30.3"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: google-api-core
3
- Version: 2.30.1
3
+ Version: 2.30.3
4
4
  Summary: Google API client core library
5
5
  Author-email: Google LLC <googleapis-packages@google.com>
6
6
  License: Apache 2.0
@@ -24,7 +24,7 @@ Requires-Python: >=3.9
24
24
  Description-Content-Type: text/x-rst
25
25
  License-File: LICENSE
26
26
  Requires-Dist: googleapis-common-protos<2.0.0,>=1.63.2
27
- Requires-Dist: protobuf<7.0.0,>=4.25.8
27
+ Requires-Dist: protobuf<8.0.0,>=4.25.8
28
28
  Requires-Dist: proto-plus<2.0.0,>=1.22.3
29
29
  Requires-Dist: proto-plus<2.0.0,>=1.25.0; python_version >= "3.13"
30
30
  Requires-Dist: google-auth<3.0.0,>=2.14.1
@@ -1,5 +1,5 @@
1
1
  googleapis-common-protos<2.0.0,>=1.63.2
2
- protobuf<7.0.0,>=4.25.8
2
+ protobuf<8.0.0,>=4.25.8
3
3
  proto-plus<2.0.0,>=1.22.3
4
4
  google-auth<3.0.0,>=2.14.1
5
5
  requests<3.0.0,>=2.20.0
@@ -45,7 +45,7 @@ classifiers = [
45
45
  ]
46
46
  dependencies = [
47
47
  "googleapis-common-protos >= 1.63.2, < 2.0.0",
48
- "protobuf >= 4.25.8, < 7.0.0",
48
+ "protobuf >= 4.25.8, < 8.0.0",
49
49
  "proto-plus >= 1.22.3, < 2.0.0",
50
50
  "proto-plus >= 1.25.0, < 2.0.0; python_version >= '3.13'",
51
51
  "google-auth >= 2.14.1, < 3.0.0",