Skip to content

Commit 2743372

Browse files
authored
Merge pull request #134 from vchrisb/python10
* remove EOL Python 3.8 and 3.9 * TypeAlias for RscpMessage * update actions * use native types and updated syntax
2 parents 1c3dc8a + 74bab4c commit 2743372

File tree

11 files changed

+104
-134
lines changed

11 files changed

+104
-134
lines changed

.github/workflows/make_wheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Prepare python
19-
uses: actions/setup-python@v5
19+
uses: actions/setup-python@v6
2020
with:
2121
python-version: '3.10'
2222

2323
- name: Install python dependencies
2424
run: pip install build
2525

2626
- name: Checkout repository
27-
uses: actions/checkout@v4
27+
uses: actions/checkout@v5
2828

2929
- name: Build wheel
3030
run: python -m build

.github/workflows/validate.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
10+
python-version: ["3.10", "3.11", "3.12", "3.13"]
1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v5
1313
- name: Set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@v6
1515
with:
1616
python-version: ${{ matrix.python-version }}
1717
- name: Install dependencies
@@ -24,5 +24,7 @@ jobs:
2424
run: isort ./ --check
2525
- name: Run black
2626
run: black ./ --check
27+
- name: Run pyright
28+
run: pyright
2729
- name: Run test install
2830
run: pip install .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Codestyle](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
66
[![Documentation Status](https://readthedocs.org/projects/python-e3dc/badge/?version=latest)](https://python-e3dc.readthedocs.io/en/latest/?badge=latest)
77

8-
**NOTE: With Release 0.8.0 at least Python 3.8 is required**
8+
**NOTE: With Release 0.10.0 at least Python 3.10 is required**
99

1010
Python API for querying an [E3/DC](https://e3dc.de/) systems
1111

e3dc/_RSCPEncryptDecrypt.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
from __future__ import annotations # required for python < 3.9
2-
31
import math
42

53
from py3rijndael import RijndaelCbc, ZeroPadding # type: ignore

e3dc/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from ._e3dc import E3DC, AuthenticationError, NotAvailableError, PollError, SendError
99
from ._e3dc_rscp_local import CommunicationError, RSCPAuthenticationError, RSCPKeyError
1010
from ._e3dc_rscp_web import RequestTimeoutError, SocketNotReady
11-
from ._rscpLib import FrameError
11+
from ._rscpLib import FrameError, RscpMessage
1212
from ._rscpLib import set_debug as set_rscp_debug
1313

1414
__all__ = [
@@ -23,6 +23,7 @@
2323
"RequestTimeoutError",
2424
"SocketNotReady",
2525
"FrameError",
26+
"RscpMessage",
2627
"set_rscp_debug",
2728
]
28-
__version__ = "0.9.3"
29+
__version__ = "0.10.0"

0 commit comments

Comments
 (0)