Skip to content

Commit 55fcf19

Browse files
committed
feat: update to python 3.9
1 parent 9b7bc01 commit 55fcf19

File tree

5 files changed

+8
-14
lines changed

5 files changed

+8
-14
lines changed

.github/workflows/publish-to-test-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on: push
55
jobs:
66
build-n-publish:
77
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
8-
runs-on: ubuntu-18.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@master
11-
- name: Set up Python 3.8
11+
- name: Set up Python 3.9
1212
uses: actions/setup-python@v2
1313
with:
14-
python-version: 3.8
14+
python-version: 3.9
1515

1616
- name: Install pypa/build
1717
run: >-

airzone/protocol.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import time
33
from threading import Lock
44

5+
from pymodbus import FramerType # type: ignore
56
from pymodbus.client import ModbusTcpClient as ModbusClient # type: ignore
6-
from pymodbus.transaction import ModbusRtuFramer # type: ignore
77

88
from airzone.utils import *
99

@@ -18,7 +18,7 @@ def modbus_factory(url, port, use_rtu_framer = False):
1818
1919
"""
2020
if use_rtu_framer:
21-
client = ModbusClient(url, port, ModbusRtuFramer)
21+
client = ModbusClient(url, port, framer=FramerType.RTU)
2222
else:
2323
client = ModbusClient(url, port)
2424
return client

requirements.test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pyModbus>=3.2.1
1+
pyModbus>=3.7.0
22
pybase64
33
importlib-metadata
44
requests

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pyModbus>=3.2.1
1+
pyModbus>=3.7.0
22
pybase64
33
importlib-metadata
44
requests

setup.cfg

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = python-airzone
3-
version = 0.14.0
3+
version = 0.16.0
44
description = 'Python library for interfacing with Airzone using the modbus protocol', # Required
55
long_description = file: README.rst
66
keywords = innobus, airzone, modbus, HVAC
@@ -17,12 +17,6 @@ classifiers =
1717
Intended Audience :: Developers
1818
Topic :: Software Development :: Build Tools
1919
License :: OSI Approved :: MIT License
20-
Programming Language :: Python :: 3
21-
Programming Language :: Python :: 3.4
22-
Programming Language :: Python :: 3.5
23-
Programming Language :: Python :: 3.6
24-
Programming Language :: Python :: 3.7
25-
Programming Language :: Python :: 3.8
2620
Programming Language :: Python :: 3.9
2721

2822
[options]

0 commit comments

Comments
 (0)