Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 96
chore: require Python ≥ 3.9, protobuf ≥ 4.25.8#877
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
1e45eb4e3b50d94e73563735b8496d057a4717c652eb5ebef807a2fa03d47bd9012e925ef9f1f38cdc12be692f4397d7e132132a16e202309697839657dcf526b8162b49e1a8eb08a55e6d3c4cc57a4cfb5f11267294f00a0a278a0f0afeb4339dd36d4c2eb1ec9ad2ff8b6b5697680c681ec47c47dc4060e9c90File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -27,25 +27,7 @@ | ||||
| from google.api_core import exceptions, general_helpers | ||||
| PROTOBUF_VERSION = google.protobuf.__version__ | ||||
| # The grpcio-gcp package only has support for protobuf < 4 | ||||
| if PROTOBUF_VERSION[0:2] == "3.": # pragma: NO COVER | ||||
| try: | ||||
| import grpc_gcp | ||||
| warnings.warn( | ||||
| """Support for grpcio-gcp is deprecated. This feature will be | ||||
| removed from `google-api-core` after January 1, 2024. If you need to | ||||
| continue to use this feature, please pin to a specific version of | ||||
| `google-api-core`.""", | ||||
| DeprecationWarning, | ||||
| ) | ||||
| HAS_GRPC_GCP = True | ||||
| except ImportError: | ||||
| HAS_GRPC_GCP = False | ||||
| else: | ||||
| HAS_GRPC_GCP = False | ||||
| HAS_GRPC_GCP = False | ||||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Created chaser PR #892 | ||||
| # The list of gRPC Callable interfaces that return iterators. | ||||
| @@ -366,8 +348,7 @@ def create_channel( | ||||
| result in `ValueError` as this combination is not yet supported. | ||||
| kwargs: Additional key-word args passed to | ||||
| :func:`grpc_gcp.secure_channel` or :func:`grpc.secure_channel`. | ||||
| Note: `grpc_gcp` is only supported in environments with protobuf < 4.0.0. | ||||
| :func:`grpc.secure_channel`. | ||||
| Returns: | ||||
| grpc.Channel: The created channel. | ||||
| @@ -393,20 +374,6 @@ def create_channel( | ||||
| default_host=default_host, | ||||
| ) | ||||
| # Note that grpcio-gcp is deprecated | ||||
| if HAS_GRPC_GCP: # pragma: NO COVER | ||||
| if compression is not None and compression != grpc.Compression.NoCompression: | ||||
| warnings.warn( | ||||
| "The `compression` argument is ignored for grpc_gcp.secure_channel creation.", | ||||
| DeprecationWarning, | ||||
| ) | ||||
| if attempt_direct_path: | ||||
| warnings.warn( | ||||
| """The `attempt_direct_path` argument is ignored for grpc_gcp.secure_channel creation.""", | ||||
| DeprecationWarning, | ||||
| ) | ||||
| return grpc_gcp.secure_channel(target, composite_credentials, **kwargs) | ||||
| if attempt_direct_path: | ||||
| target = _modify_target_for_direct_path(target) | ||||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.