You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Drop support for Python versions older than 3.11 (#401)
- Reformat `pyproject.toml` using `taplo`
- Drop support for Python versions older than 3.11
- Improve typing annotations
- Remove Sample comparison hack
Fixes#148, fixes#399.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,20 @@
2
2
3
3
## Summary
4
4
5
-
<!-- Here goes a general summary of what this release is about -->
5
+
This release drops support for Python versions older than 3.11.
6
6
7
7
## Upgrading
8
8
9
+
* Now Python 3.11 is the minimum supported version. All users must upgrade to Python 3.11 (including virtual environments used for development).
10
+
9
11
* Now `float` is used everywhere for representing power (before power metrics were `float` but setting power was done using `int`).
10
12
*`frequenz.sdk.actor.power_distributing`: the `power` attribute of the `Request` class has been updated from `int` to a `float`.
11
13
*`frequenz.sdk.microgrid`: the `set_power()` method of both the `MicrogridApiClient` and `MicrogridGrpcClient` classes now expect a `float` value for the `power_w` parameter instead of `int`.
12
14
13
15
* The `LogicalMeter` no longer takes a `component_graph` parameter.
14
16
17
+
* Now `frequenz.sdk.timeseries.Sample` uses a more sensible comparison. Before this release `Sample`s were compared only based on the `timestamp`. This was due to a limitation in Python versions earlier than 3.10. Now that the minimum supported version is 3.11 this hack is not needed anymore and `Sample`s are compared using both `timestamp` and `value` as most people probably expects.
18
+
15
19
## New Features
16
20
17
21
<!-- Here goes the main new features and examples or instructions on how to use them -->
0 commit comments