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 d49a2b9

Browse filesBrowse files
authored
feat: regenerate google-cloud-d packages (#17092)
This Pull Request drops support for Python <=3.9 in generated packages. This is part of our ongoing effort to modernize the Cloud Python SDK libraries and remove support for End-of-Life (EOL) Python versions. - Removed Python <=3.9 from testing, configuration, and constraints files. - Resolved dependency conflicts arising from dropping Python <=3.9 support. - Cleaned up obsolete code related to Python <=3.9 support. - Updated select copyright dates - Updated some autogenerated headings - Updated some tests to resolve issues discovered during this migration.
1 parent 77d4fcc commit d49a2b9
Copy full SHA for d49a2b9

785 files changed

+4,808-7,724Lines changed: 4808 additions & 7724 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎packages/google-cloud-data-fusion/docs/conf.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/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-data-fusion"
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-data-fusion/google/cloud/data_fusion_v1/__init__.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/google/cloud/data_fusion_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.data_fusion import DataFusionAsyncClient, DataFusionClient
3327
from .types.datafusion import (
@@ -57,28 +51,17 @@
5751
# An older version of api_core is installed which does not define the
5852
# functions above. We do equivalent checks manually.
5953
try:
60-
import sys
6154
import warnings
6255

6356
_py_version_str = sys.version.split()[0]
6457
_package_label = "google.cloud.data_fusion_v1"
65-
if sys.version_info < (3, 9):
58+
if sys.version_info < (3, 10):
6659
warnings.warn(
6760
"You are using a non-supported Python version "
6861
+ f"({_py_version_str}). Google will not post any further "
6962
+ f"updates to {_package_label} supporting this Python version. "
7063
+ "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}.",
8265
FutureWarning,
8366
)
8467

Collapse file

‎packages/google-cloud-data-fusion/google/cloud/data_fusion_v1/services/data_fusion/async_client.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/google/cloud/data_fusion_v1/services/data_fusion/async_client.py
+9-9Lines changed: 9 additions & 9 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.
@@ -649,11 +649,11 @@ async def sample_create_instance():
649649
)
650650
651651
# Make the request
652-
operation = client.create_instance(request=request)
652+
operation = await client.create_instance(request=request)
653653
654654
print("Waiting for operation to complete...")
655655
656-
response = (await operation).result()
656+
response = await operation.result()
657657
658658
# Handle the response
659659
print(response)
@@ -792,11 +792,11 @@ async def sample_delete_instance():
792792
)
793793
794794
# Make the request
795-
operation = client.delete_instance(request=request)
795+
operation = await client.delete_instance(request=request)
796796
797797
print("Waiting for operation to complete...")
798798
799-
response = (await operation).result()
799+
response = await operation.result()
800800
801801
# Handle the response
802802
print(response)
@@ -930,11 +930,11 @@ async def sample_update_instance():
930930
)
931931
932932
# Make the request
933-
operation = client.update_instance(request=request)
933+
operation = await client.update_instance(request=request)
934934
935935
print("Waiting for operation to complete...")
936936
937-
response = (await operation).result()
937+
response = await operation.result()
938938
939939
# Handle the response
940940
print(response)
@@ -1079,11 +1079,11 @@ async def sample_restart_instance():
10791079
)
10801080
10811081
# Make the request
1082-
operation = client.restart_instance(request=request)
1082+
operation = await client.restart_instance(request=request)
10831083
10841084
print("Waiting for operation to complete...")
10851085
1086-
response = (await operation).result()
1086+
response = await operation.result()
10871087
10881088
# Handle the response
10891089
print(response)
Collapse file

‎packages/google-cloud-data-fusion/noxfile.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/noxfile.py
+1-3Lines changed: 1 addition & 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.
@@ -31,7 +31,6 @@
3131
LINT_PATHS.append("samples")
3232

