Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5084ef0

Browse filesBrowse files
authored
feat: regenerate automl using generator v1.32.0 (#17143)
Updates post processing to account for dropping support for Python 3.7, 3.8, 3.9 and impacts that has on using 3.10 for lower bounds testing. Bumps `google-auth` to `>=2.23.3` to prevent dependency resolution issue when used in sync with `google-cloud-storage` Corrects a deficiency in the constraints template that did not capture all the necessary bounds from `setup.py` Partially corrects #17153 🦕
1 parent 44c93d2 commit 5084ef0
Copy full SHA for 5084ef0

38 files changed

+278-340Lines changed: 278 additions & 340 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.librarian/generator-input/client-post-processing/integrate-isolated-handwritten-code.yaml‎

Copy file name to clipboardExpand all lines: .librarian/generator-input/client-post-processing/integrate-isolated-handwritten-code.yaml
+20-2Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,28 @@ replacements:
199199
after: |
200200
extras = {
201201
"libcst": "libcst >= 0.2.5",
202-
"pandas": ["pandas>=1.1.3"],
203-
"storage": ["google-cloud-storage >=2.14.0, <4.0.0"],
202+
"pandas": ["pandas>=1.3.4"],
203+
"storage": [
204+
"google-cloud-storage >=2.14.0, <4.0.0",
205+
"google-auth >= 2.23.3, <3.0.0"
206+
],
204207
}
205208
count: 1
209+
- paths: [
210+
packages/google-cloud-automl/testing/constraints-3.10.txt,
211+
]
212+
before: |
213+
google-api-core==2.17.1
214+
google-auth==2.14.1
215+
after: |
216+
google-api-core==2.17.1
217+
google-cloud-storage==2.14.0
218+
libcst==0.2.5
219+
pandas==1.3.4
220+
# numpy is a dependency of pandas
221+
numpy==1.21.3
222+
google-auth==2.23.3
223+
count: 1
206224
- paths: [
207225
packages/google-cloud-automl/docs/automl_v1beta1/services_.rst,
208226
]
Collapse file

‎librarian.yaml‎

Copy file name to clipboardExpand all lines: librarian.yaml
-1Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ libraries:
433433
- google/cloud/automl_v1beta1/services/tables/__init__.py
434434
- google/cloud/automl_v1beta1/services/tables/gcs_client.py
435435
- google/cloud/automl_v1beta1/services/tables/tables_client.py
436-
skip_generate: true
437436
python:
438437
library_type: GAPIC_COMBO
439438
metadata_name_override: automl
Collapse file

‎packages/google-cloud-automl/docs/conf.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-automl/docs/conf.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -83,7 +83,7 @@
8383

8484
# General information about the project.
8585
project = "google-cloud-automl"
86-
copyright = "2025, Google, LLC"
86+
copyright = "2026, Google, LLC"
8787
author = "Google APIs"
8888

8989
# The version info for the project you're documenting, acts as replacement for
Collapse file

‎packages/google-cloud-automl/google/cloud/automl_v1/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-automl/google/cloud/automl_v1/__init__.py
+4-21Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -21,13 +21,7 @@
2121

2222
__version__ = package_version.__version__
2323

24-
if sys.version_info >= (3, 8): # pragma: NO COVER
25-
from importlib import metadata
26-
else: # pragma: NO COVER
27-
# TODO(https://github.com/googleapis/python-api-core/issues/835): Remove
28-
# this code path once we drop support for Python 3.7
29-
import importlib_metadata as metadata
30-
24+
from importlib import metadata
3125

3226
from .services.auto_ml import AutoMlAsyncClient, AutoMlClient
3327
from .services.prediction_service import (
@@ -149,28 +143,17 @@
149143
# An older version of api_core is installed which does not define the
150144
# functions above. We do equivalent checks manually.
151145
try:
152-
import sys
153146
import warnings
154147

155148
_py_version_str = sys.version.split()[0]
156149
_package_label = "google.cloud.automl_v1"
157-
if sys.version_info < (3, 9):
150+
if sys.version_info < (3, 10):
158151
warnings.warn(
159152
"You are using a non-supported Python version "
160153
+ f"({_py_version_str}). Google will not post any further "
161154
+ f"updates to {_package_label} supporting this Python version. "
162155
+ "Please upgrade to the latest Python version, or at "
163-
+ f"least to Python 3.9, and then update {_package_label}.",
164-
FutureWarning,
165-
)
166-
if sys.version_info[:2] == (3, 9):
167-
warnings.warn(
168-
f"You are using a Python version ({_py_version_str}) "
169-
+ f"which Google will stop supporting in {_package_label} in "
170-
+ "January 2026. Please "
171-
+ "upgrade to the latest Python version, or at "
172-
+ "least to Python 3.10, before then, and "
173-
+ f"then update {_package_label}.",
156+
+ f"least to Python 3.10, and then update {_package_label}.",
174157
FutureWarning,
175158
)
176159

Collapse file

‎packages/google-cloud-automl/google/cloud/automl_v1/services/auto_ml/async_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-automl/google/cloud/automl_v1/services/auto_ml/async_client.py
+19-19Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -365,11 +365,11 @@ async def sample_create_dataset():
365365
)
366366
367367
# Make the request
368-
operation = client.create_dataset(request=request)
368+
operation = await client.create_dataset(request=request)
369369
370370
print("Waiting for operation to complete...")
371371
372-
response = (await operation).result()
372+
response = await operation.result()
373373
374374
# Handle the response
375375
print(response)
@@ -869,11 +869,11 @@ async def sample_delete_dataset():
869869
)
870870
871871
# Make the request
872-
operation = client.delete_dataset(request=request)
872+
operation = await client.delete_dataset(request=request)
873873
874874
print("Waiting for operation to complete...")
875875
876-
response = (await operation).result()
876+
response = await operation.result()
877877
878878
# Handle the response
879879
print(response)
@@ -1016,11 +1016,11 @@ async def sample_import_data():
10161016
)
10171017
10181018
# Make the request
1019-
operation = client.import_data(request=request)
1019+
operation = await client.import_data(request=request)
10201020
10211021
print("Waiting for operation to complete...")
10221022
1023-
response = (await operation).result()
1023+
response = await operation.result()
10241024
10251025
# Handle the response
10261026
print(response)
@@ -1168,11 +1168,11 @@ async def sample_export_data():
11681168
)
11691169
11701170
# Make the request
1171-
operation = client.export_data(request=request)
1171+
operation = await client.export_data(request=request)
11721172
11731173
print("Waiting for operation to complete...")
11741174
1175-
response = (await operation).result()
1175+
response = await operation.result()
11761176
11771177
# Handle the response
11781178
print(response)
@@ -1424,11 +1424,11 @@ async def sample_create_model():
14241424
)
14251425
14261426
# Make the request
1427-
operation = client.create_model(request=request)
1427+
operation = await client.create_model(request=request)
14281428
14291429
print("Waiting for operation to complete...")
14301430
1431-
response = (await operation).result()
1431+
response = await operation.result()
14321432
14331433
# Handle the response
14341434
print(response)
@@ -1796,11 +1796,11 @@ async def sample_delete_model():
17961796
)
17971797
17981798
# Make the request
1799-
operation = client.delete_model(request=request)
1799+
operation = await client.delete_model(request=request)
18001800
18011801
print("Waiting for operation to complete...")
18021802
1803-
response = (await operation).result()
1803+
response = await operation.result()
18041804
18051805
# Handle the response
18061806
print(response)
@@ -2064,11 +2064,11 @@ async def sample_deploy_model():
20642064
)
20652065
20662066
# Make the request
2067-
operation = client.deploy_model(request=request)
2067+
operation = await client.deploy_model(request=request)
20682068
20692069
print("Waiting for operation to complete...")
20702070
2071-
response = (await operation).result()
2071+
response = await operation.result()
20722072
20732073
# Handle the response
20742074
print(response)
@@ -2205,11 +2205,11 @@ async def sample_undeploy_model():
22052205
)
22062206
22072207
# Make the request
2208-
operation = client.undeploy_model(request=request)
2208+
operation = await client.undeploy_model(request=request)
22092209
22102210
print("Waiting for operation to complete...")
22112211
2212-
response = (await operation).result()
2212+
response = await operation.result()
22132213
22142214
# Handle the response
22152215
print(response)
@@ -2350,11 +2350,11 @@ async def sample_export_model():
23502350
)
23512351
23522352
# Make the request
2353-
operation = client.export_model(request=request)
2353+
operation = await client.export_model(request=request)
23542354
23552355
print("Waiting for operation to complete...")
23562356
2357-
response = (await operation).result()
2357+
response = await operation.result()
23582358
23592359
# Handle the response
23602360
print(response)
Collapse file

‎packages/google-cloud-automl/google/cloud/automl_v1/services/prediction_service/async_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-automl/google/cloud/automl_v1/services/prediction_service/async_client.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2025 Google LLC
2+
# Copyright 2026 Google LLC
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -570,11 +570,11 @@ async def sample_batch_predict():
570570
)
571571
572572
# Make the request
573-
operation = client.batch_predict(request=request)
573+
operation = await client.batch_predict(request=request)
574574
575575
print("Waiting for operation to complete...")
576576
577-
response = (await operation).result()
577+
response = await operation.result()
578578
579579
# Handle the response
580580
print(response)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.