chore: Update gapic-generator-python to 1.25.0 (#1385) · googleapis/python-pubsub@a51d8f6 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit a51d8f6

Browse files
chore: Update gapic-generator-python to 1.25.0 (#1385)
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 77ba05d commit a51d8f6

File tree

18 files changed

+71
-28
lines changed

18 files changed

+71
-28
lines changed

.flake8

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
1919
ignore = E203, E231, E266, E501, W503
2020
exclude =
21-
# Exclude generated code.
22-
**/proto/**
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
2323
**/gapic/**
2424
**/services/**
2525
**/types/**
26+
# Exclude Protobuf gencode
2627
*_pb2.py
2728

2829
# Standard linting exemptions.

MANIFEST.in

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
include README.rst LICENSE
19-
recursive-include google *.json *.proto py.typed
17+
recursive-include google *.py *.pyi *.json *.proto py.typed
2018
recursive-include tests *
2119
global-exclude *.py[co]
2220
global-exclude __pycache__
23-
24-
# Exclude scripts for samples readmegen
25-
prune scripts/readme-gen

google/pubsub_v1/services/publisher/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -1662,5 +1663,8 @@ async def __aexit__(self, exc_type, exc, tb):
16621663
client_library_version=package_version.__version__
16631664
)
16641665

1666+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1667+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1668+
16651669

16661670
__all__ = ("PublisherAsyncClient",)

google/pubsub_v1/services/publisher/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
from google.auth.transport.grpc import SslCredentials # type: ignore
4848
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4949
from google.oauth2 import service_account # type: ignore
50+
import google.protobuf
5051

5152
try:
5253
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -2129,5 +2130,7 @@ def test_iam_permissions(
21292130
client_library_version=package_version.__version__
21302131
)
21312132

2133+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2134+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
21322135

21332136
__all__ = ("PublisherClient",)

google/pubsub_v1/services/publisher/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from google.api_core import retry as retries
2626
from google.auth import credentials as ga_credentials # type: ignore
2727
from google.oauth2 import service_account # type: ignore
28+
import google.protobuf
2829

2930
from google.iam.v1 import iam_policy_pb2 # type: ignore
3031
from google.iam.v1 import policy_pb2 # type: ignore
@@ -35,6 +36,9 @@
3536
client_library_version=package_version.__version__
3637
)
3738

39+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
40+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
41+
3842

3943
class PublisherTransport(abc.ABC):
4044
"""Abstract transport class for Publisher."""

google/pubsub_v1/services/publisher/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7373
f"Sending request for {client_call_details.method}",
7474
extra={
7575
"serviceName": "google.pubsub.v1.Publisher",
76-
"rpcName": client_call_details.method,
76+
"rpcName": str(client_call_details.method),
7777
"request": grpc_request,
7878
"metadata": grpc_request["metadata"],
7979
},
8080
)
81-
8281
response = continuation(client_call_details, request)
8382
if logging_enabled: # pragma: NO COVER
8483
response_metadata = response.trailing_metadata()

google/pubsub_v1/services/publisher/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from google.api_core import rest_helpers
2424
from google.api_core import rest_streaming
2525
from google.api_core import gapic_v1
26+
import google.protobuf
2627

2728
from google.protobuf import json_format
2829
from google.iam.v1 import iam_policy_pb2 # type: ignore
@@ -61,6 +62,9 @@
6162
rest_version=f"requests@{requests_version}",
6263
)
6364

65+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
66+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
67+
6468

6569
class PublisherRestInterceptor:
6670
"""Interceptor for Publisher.

google/pubsub_v1/services/schema_service/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
from google.api_core import retry_async as retries
3838
from google.auth import credentials as ga_credentials # type: ignore
3939
from google.oauth2 import service_account # type: ignore
40+
import google.protobuf
4041

4142

4243
try:
@@ -1775,5 +1776,8 @@ async def __aexit__(self, exc_type, exc, tb):
17751776
client_library_version=package_version.__version__
17761777
)
17771778

1779+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
1780+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
1781+
17781782

17791783
__all__ = ("SchemaServiceAsyncClient",)

google/pubsub_v1/services/schema_service/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
from google.auth.transport.grpc import SslCredentials # type: ignore
4747
from google.auth.exceptions import MutualTLSChannelError # type: ignore
4848
from google.oauth2 import service_account # type: ignore
49+
import google.protobuf
4950

5051
try:
5152
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -2190,5 +2191,7 @@ def test_iam_permissions(
21902191
client_library_version=package_version.__version__
21912192
)
21922193

2194+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2195+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
21932196

21942197
__all__ = ("SchemaServiceClient",)

google/pubsub_v1/services/schema_service/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from google.api_core import retry as retries
2626
from google.auth import credentials as ga_credentials # type: ignore
2727
from google.oauth2 import service_account # type: ignore
28+
import google.protobuf
2829

2930
from google.iam.v1 import iam_policy_pb2 # type: ignore
3031
from google.iam.v1 import policy_pb2 # type: ignore
@@ -36,6 +37,9 @@
3637
client_library_version=package_version.__version__
3738
)
3839

40+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
41+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
42+
3943

4044
class SchemaServiceTransport(abc.ABC):
4145
"""Abstract transport class for SchemaService."""

google/pubsub_v1/services/schema_service/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7474
f"Sending request for {client_call_details.method}",
7575
extra={
7676
"serviceName": "google.pubsub.v1.SchemaService",
77-
"rpcName": client_call_details.method,
77+
"rpcName": str(client_call_details.method),
7878
"request": grpc_request,
7979
"metadata": grpc_request["metadata"],
8080
},
8181
)
82-
8382
response = continuation(client_call_details, request)
8483
if logging_enabled: # pragma: NO COVER
8584
response_metadata = response.trailing_metadata()

google/pubsub_v1/services/schema_service/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from google.api_core import rest_helpers
2424
from google.api_core import rest_streaming
2525
from google.api_core import gapic_v1
26+
import google.protobuf
2627

2728
from google.protobuf import json_format
2829
from google.iam.v1 import iam_policy_pb2 # type: ignore
@@ -62,6 +63,9 @@
6263
rest_version=f"requests@{requests_version}",
6364
)
6465

66+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
67+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
68+
6569

6670
class SchemaServiceRestInterceptor:
6771
"""Interceptor for SchemaService.

google/pubsub_v1/services/subscriber/async_client.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
from google.api_core import retry_async as retries
4242
from google.auth import credentials as ga_credentials # type: ignore
4343
from google.oauth2 import service_account # type: ignore
44+
import google.protobuf
4445

4546

4647
try:
@@ -2635,5 +2636,8 @@ async def __aexit__(self, exc_type, exc, tb):
26352636
client_library_version=package_version.__version__
26362637
)
26372638

2639+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
2640+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
2641+
26382642

26392643
__all__ = ("SubscriberAsyncClient",)

google/pubsub_v1/services/subscriber/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
from google.auth.transport.grpc import SslCredentials # type: ignore
5050
from google.auth.exceptions import MutualTLSChannelError # type: ignore
5151
from google.oauth2 import service_account # type: ignore
52+
import google.protobuf
5253

5354
try:
5455
OptionalRetry = Union[retries.Retry, gapic_v1.method._MethodDefault, None]
@@ -3087,5 +3088,7 @@ def test_iam_permissions(
30873088
client_library_version=package_version.__version__
30883089
)
30893090

3091+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
3092+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
30903093

30913094
__all__ = ("SubscriberClient",)

google/pubsub_v1/services/subscriber/transports/base.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from google.api_core import retry as retries
2626
from google.auth import credentials as ga_credentials # type: ignore
2727
from google.oauth2 import service_account # type: ignore
28+
import google.protobuf
2829

2930
from google.iam.v1 import iam_policy_pb2 # type: ignore
3031
from google.iam.v1 import policy_pb2 # type: ignore
@@ -35,6 +36,9 @@
3536
client_library_version=package_version.__version__
3637
)
3738

39+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
40+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
41+
3842

3943
class SubscriberTransport(abc.ABC):
4044
"""Abstract transport class for Subscriber."""

google/pubsub_v1/services/subscriber/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
7373
f"Sending request for {client_call_details.method}",
7474
extra={
7575
"serviceName": "google.pubsub.v1.Subscriber",
76-
"rpcName": client_call_details.method,
76+
"rpcName": str(client_call_details.method),
7777
"request": grpc_request,
7878
"metadata": grpc_request["metadata"],
7979
},
8080
)
81-
8281
response = continuation(client_call_details, request)
8382
if logging_enabled: # pragma: NO COVER
8483
response_metadata = response.trailing_metadata()

google/pubsub_v1/services/subscriber/transports/rest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
from google.api_core import rest_helpers
2424
from google.api_core import rest_streaming
2525
from google.api_core import gapic_v1
26+
import google.protobuf
2627

2728
from google.protobuf import json_format
2829
from google.iam.v1 import iam_policy_pb2 # type: ignore
@@ -61,6 +62,9 @@
6162
rest_version=f"requests@{requests_version}",
6263
)
6364

65+
if hasattr(DEFAULT_CLIENT_INFO, "protobuf_runtime_version"): # pragma: NO COVER
66+
DEFAULT_CLIENT_INFO.protobuf_runtime_version = google.protobuf.__version__
67+
6468

6569
class SubscriberRestInterceptor:
6670
"""Interceptor for Subscriber.

testing/constraints-3.13.txt

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# -*- coding: utf-8 -*-
2-
# This constraints file is required for unit tests.
1+
# We use the constraints file for the latest Python version
2+
# (currently this file) to check that the latest
3+
# major versions of dependencies are supported in setup.py.
34
# List all library dependencies and extras in this file.
4-
google-api-core
5-
proto-plus
6-
protobuf
7-
grpc-google-iam-v1
5+
# Require the latest major version be installed for each dependency.
6+
# e.g., if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0",
7+
# Then this file should have google-cloud-foo>=1
8+
google-api-core>=2
9+
google-auth>=2
10+
proto-plus>=1
11+
protobuf>=6
12+
grpc-google-iam-v1>=0

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.