3333
ALL_PYTHON = [
34-
"3.9",
3534
"3.10",
3635
"3.11",
3736
"3.12",
@@ -390,7 +389,6 @@ def docs(session):
390389
shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
391390
session.run(
392391
"sphinx-build",
393-
"-W", # warnings as errors
394392
"-T", # show full traceback on exception
395393
"-N", # no colors
396394
"-b",
Collapse file

‎packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_create_instance_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_create_instance_async.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.
@@ -45,11 +45,11 @@ async def sample_create_instance():
4545
)
4646

4747
# Make the request
48-
operation = client.create_instance(request=request)
48+
operation = await client.create_instance(request=request)
4949

5050
print("Waiting for operation to complete...")
5151

52-
response = (await operation).result()
52+
response = await operation.result()
5353

5454
# Handle the response
5555
print(response)
Collapse file

‎packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_delete_instance_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_delete_instance_async.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.
@@ -44,11 +44,11 @@ async def sample_delete_instance():
4444
)
4545

4646
# Make the request
47-
operation = client.delete_instance(request=request)
47+
operation = await client.delete_instance(request=request)
4848

4949
print("Waiting for operation to complete...")
5050

51-
response = (await operation).result()
51+
response = await operation.result()
5252

5353
# Handle the response
5454
print(response)
Collapse file

‎packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_restart_instance_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_restart_instance_async.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.
@@ -44,11 +44,11 @@ async def sample_restart_instance():
4444
)
4545

4646
# Make the request
47-
operation = client.restart_instance(request=request)
47+
operation = await client.restart_instance(request=request)
4848

4949
print("Waiting for operation to complete...")
5050

51-
response = (await operation).result()
51+
response = await operation.result()
5252

5353
# Handle the response
5454
print(response)
Collapse file

‎packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_update_instance_async.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/samples/generated_samples/datafusion_v1_generated_data_fusion_update_instance_async.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.
@@ -47,11 +47,11 @@ async def sample_update_instance():
4747
)
4848

4949
# Make the request
50-
operation = client.update_instance(request=request)
50+
operation = await client.update_instance(request=request)
5151

5252
print("Waiting for operation to complete...")
5353

54-
response = (await operation).result()
54+
response = await operation.result()
5555

5656
# Handle the response
5757
print(response)
Collapse file

‎packages/google-cloud-data-fusion/setup.py‎

Copy file name to clipboardExpand all lines: packages/google-cloud-data-fusion/setup.py
+5-6Lines changed: 5 additions & 6 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.
@@ -41,11 +41,11 @@
4141
release_status = "Development Status :: 5 - Production/Stable"
4242

4343
dependencies = [
44-
"google-api-core[grpc] >= 2.11.0, <3.0.0",
44+
"google-api-core[grpc] >= 2.17.1, <3.0.0",
4545
# Exclude incompatible versions of `google-auth`
4646
# See https://github.com/googleapis/google-cloud-python/issues/12364
4747
"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",
4949
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
5050
"proto-plus >= 1.22.3, <2.0.0",
5151
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
@@ -73,15 +73,14 @@
7373
long_description=readme,
7474
author="Google LLC",
7575
author_email="googleapis-packages@google.com",
76-
license="Apache 2.0",
76+
license="Apache-2.0",
7777
url=url,
7878
classifiers=[
7979
release_status,
8080
"Intended Audience :: Developers",
8181
"License :: OSI Approved :: Apache Software License",
8282
"Programming Language :: Python",
8383
"Programming Language :: Python :: 3",
84-
"Programming Language :: Python :: 3.9",
8584
"Programming Language :: Python :: 3.10",
8685
"Programming Language :: Python :: 3.11",
8786
"Programming Language :: Python :: 3.12",
@@ -92,7 +91,7 @@
9291
],
9392
platforms="Posix; MacOS X; Windows",
9493
packages=packages,
95-
python_requires=">=3.9",
94+
python_requires=">=3.10",
9695
install_requires=dependencies,
9796
extras_require=extras,
9897
include_package_data=True,
Collapse file
+11-10Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

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