| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 77d4fcc commit d49a2b9
785 files changed
| 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-data-fusion" | |
| 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.data_fusion import DataFusionAsyncClient, DataFusionClient | |
| 33 | 27 | from .types.datafusion import ( | |
@@ -57,28 +51,17 @@ | |||
| 57 | 51 | # An older version of api_core is installed which does not define the | |
| 58 | 52 | # functions above. We do equivalent checks manually. | |
| 59 | 53 | try: | |
| 60 | - import sys | ||
| 61 | 54 | import warnings | |
| 62 | 55 | ||
| 63 | 56 | _py_version_str = sys.version.split()[0] | |
| 64 | 57 | _package_label = "google.cloud.data_fusion_v1" | |
| 65 | - if sys.version_info < (3, 9): | ||
| 58 | + if sys.version_info < (3, 10): | ||
| 66 | 59 | warnings.warn( | |
| 67 | 60 | "You are using a non-supported Python version " | |
| 68 | 61 | + f"({_py_version_str}). Google will not post any further " | |
| 69 | 62 | + f"updates to {_package_label} supporting this Python version. " | |
| 70 | 63 | + "Please upgrade to the latest Python version, or at " | |
| 71 | - + f"least to Python 3.9, and then update {_package_label}.", | ||
| 72 | - FutureWarning, | ||
| 73 | - ) | ||
| 74 | - if sys.version_info[:2] == (3, 9): | ||
| 75 | - warnings.warn( | ||
| 76 | - f"You are using a Python version ({_py_version_str}) " | ||
| 77 | - + f"which Google will stop supporting in {_package_label} in " | ||
| 78 | - + "January 2026. Please " | ||
| 79 | - + "upgrade to the latest Python version, or at " | ||
| 80 | - + "least to Python 3.10, before then, and " | ||
| 81 | - + f"then update {_package_label}.", | ||
| 64 | + + f"least to Python 3.10, and then update {_package_label}.", | ||
| 82 | 65 | FutureWarning, | |
| 83 | 66 | ) | |
| 84 | 67 | ||
| 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. | |
@@ -649,11 +649,11 @@ async def sample_create_instance(): | |||
| 649 | 649 | ) | |
| 650 | 650 | ||
| 651 | 651 | # Make the request | |
| 652 | - operation = client.create_instance(request=request) | ||
| 652 | + operation = await client.create_instance(request=request) | ||
| 653 | 653 | ||
| 654 | 654 | print("Waiting for operation to complete...") | |
| 655 | 655 | ||
| 656 | - response = (await operation).result() | ||
| 656 | + response = await operation.result() | ||
| 657 | 657 | ||
| 658 | 658 | # Handle the response | |
| 659 | 659 | print(response) | |
@@ -792,11 +792,11 @@ async def sample_delete_instance(): | |||
| 792 | 792 | ) | |
| 793 | 793 | ||
| 794 | 794 | # Make the request | |
| 795 | - operation = client.delete_instance(request=request) | ||
| 795 | + operation = await client.delete_instance(request=request) | ||
| 796 | 796 | ||
| 797 | 797 | print("Waiting for operation to complete...") | |
| 798 | 798 | ||
| 799 | - response = (await operation).result() | ||
| 799 | + response = await operation.result() | ||
| 800 | 800 | ||
| 801 | 801 | # Handle the response | |
| 802 | 802 | print(response) | |
@@ -930,11 +930,11 @@ async def sample_update_instance(): | |||
| 930 | 930 | ) | |
| 931 | 931 | ||
| 932 | 932 | # Make the request | |
| 933 | - operation = client.update_instance(request=request) | ||
| 933 | + operation = await client.update_instance(request=request) | ||
| 934 | 934 | ||
| 935 | 935 | print("Waiting for operation to complete...") | |
| 936 | 936 | ||
| 937 | - response = (await operation).result() | ||
| 937 | + response = await operation.result() | ||
| 938 | 938 | ||
| 939 | 939 | # Handle the response | |
| 940 | 940 | print(response) | |
@@ -1079,11 +1079,11 @@ async def sample_restart_instance(): | |||
| 1079 | 1079 | ) | |
| 1080 | 1080 | ||
| 1081 | 1081 | # Make the request | |
| 1082 | - operation = client.restart_instance(request=request) | ||
| 1082 | + operation = await client.restart_instance(request=request) | ||
| 1083 | 1083 | ||
| 1084 | 1084 | print("Waiting for operation to complete...") | |
| 1085 | 1085 | ||
| 1086 | - response = (await operation).result() | ||
| 1086 | + response = await operation.result() | ||
| 1087 | 1087 | ||
| 1088 | 1088 | # Handle the response | |
| 1089 | 1089 | 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. | |
@@ -31,7 +31,6 @@ | |||
| 31 | 31 | LINT_PATHS.append("samples") | |
| 32 | 32 | ||
| 33 | 33 | ALL_PYTHON = [ | |
| 34 | - "3.9", | ||
| 35 | 34 | "3.10", | |
| 36 | 35 | "3.11", | |
| 37 | 36 | "3.12", | |
@@ -390,7 +389,6 @@ def docs(session): | |||
| 390 | 389 | shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True) | |
| 391 | 390 | session.run( | |
| 392 | 391 | "sphinx-build", | |
| 393 | - "-W", # warnings as errors | ||
| 394 | 392 | "-T", # show full traceback on exception | |
| 395 | 393 | "-N", # no colors | |
| 396 | 394 | "-b", | |
| 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. | |
@@ -45,11 +45,11 @@ async def sample_create_instance(): | |||
| 45 | 45 | ) | |
| 46 | 46 | ||
| 47 | 47 | # Make the request | |
| 48 | - operation = client.create_instance(request=request) | ||
| 48 | + operation = await client.create_instance(request=request) | ||
| 49 | 49 | ||
| 50 | 50 | print("Waiting for operation to complete...") | |
| 51 | 51 | ||
| 52 | - response = (await operation).result() | ||
| 52 | + response = await operation.result() | ||
| 53 | 53 | ||
| 54 | 54 | # Handle the response | |
| 55 | 55 | 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. | |
@@ -44,11 +44,11 @@ async def sample_delete_instance(): | |||
| 44 | 44 | ) | |
| 45 | 45 | ||
| 46 | 46 | # Make the request | |
| 47 | - operation = client.delete_instance(request=request) | ||
| 47 | + operation = await client.delete_instance(request=request) | ||
| 48 | 48 | ||
| 49 | 49 | print("Waiting for operation to complete...") | |
| 50 | 50 | ||
| 51 | - response = (await operation).result() | ||
| 51 | + response = await operation.result() | ||
| 52 | 52 | ||
| 53 | 53 | # Handle the response | |
| 54 | 54 | 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. | |
@@ -44,11 +44,11 @@ async def sample_restart_instance(): | |||
| 44 | 44 | ) | |
| 45 | 45 | ||
| 46 | 46 | # Make the request | |
| 47 | - operation = client.restart_instance(request=request) | ||
| 47 | + operation = await client.restart_instance(request=request) | ||
| 48 | 48 | ||
| 49 | 49 | print("Waiting for operation to complete...") | |
| 50 | 50 | ||
| 51 | - response = (await operation).result() | ||
| 51 | + response = await operation.result() | ||
| 52 | 52 | ||
| 53 | 53 | # Handle the response | |
| 54 | 54 | 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. | |
@@ -47,11 +47,11 @@ async def sample_update_instance(): | |||
| 47 | 47 | ) | |
| 48 | 48 | ||
| 49 | 49 | # Make the request | |
| 50 | - operation = client.update_instance(request=request) | ||
| 50 | + operation = await client.update_instance(request=request) | ||
| 51 | 51 | ||
| 52 | 52 | print("Waiting for operation to complete...") | |
| 53 | 53 | ||
| 54 | - response = (await operation).result() | ||
| 54 | + response = await operation.result() | ||
| 55 | 55 | ||
| 56 | 56 | # Handle the response | |
| 57 | 57 | 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. | |
@@ -41,11 +41,11 @@ | |||
| 41 | 41 | release_status = "Development Status :: 5 - Production/Stable" | |
| 42 | 42 | ||
| 43 | 43 | dependencies = [ | |
| 44 | - "google-api-core[grpc] >= 2.11.0, <3.0.0", | ||
| 44 | + "google-api-core[grpc] >= 2.17.1, <3.0.0", | ||
| 45 | 45 | # Exclude incompatible versions of `google-auth` | |
| 46 | 46 | # See https://github.com/googleapis/google-cloud-python/issues/12364 | |
| 47 | 47 | "google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0", | |
| 48 | - "grpcio >= 1.33.2, < 2.0.0", | ||
| 48 | + "grpcio >= 1.44.0, < 2.0.0", | ||
| 49 | 49 | "grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'", | |
| 50 | 50 | "proto-plus >= 1.22.3, <2.0.0", | |
| 51 | 51 | "proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'", | |
@@ -73,15 +73,14 @@ | |||
| 73 | 73 | long_description=readme, | |
| 74 | 74 | author="Google LLC", | |
| 75 | 75 | author_email="googleapis-packages@google.com", | |
| 76 | - license="Apache 2.0", | ||
| 76 | + license="Apache-2.0", | ||
| 77 | 77 | url=url, | |
| 78 | 78 | classifiers=[ | |
| 79 | 79 | release_status, | |
| 80 | 80 | "Intended Audience :: Developers", | |
| 81 | 81 | "License :: OSI Approved :: Apache Software License", | |
| 82 | 82 | "Programming Language :: Python", | |
| 83 | 83 | "Programming Language :: Python :: 3", | |
| 84 | - "Programming Language :: Python :: 3.9", | ||
| 85 | 84 | "Programming Language :: Python :: 3.10", | |
| 86 | 85 | "Programming Language :: Python :: 3.11", | |
| 87 | 86 | "Programming Language :: Python :: 3.12", | |
@@ -92,7 +91,7 @@ | |||
| 92 | 91 | ], | |
| 93 | 92 | platforms="Posix; MacOS X; Windows", | |
| 94 | 93 | packages=packages, | |
| 95 | - python_requires=">=3.9", | ||
| 94 | + python_requires=">=3.10", | ||
| 96 | 95 | install_requires=dependencies, | |
| 97 | 96 | extras_require=extras, | |
| 98 | 97 | include_package_data=True, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,11 @@ | |||
| 1 | - # -*- coding: utf-8 -*- | ||
| 2 | - # This constraints file is required for unit tests. | ||
| 3 | - # List all library dependencies and extras in this file. | ||
| 4 | - google-api-core | ||
| 5 | - google-auth | ||
| 6 | - grpcio | ||
| 7 | - proto-plus | ||
| 8 | - protobuf | ||
| 9 | - # cryptography is a direct dependency of google-auth | ||
| 10 | - cryptography | ||
| 1 | + # This constraints file is used to check that lower bounds | ||
| 2 | + # are correct in setup.py | ||
| 3 | + # List all library dependencies and extras in this file, | ||
| 4 | + # pinning their versions to their lower bounds. | ||
| 5 | + # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| 6 | + # then this file should have google-cloud-foo==1.14.0 | ||
| 7 | + google-api-core==2.17.1 | ||
| 8 | + google-auth==2.14.1 | ||
| 9 | + grpcio==1.44.0 | ||
| 10 | + proto-plus==1.22.3 | ||
| 11 | + protobuf==4.25.8 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments