Skip to content

Commit 4763aa7

Browse files
feat: [Many APIs] Add support for Python 3.14 (#14687)
- [ ] Regenerate this pull request now. fix: Deprecate credentials_file argument chore: Update gapic-generator-python to 1.28.0 PiperOrigin-RevId: 816753840 Source-Link: googleapis/googleapis@d06cf27 Source-Link: googleapis/googleapis-gen@a524e73 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ2xha2UvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWJpZ3F1ZXJ5LXN0b3JhZ2UvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3ctY3gvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1odWIvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdrZS1tdWx0aWNsb3VkLy5Pd2xCb3QueWFtbCIsImgiOiJhNTI0ZTczMTA4ODJiYmI5OWJmZTEzOTliMThiZWQzMjg5NzkyMTFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdzdWl0ZWFkZG9ucy8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWlhbS8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vbml0b3JpbmctZGFzaGJvYXJkcy8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW1vbml0b3JpbmcvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW5ldHdvcmstc2VjdXJpdHkvLk93bEJvdC55YW1sIiwiaCI6ImE1MjRlNzMxMDg4MmJiYjk5YmZlMTM5OWIxOGJlZDMyODk3OTIxMWMifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLW9zLWxvZ2luLy5Pd2xCb3QueWFtbCIsImgiOiJhNTI0ZTczMTA4ODJiYmI5OWJmZTEzOTliMThiZWQzMjg5NzkyMTFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3JldC1tYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiJhNTI0ZTczMTA4ODJiYmI5OWJmZTEzOTliMThiZWQzMjg5NzkyMTFjIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ3JhZmVhcy8uT3dsQm90LnlhbWwiLCJoIjoiYTUyNGU3MzEwODgyYmJiOTliZmUxMzk5YjE4YmVkMzI4OTc5MjExYyJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent a5dbb64 commit 4763aa7

File tree

444 files changed

+1872
-819
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

444 files changed

+1872
-819
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest
16-
digest: sha256:b2dd6420495aa1a1057a73b80103ed2cabafa0c2c64a8bbf7221a7d6a067178f
16+
digest: sha256:e5234b94d36c6c89c0a809ef7082a9be82ee66ffc3f4cbb9cb3641df563e4163

packages/google-cloud-biglake/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Supported Python Versions
6161
Our client libraries are compatible with all current `active`_ and `maintenance`_ versions of
6262
Python.
6363

64-
Python >= 3.7
64+
Python >= 3.7, including 3.14
6565

6666
.. _active: https://devguide.python.org/devcycle/#in-development-main-branch
6767
.. _maintenance: https://devguide.python.org/devcycle/#maintenance-branches

packages/google-cloud-biglake/google/cloud/biglake/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-biglake/google/cloud/biglake_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-biglake/google/cloud/biglake_v1/services/iceberg_catalog_service/transports/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ def __init__(
6969
credentials identify the application to the service; if none
7070
are specified, the client will attempt to ascertain the
7171
credentials from the environment.
72-
credentials_file (Optional[str]): A file with credentials that can
72+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
7373
be loaded with :func:`google.auth.load_credentials_from_file`.
74-
This argument is mutually exclusive with credentials.
74+
This argument is mutually exclusive with credentials. This argument will be
75+
removed in the next major version of this library.
7576
scopes (Optional[Sequence[str]]): A list of scopes.
7677
quota_project_id (Optional[str]): An optional project to use for billing
7778
and quota.

packages/google-cloud-biglake/google/cloud/biglake_v1/services/iceberg_catalog_service/transports/grpc.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,10 @@ def __init__(
177177
are specified, the client will attempt to ascertain the
178178
credentials from the environment.
179179
This argument is ignored if a ``channel`` instance is provided.
180-
credentials_file (Optional[str]): A file with credentials that can
180+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
181181
be loaded with :func:`google.auth.load_credentials_from_file`.
182182
This argument is ignored if a ``channel`` instance is provided.
183+
This argument will be removed in the next major version of this library.
183184
scopes (Optional(Sequence[str])): A list of scopes. This argument is
184185
ignored if a ``channel`` instance is provided.
185186
channel (Optional[Union[grpc.Channel, Callable[..., grpc.Channel]]]):
@@ -312,9 +313,10 @@ def create_channel(
312313
credentials identify this application to the service. If
313314
none are specified, the client will attempt to ascertain
314315
the credentials from the environment.
315-
credentials_file (Optional[str]): A file with credentials that can
316+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
316317
be loaded with :func:`google.auth.load_credentials_from_file`.
317-
This argument is mutually exclusive with credentials.
318+
This argument is mutually exclusive with credentials. This argument will be
319+
removed in the next major version of this library.
318320
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
319321
service. These are only used when credentials are not specified and
320322
are passed to :func:`google.auth.default`.

packages/google-cloud-biglake/google/cloud/biglake_v1/services/iceberg_catalog_service/transports/grpc_asyncio.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ def create_channel(
174174
credentials identify this application to the service. If
175175
none are specified, the client will attempt to ascertain
176176
the credentials from the environment.
177-
credentials_file (Optional[str]): A file with credentials that can
178-
be loaded with :func:`google.auth.load_credentials_from_file`.
177+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
178+
be loaded with :func:`google.auth.load_credentials_from_file`. This argument will be
179+
removed in the next major version of this library.
179180
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
180181
service. These are only used when credentials are not specified and
181182
are passed to :func:`google.auth.default`.
@@ -226,9 +227,10 @@ def __init__(
226227
are specified, the client will attempt to ascertain the
227228
credentials from the environment.
228229
This argument is ignored if a ``channel`` instance is provided.
229-
credentials_file (Optional[str]): A file with credentials that can
230+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
230231
be loaded with :func:`google.auth.load_credentials_from_file`.
231232
This argument is ignored if a ``channel`` instance is provided.
233+
This argument will be removed in the next major version of this library.
232234
scopes (Optional[Sequence[str]]): A optional list of scopes needed for this
233235
service. These are only used when credentials are not specified and
234236
are passed to :func:`google.auth.default`.

packages/google-cloud-biglake/google/cloud/biglake_v1/services/iceberg_catalog_service/transports/rest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,10 @@ def __init__(
448448
are specified, the client will attempt to ascertain the
449449
credentials from the environment.
450450
451-
credentials_file (Optional[str]): A file with credentials that can
451+
credentials_file (Optional[str]): Deprecated. A file with credentials that can
452452
be loaded with :func:`google.auth.load_credentials_from_file`.
453-
This argument is ignored if ``channel`` is provided.
453+
This argument is ignored if ``channel`` is provided. This argument will be
454+
removed in the next major version of this library.
454455
scopes (Optional(Sequence[str])): A list of scopes. This argument is
455456
ignored if ``channel`` is provided.
456457
client_cert_source_for_mtls (Callable[[], Tuple[bytes, bytes]]): Client

packages/google-cloud-biglake/noxfile.py

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@
3535
"3.11",
3636
"3.12",
3737
"3.13",
38+
"3.14",
3839
]
3940

40-
DEFAULT_PYTHON_VERSION = ALL_PYTHON[-1]
41+
DEFAULT_PYTHON_VERSION = "3.14"
42+
43+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2450):
44+
# Switch this to Python 3.15 alpha1
45+
# https://peps.python.org/pep-0790/
46+
PREVIEW_PYTHON_VERSION = "3.14"
4147

4248
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4349

@@ -57,7 +63,7 @@
5763
UNIT_TEST_EXTRAS: List[str] = []
5864
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
5965

60-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
66+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ALL_PYTHON
6167
SYSTEM_TEST_STANDARD_DEPENDENCIES = [
6268
"mock",
6369
"pytest",
@@ -222,15 +228,22 @@ def install_unittest_dependencies(session, *constraints):
222228
def unit(session, protobuf_implementation):
223229
# Install all test dependencies, then install this package in-place.
224230

225-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
231+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
232+
# Remove this check once support for Protobuf 3.x is dropped.
233+
if protobuf_implementation == "cpp" and session.python in (
234+
"3.11",
235+
"3.12",
236+
"3.13",
237+
"3.14",
238+
):
226239
session.skip("cpp implementation is not supported in python 3.11+")
227240

228241
constraints_path = str(
229242
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
230243
)
231244
install_unittest_dependencies(session, "-c", constraints_path)
232245

233-
# TODO(https://github.com/googleapis/synthtool/issues/1976):
246+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
234247
# Remove the 'cpp' implementation once support for Protobuf 3.x is dropped.
235248
# The 'cpp' implementation requires Protobuf<4.
236249
if protobuf_implementation == "cpp":
@@ -420,7 +433,7 @@ def docfx(session):
420433
)
421434

422435

423-
@nox.session(python=DEFAULT_PYTHON_VERSION)
436+
@nox.session(python=PREVIEW_PYTHON_VERSION)
424437
@nox.parametrize(
425438
"protobuf_implementation",
426439
["python", "upb", "cpp"],
@@ -433,7 +446,14 @@ def prerelease_deps(session, protobuf_implementation):
433446
`pip install --pre <package>`.
434447
"""
435448

436-
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
449+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2388):
450+
# Remove this check once support for Protobuf 3.x is dropped.
451+
if protobuf_implementation == "cpp" and session.python in (
452+
"3.11",
453+
"3.12",
454+
"3.13",
455+
"3.14",
456+
):
437457
session.skip("cpp implementation is not supported in python 3.11+")
438458

439459
# Install all dependencies

packages/google-cloud-biglake/setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
# Exclude incompatible versions of `google-auth`
4444
# See https://github.com/googleapis/google-cloud-python/issues/12364
4545
"google-auth >= 2.14.1, <3.0.0,!=2.24.0,!=2.25.0",
46+
"grpcio >= 1.33.2, < 2.0.0",
47+
"grpcio >= 1.75.1, < 2.0.0; python_version >= '3.14'",
4648
"proto-plus >= 1.22.3, <2.0.0",
4749
"proto-plus >= 1.25.0, <2.0.0; python_version >= '3.13'",
4850
"protobuf>=3.20.2,<7.0.0,!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5",
@@ -84,6 +86,7 @@
8486
"Programming Language :: Python :: 3.11",
8587
"Programming Language :: Python :: 3.12",
8688
"Programming Language :: Python :: 3.13",
89+
"Programming Language :: Python :: 3.14",
8790
"Operating System :: OS Independent",
8891
"Topic :: Internet",
8992
],

0 commit comments

Comments
 (0)