Skip to content

Commit a385257

Browse files
authoredJul 25, 2024
Force grpclib to be at least 0.4.8rc2 (#1012)
This release candidate fixes an important bug when using IPv6 addresses. Fixes #1003.
2 parents 7563587 + c50ece1 commit a385257

File tree

2 files changed

+2
-23
lines changed

2 files changed

+2
-23
lines changed
 

‎RELEASE_NOTES.md

+1-23
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,5 @@
11
# Frequenz Python SDK Release Notes
22

3-
## Upgrading
4-
5-
- The `frequenz-client-microgrid` dependency was bumped to v0.4.0. If you are using the client directly in your code, you will need to upgrade too.
6-
7-
- Calls to `microgrid.*_pool` methods now always need to specified a priority value, corresponding to the requirements/priority of the actor making the call.
8-
9-
- The `microgrid.*_pool` methods would only accept keyword arguments from now on.
10-
11-
- The `microgrid.initialize()` method now takes a `server_url` instead of a `host` and `port`.
12-
13-
The following format is expected: `grpc://hostname{:port}{?ssl=ssl}`, where the port should be an int between `0` and `65535` (defaulting to `9090`) and `ssl` should be a boolean (defaulting to `false`). For example: `grpc://localhost` or `grpc://localhost:1090?ssl=true`.
14-
15-
The default was also removed, so you always need to specify the server URL.
16-
17-
This applies to the `ConnectionManager` as well, which also now doesn't expose the `host` and `port` attributes, only the `server_url`. If you need to extract the host or port from the `server_url`, you can use the standard Python `urllib.parse.urlparse()` function.
18-
19-
- The `Config` class was removed and the `ConfigManagingActor` now sends a plain dictionary rather than a `Config` object.
20-
21-
## New Features
22-
23-
- Calls to `microgrid.*_pool` methods now accept an optional `set_operating_point` parameter, for setting an operating point for the other actors. This would shift the target power by the operating point before actually applying it to the components.
24-
253
## Bug Fixes
264

27-
- When the PowerDistributor receives a zero power request for PV inverters, it now correctly sets zero power to the inverters, and no longer crashes.
5+
- Bump the `grpclib` dependency to pull a fix for using IPv6 addresses.

‎pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ dependencies = [
3434
"networkx >= 2.8, < 4",
3535
"numpy >= 1.26.4, < 2",
3636
"typing_extensions >= 4.6.1, < 5",
37+
"grpclib >= 0.4.8rc2",
3738
]
3839
dynamic = ["version"]
3940

0 commit comments

Comments
 (0)