Skip to content

Commit

Permalink
feat(framework) Bump grpcio version to 1.69.0 (#4833)
Browse files Browse the repository at this point in the history
  • Loading branch information
chongshenng authored Jan 17, 2025
1 parent 3128ab4 commit dc452ce
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ flower-client-app = "flwr.client.supernode:run_client_app" # Deprecated
python = "^3.9"
# Mandatory dependencies
numpy = ">=1.26.0,<3.0.0"
grpcio = "^1.60.0,!=1.64.2,<=1.64.3"
grpcio = "^1.69.0"
protobuf = "^4.25.2"
cryptography = "^42.0.4"
pycryptodome = "^3.18.0"
Expand Down
6 changes: 0 additions & 6 deletions src/py/flwr/client/grpc_client/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@
)
from flwr.proto.transport_pb2_grpc import FlowerServiceStub # pylint: disable=E0611

# The following flags can be uncommented for debugging. Other possible values:
# https://github.com/grpc/grpc/blob/master/doc/environment_variables.md
# import os
# os.environ["GRPC_VERBOSITY"] = "debug"
# os.environ["GRPC_TRACE"] = "tcp,http"


def on_channel_state_change(channel_connectivity: str) -> None:
"""Log channel connectivity."""
Expand Down
7 changes: 7 additions & 0 deletions src/py/flwr/common/grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@


import concurrent.futures
import os
import sys
from collections.abc import Sequence
from logging import DEBUG, ERROR
Expand All @@ -35,6 +36,12 @@

AddServicerToServerFn = Callable[..., Any]

if "GRPC_VERBOSITY" not in os.environ:
os.environ["GRPC_VERBOSITY"] = "error"
# The following flags can be uncommented for debugging. Other possible values:
# https://github.com/grpc/grpc/blob/master/doc/environment_variables.md
# os.environ["GRPC_TRACE"] = "tcp,http"


def create_channel(
server_address: str,
Expand Down

0 comments on commit dc452ce

Please sign in to comment.