Skip to content

Commit 688d250

Browse files
authored
Use Python 3.9 as minimum (#211)
1 parent bc3c2fb commit 688d250

24 files changed

Lines changed: 66 additions & 51 deletions

.github/workflows/pythonpackage.yml

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v5.5.0
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Python
3030
uses: actions/setup-python@v5.5.0
3131
with:
32-
python-version: "3.8"
32+
python-version: "3.9"
3333
- name: Lint with ruff
3434
run: |
3535
python -m pip install --upgrade pip
@@ -42,25 +42,6 @@ jobs:
4242
mypy devolo_plc_api
4343
mypy tests || true
4444
45-
test_old:
46-
name: Test with Python 3.8
47-
runs-on: ubuntu-latest
48-
steps:
49-
- name: Checkout sources
50-
uses: actions/checkout@v4.2.2
51-
- name: Set up Python 3.8
52-
uses: actions/setup-python@v5.5.0
53-
with:
54-
python-version: 3.8
55-
check-latest: true
56-
- name: Install dependencies
57-
run: |
58-
python -m pip install --upgrade pip
59-
python -m pip install -e .[test]
60-
- name: Test with pytest
61-
run: |
62-
pytest --cov=devolo_plc_api -p no:warnings
63-
6445
test:
6546
name: Test with Python ${{ matrix.python-version }}
6647
runs-on: ubuntu-latest

.github/workflows/pythonpublish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Set up Python
1313
uses: actions/setup-python@v5.5.0
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.9"
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip

README.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,20 @@ This project implements parts of the devolo PLC devices API in Python. Communica
1212
Defining the system requirements with exact versions typically is difficult. But there is a tested environment:
1313

1414
* Linux
15-
* Python 3.8.12
16-
* pip 20.2.4
17-
* httpx 0.21.0
18-
* protobuf 3.17.3
19-
* segno 1.5.2
20-
* zeroconf 0.70.0
15+
* Python 3.9.22
16+
* pip 25.0.1
17+
* ifaddr 0.2.0
18+
* httpx 0.28.1
19+
* protobuf 5.28.3
20+
* segno 1.6.1
21+
* zeroconf 0.146.1
2122

2223
Other versions and even other operating systems might work. Feel free to tell us about your experience. If you want to run our unit tests, you also need:
2324

24-
* pytest 6.2.5
25-
* pytest-asyncio 0.15.1
26-
* pytest-httpx 0.18
25+
* pytest 7.4.4
26+
* pytest-asyncio 0.26.0
27+
* pytest-httpx 0.35.0
28+
* syrupy 4.9.1
2729

2830
## Versioning
2931

devolo_plc_api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The devolo PLC API."""
2+
23
from importlib.metadata import PackageNotFoundError, version
34

45
from .device import Device

devolo_plc_api/clients/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Clients used to communicate with devolo devices."""
2+
23
from .protobuf import Protobuf
34

45
__all__ = ["Protobuf"]

devolo_plc_api/clients/protobuf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Google Protobuf client."""
2+
23
from __future__ import annotations
34

45
import asyncio

devolo_plc_api/device_api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""The devolo device API."""
2+
23
import re
34

45
from .deviceapi import DeviceApi

devolo_plc_api/device_api/deviceapi.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Implementation of the devolo device API."""
2+
23
from __future__ import annotations
34

45
import functools

devolo_plc_api/exceptions/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Exceptions used by the package."""
2+
23
from .device import DeviceNotFound, DevicePasswordProtected, DeviceUnavailable
34
from .feature import FeatureNotSupported
45

devolo_plc_api/helpers/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Helper methods to allow advanced usage of information provided by the device."""
2+
23
from io import BytesIO
34
from typing import Any
45

0 commit comments

Comments
 (0)