Skip to content

Commit 00c3486

Browse files
committed
Drop support for Python versions older than 3.11
Also remove version-specific classifiers in `pyproject.toml` as we are already specifying the supported Python versions in `requires-python`. Signed-off-by: Leandro Lucarella <[email protected]>
1 parent b6f51fa commit 00c3486

File tree

4 files changed

+6
-11
lines changed

4 files changed

+6
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ jobs:
2020
os:
2121
- ubuntu-20.04
2222
python:
23-
- "3.8"
24-
- "3.9"
25-
- "3.10"
2623
- "3.11"
2724
runs-on: ${{ matrix.os }}
2825

@@ -60,7 +57,7 @@ jobs:
6057
- name: Set up Python
6158
uses: actions/setup-python@v4
6259
with:
63-
python-version: "3.11"
60+
python-version: '3.11'
6461

6562
- name: Install build dependencies
6663
run: |

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ A development kit to interact with the Frequenz development platform.
88

99
## Supported Python versions
1010

11-
* For x86_64 Python 3.8 - 3.11 are supported (tested).
12-
* For arm64 only Python 3.8 is supported (due to some dependencies that only support 3.8).
11+
* Only Python 3.11 is fully supported (tested).
1312

1413
## Contributing
1514

RELEASE_NOTES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
## Summary
44

5-
<!-- Here goes a general summary of what this release is about -->
5+
This release drops support for Python versions older than 3.11.
66

77
## Upgrading
88

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+
911
* Now `float` is used everywhere for representing power (before power metrics were `float` but setting power was done using `int`).
1012
* `frequenz.sdk.actor.power_distributing`: the `power` attribute of the `Request` class has been updated from `int` to a `float`.
1113
* `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`.

pyproject.toml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,9 @@ classifiers = [
1818
"License :: OSI Approved :: MIT License",
1919
"Programming Language :: Python :: 3",
2020
"Programming Language :: Python :: 3 :: Only",
21-
"Programming Language :: Python :: 3.8",
22-
"Programming Language :: Python :: 3.9",
23-
"Programming Language :: Python :: 3.10",
2421
"Topic :: Software Development :: Libraries",
2522
]
26-
requires-python = ">= 3.8, < 4"
23+
requires-python = ">= 3.11, < 4"
2724
dependencies = [
2825
"frequenz-api-microgrid >= 0.11.0, < 0.12.0",
2926
"frequenz-channels >= 0.14.0, < 0.15.0",

0 commit comments

Comments
 (0)