Skip to content

Commit be03be7

Browse files
committed
feat: regenerate google-cloud-[k-n] packages
TODO: release notes here
1 parent 0d39c95 commit be03be7

757 files changed

Lines changed: 4291 additions & 6498 deletions

File tree

Some content is hidden

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

packages/google-cloud-kms-inventory/docs/conf.py

Lines 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-kms-inventory"
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

packages/google-cloud-kms-inventory/google/cloud/kms_inventory_v1/__init__.py

Lines 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.key_dashboard_service import (
3327
KeyDashboardServiceAsyncClient,
@@ -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.kms_inventory_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

packages/google-cloud-kms-inventory/noxfile.py

Lines 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",

packages/google-cloud-kms-inventory/setup.py

Lines 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'",
@@ -74,15 +74,14 @@
7474
long_description=readme,
7575
author="Google LLC",
7676
author_email="googleapis-packages@google.com",
77-
license="Apache 2.0",
77+
license="Apache-2.0",
7878
url=url,
7979
classifiers=[
8080
release_status,
8181
"Intended Audience :: Developers",
8282
"License :: OSI Approved :: Apache Software License",
8383
"Programming Language :: Python",
8484
"Programming Language :: Python :: 3",
85-
"Programming Language :: Python :: 3.9",
8685
"Programming Language :: Python :: 3.10",
8786
"Programming Language :: Python :: 3.11",
8887
"Programming Language :: Python :: 3.12",
@@ -93,7 +92,7 @@
9392
],
9493
platforms="Posix; MacOS X; Windows",
9594
packages=packages,
96-
python_requires=">=3.9",
95+
python_requires=">=3.10",
9796
install_requires=dependencies,
9897
extras_require=extras,
9998
include_package_data=True,
Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
11-
google-cloud-kms
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
12+
google-cloud-kms==2.13.0

packages/google-cloud-kms-inventory/testing/constraints-3.9.txt

Lines changed: 0 additions & 14 deletions
This file was deleted.

packages/google-cloud-kms-inventory/tests/unit/gapic/kms_inventory_v1/test_key_dashboard_service.py

Lines changed: 6 additions & 16 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.
@@ -13,18 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import os
17-
18-
# try/except added for compatibility with python < 3.8
19-
try:
20-
from unittest import mock
21-
from unittest.mock import AsyncMock # pragma: NO COVER
22-
except ImportError: # pragma: NO COVER
23-
import mock
24-
2516
import json
2617
import math
18+
import os
2719
from collections.abc import AsyncIterable, Iterable, Mapping, Sequence
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
2822

2923
import grpc
3024
import pytest
@@ -1886,11 +1880,7 @@ async def test_list_crypto_keys_async_pages():
18861880
RuntimeError,
18871881
)
18881882
pages = []
1889-
# Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
1890-
# See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
1891-
async for page_ in ( # pragma: no branch
1892-
await client.list_crypto_keys(request={})
1893-
).pages:
1883+
async for page_ in (await client.list_crypto_keys(request={})).pages:
18941884
pages.append(page_)
18951885
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
18961886
assert page_.raw_page.next_page_token == token
@@ -2013,7 +2003,7 @@ def test_list_crypto_keys_rest_required_fields(
20132003

20142004
expected_params = [("$alt", "json;enum-encoding=int")]
20152005
actual_params = req.call_args.kwargs["params"]
2016-
assert expected_params == actual_params
2006+
assert sorted(expected_params) == sorted(actual_params)
20172007

20182008

20192009
def test_list_crypto_keys_rest_unset_required_fields():

packages/google-cloud-kms-inventory/tests/unit/gapic/kms_inventory_v1/test_key_tracking_service.py

Lines changed: 7 additions & 17 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.
@@ -13,18 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
import os
17-
18-
# try/except added for compatibility with python < 3.8
19-
try:
20-
from unittest import mock
21-
from unittest.mock import AsyncMock # pragma: NO COVER
22-
except ImportError: # pragma: NO COVER
23-
import mock
24-
2516
import json
2617
import math
18+
import os
2719
from collections.abc import AsyncIterable, Iterable, Mapping, Sequence
20+
from unittest import mock
21+
from unittest.mock import AsyncMock
2822

2923
import grpc
3024
import pytest
@@ -2261,11 +2255,7 @@ async def test_search_protected_resources_async_pages():
22612255
RuntimeError,
22622256
)
22632257
pages = []
2264-
# Workaround issue in python 3.9 related to code coverage by adding `# pragma: no branch`
2265-
# See https://github.com/googleapis/gapic-generator-python/pull/1174#issuecomment-1025132372
2266-
async for page_ in ( # pragma: no branch
2267-
await client.search_protected_resources(request={})
2268-
).pages:
2258+
async for page_ in (await client.search_protected_resources(request={})).pages:
22692259
pages.append(page_)
22702260
for page_, token in zip(pages, ["abc", "def", "ghi", ""]):
22712261
assert page_.raw_page.next_page_token == token
@@ -2388,7 +2378,7 @@ def test_get_protected_resources_summary_rest_required_fields(
23882378

23892379
expected_params = [("$alt", "json;enum-encoding=int")]
23902380
actual_params = req.call_args.kwargs["params"]
2391-
assert expected_params == actual_params
2381+
assert sorted(expected_params) == sorted(actual_params)
23922382

23932383

23942384
def test_get_protected_resources_summary_rest_unset_required_fields():
@@ -2599,7 +2589,7 @@ def test_search_protected_resources_rest_required_fields(
25992589
("$alt", "json;enum-encoding=int"),
26002590
]
26012591
actual_params = req.call_args.kwargs["params"]
2602-
assert expected_params == actual_params
2592+
assert sorted(expected_params) == sorted(actual_params)
26032593

26042594

26052595
def test_search_protected_resources_rest_unset_required_fields():

packages/google-cloud-kms/docs/conf.py

Lines 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-kms"
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

packages/google-cloud-kms/google/cloud/kms_v1/__init__.py

Lines 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.autokey import AutokeyAsyncClient, AutokeyClient
3327
from .services.autokey_admin import AutokeyAdminAsyncClient, AutokeyAdminClient
@@ -167,28 +161,17 @@
167161
# An older version of api_core is installed which does not define the
168162
# functions above. We do equivalent checks manually.
169163
try:
170-
import sys
171164
import warnings
172165

173166
_py_version_str = sys.version.split()[0]
174167
_package_label = "google.cloud.kms_v1"
175-
if sys.version_info < (3, 9):
168+
if sys.version_info < (3, 10):
176169
warnings.warn(
177170
"You are using a non-supported Python version "
178171
+ f"({_py_version_str}). Google will not post any further "
179172
+ f"updates to {_package_label} supporting this Python version. "
180173
+ "Please upgrade to the latest Python version, or at "
181-
+ f"least to Python 3.9, and then update {_package_label}.",
182-
FutureWarning,
183-
)
184-
if sys.version_info[:2] == (3, 9):
185-
warnings.warn(
186-
f"You are using a Python version ({_py_version_str}) "
187-
+ f"which Google will stop supporting in {_package_label} in "
188-
+ "January 2026. Please "
189-
+ "upgrade to the latest Python version, or at "
190-
+ "least to Python 3.10, before then, and "
191-
+ f"then update {_package_label}.",
174+
+ f"least to Python 3.10, and then update {_package_label}.",
192175
FutureWarning,
193176
)
194177

0 commit comments

Comments
 (0)