| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 44c93d2 commit 5084ef0
38 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -199,10 +199,28 @@ replacements: | |||
| 199 | 199 | after: | | |
| 200 | 200 | extras = { | |
| 201 | 201 | "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 | + ], | ||
| 204 | 207 | } | |
| 205 | 208 | 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 | ||
| 206 | 224 | - paths: [ | |
| 207 | 225 | packages/google-cloud-automl/docs/automl_v1beta1/services_.rst, | |
| 208 | 226 | ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -433,7 +433,6 @@ libraries: | |||
| 433 | 433 | - google/cloud/automl_v1beta1/services/tables/__init__.py | |
| 434 | 434 | - google/cloud/automl_v1beta1/services/tables/gcs_client.py | |
| 435 | 435 | - google/cloud/automl_v1beta1/services/tables/tables_client.py | |
| 436 | - skip_generate: true | ||
| 437 | 436 | python: | |
| 438 | 437 | library_type: GAPIC_COMBO | |
| 439 | 438 | metadata_name_override: automl | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -83,7 +83,7 @@ | |||
| 83 | 83 | ||
| 84 | 84 | # General information about the project. | |
| 85 | 85 | project = "google-cloud-automl" | |
| 86 | - copyright = "2025, Google, LLC" | ||
| 86 | + copyright = "2026, Google, LLC" | ||
| 87 | 87 | author = "Google APIs" | |
| 88 | 88 | ||
| 89 | 89 | # The version info for the project you're documenting, acts as replacement for | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -21,13 +21,7 @@ | |||
| 21 | 21 | ||
| 22 | 22 | __version__ = package_version.__version__ | |
| 23 | 23 | ||
| 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 | ||
| 31 | 25 | ||
| 32 | 26 | from .services.auto_ml import AutoMlAsyncClient, AutoMlClient | |
| 33 | 27 | from .services.prediction_service import ( | |
@@ -149,28 +143,17 @@ | |||
| 149 | 143 | # An older version of api_core is installed which does not define the | |
| 150 | 144 | # functions above. We do equivalent checks manually. | |
| 151 | 145 | try: | |
| 152 | - import sys | ||
| 153 | 146 | import warnings | |
| 154 | 147 | ||
| 155 | 148 | _py_version_str = sys.version.split()[0] | |
| 156 | 149 | _package_label = "google.cloud.automl_v1" | |
| 157 | - if sys.version_info < (3, 9): | ||
| 150 | + if sys.version_info < (3, 10): | ||
| 158 | 151 | warnings.warn( | |
| 159 | 152 | "You are using a non-supported Python version " | |
| 160 | 153 | + f"({_py_version_str}). Google will not post any further " | |
| 161 | 154 | + f"updates to {_package_label} supporting this Python version. " | |
| 162 | 155 | + "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}.", | ||
| 174 | 157 | FutureWarning, | |
| 175 | 158 | ) | |
| 176 | 159 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -365,11 +365,11 @@ async def sample_create_dataset(): | |||
| 365 | 365 | ) | |
| 366 | 366 | ||
| 367 | 367 | # Make the request | |
| 368 | - operation = client.create_dataset(request=request) | ||
| 368 | + operation = await client.create_dataset(request=request) | ||
| 369 | 369 | ||
| 370 | 370 | print("Waiting for operation to complete...") | |
| 371 | 371 | ||
| 372 | - response = (await operation).result() | ||
| 372 | + response = await operation.result() | ||
| 373 | 373 | ||
| 374 | 374 | # Handle the response | |
| 375 | 375 | print(response) | |
@@ -869,11 +869,11 @@ async def sample_delete_dataset(): | |||
| 869 | 869 | ) | |
| 870 | 870 | ||
| 871 | 871 | # Make the request | |
| 872 | - operation = client.delete_dataset(request=request) | ||
| 872 | + operation = await client.delete_dataset(request=request) | ||
| 873 | 873 | ||
| 874 | 874 | print("Waiting for operation to complete...") | |
| 875 | 875 | ||
| 876 | - response = (await operation).result() | ||
| 876 | + response = await operation.result() | ||
| 877 | 877 | ||
| 878 | 878 | # Handle the response | |
| 879 | 879 | print(response) | |
@@ -1016,11 +1016,11 @@ async def sample_import_data(): | |||
| 1016 | 1016 | ) | |
| 1017 | 1017 | ||
| 1018 | 1018 | # Make the request | |
| 1019 | - operation = client.import_data(request=request) | ||
| 1019 | + operation = await client.import_data(request=request) | ||
| 1020 | 1020 | ||
| 1021 | 1021 | print("Waiting for operation to complete...") | |
| 1022 | 1022 | ||
| 1023 | - response = (await operation).result() | ||
| 1023 | + response = await operation.result() | ||
| 1024 | 1024 | ||
| 1025 | 1025 | # Handle the response | |
| 1026 | 1026 | print(response) | |
@@ -1168,11 +1168,11 @@ async def sample_export_data(): | |||
| 1168 | 1168 | ) | |
| 1169 | 1169 | ||
| 1170 | 1170 | # Make the request | |
| 1171 | - operation = client.export_data(request=request) | ||
| 1171 | + operation = await client.export_data(request=request) | ||
| 1172 | 1172 | ||
| 1173 | 1173 | print("Waiting for operation to complete...") | |
| 1174 | 1174 | ||
| 1175 | - response = (await operation).result() | ||
| 1175 | + response = await operation.result() | ||
| 1176 | 1176 | ||
| 1177 | 1177 | # Handle the response | |
| 1178 | 1178 | print(response) | |
@@ -1424,11 +1424,11 @@ async def sample_create_model(): | |||
| 1424 | 1424 | ) | |
| 1425 | 1425 | ||
| 1426 | 1426 | # Make the request | |
| 1427 | - operation = client.create_model(request=request) | ||
| 1427 | + operation = await client.create_model(request=request) | ||
| 1428 | 1428 | ||
| 1429 | 1429 | print("Waiting for operation to complete...") | |
| 1430 | 1430 | ||
| 1431 | - response = (await operation).result() | ||
| 1431 | + response = await operation.result() | ||
| 1432 | 1432 | ||
| 1433 | 1433 | # Handle the response | |
| 1434 | 1434 | print(response) | |
@@ -1796,11 +1796,11 @@ async def sample_delete_model(): | |||
| 1796 | 1796 | ) | |
| 1797 | 1797 | ||
| 1798 | 1798 | # Make the request | |
| 1799 | - operation = client.delete_model(request=request) | ||
| 1799 | + operation = await client.delete_model(request=request) | ||
| 1800 | 1800 | ||
| 1801 | 1801 | print("Waiting for operation to complete...") | |
| 1802 | 1802 | ||
| 1803 | - response = (await operation).result() | ||
| 1803 | + response = await operation.result() | ||
| 1804 | 1804 | ||
| 1805 | 1805 | # Handle the response | |
| 1806 | 1806 | print(response) | |
@@ -2064,11 +2064,11 @@ async def sample_deploy_model(): | |||
| 2064 | 2064 | ) | |
| 2065 | 2065 | ||
| 2066 | 2066 | # Make the request | |
| 2067 | - operation = client.deploy_model(request=request) | ||
| 2067 | + operation = await client.deploy_model(request=request) | ||
| 2068 | 2068 | ||
| 2069 | 2069 | print("Waiting for operation to complete...") | |
| 2070 | 2070 | ||
| 2071 | - response = (await operation).result() | ||
| 2071 | + response = await operation.result() | ||
| 2072 | 2072 | ||
| 2073 | 2073 | # Handle the response | |
| 2074 | 2074 | print(response) | |
@@ -2205,11 +2205,11 @@ async def sample_undeploy_model(): | |||
| 2205 | 2205 | ) | |
| 2206 | 2206 | ||
| 2207 | 2207 | # Make the request | |
| 2208 | - operation = client.undeploy_model(request=request) | ||
| 2208 | + operation = await client.undeploy_model(request=request) | ||
| 2209 | 2209 | ||
| 2210 | 2210 | print("Waiting for operation to complete...") | |
| 2211 | 2211 | ||
| 2212 | - response = (await operation).result() | ||
| 2212 | + response = await operation.result() | ||
| 2213 | 2213 | ||
| 2214 | 2214 | # Handle the response | |
| 2215 | 2215 | print(response) | |
@@ -2350,11 +2350,11 @@ async def sample_export_model(): | |||
| 2350 | 2350 | ) | |
| 2351 | 2351 | ||
| 2352 | 2352 | # Make the request | |
| 2353 | - operation = client.export_model(request=request) | ||
| 2353 | + operation = await client.export_model(request=request) | ||
| 2354 | 2354 | ||
| 2355 | 2355 | print("Waiting for operation to complete...") | |
| 2356 | 2356 | ||
| 2357 | - response = (await operation).result() | ||
| 2357 | + response = await operation.result() | ||
| 2358 | 2358 | ||
| 2359 | 2359 | # Handle the response | |
| 2360 | 2360 | print(response) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | # -*- coding: utf-8 -*- | |
| 2 | - # Copyright 2025 Google LLC | ||
| 2 | + # Copyright 2026 Google LLC | ||
| 3 | 3 | # | |
| 4 | 4 | # Licensed under the Apache License, Version 2.0 (the "License"); | |
| 5 | 5 | # you may not use this file except in compliance with the License. | |
@@ -570,11 +570,11 @@ async def sample_batch_predict(): | |||
| 570 | 570 | ) | |
| 571 | 571 | ||
| 572 | 572 | # Make the request | |
| 573 | - operation = client.batch_predict(request=request) | ||
| 573 | + operation = await client.batch_predict(request=request) | ||
| 574 | 574 | ||
| 575 | 575 | print("Waiting for operation to complete...") | |
| 576 | 576 | ||
| 577 | - response = (await operation).result() | ||
| 577 | + response = await operation.result() | ||
| 578 | 578 | ||
| 579 | 579 | # Handle the response | |
| 580 | 580 | print(response) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments