Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions commhandler/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.1] - 2025-12-17

## Changed

- updated minimal dependency versions, maintain Python 3.9 compatibility

### Fixed

- include `pyserial` in required dependencies, fixes error when serial device is created
- configure Modbus byte/word order according to SGr specification


## [0.5.0] - 2025-10-27

### Added
Expand Down
16 changes: 8 additions & 8 deletions commhandler/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ maintainers = [
{ name = "Matthias Krebs" }
]
dependencies = [
"Jinja2>=3.1.0,<4.0.0",
"jmespath>=1.0.0,<2.0.0",
"Jinja2>=3.1.6,<4.0.0",
"jmespath>=1.0.1,<2.0.0",
"jsonata-python>=0.6.0,<1.0.0",
"parsel>=1.10.0,<1.11.0",
"pymodbus>=3.7.0,<3.8.0",
"pymodbus[serial]>=3.7.4,<3.8.0",
"gmqtt>=0.7.0,<1.0.0",
"xsdata>=25.0.0,<26.0.0",
"xmlschema>=4.1.0,<5.0.0",
"aiohttp>=3.12.0,<4.0.0",
"certifi",
"cachetools>=6.2.0,<7.0.0",
"xsdata>=25.7.0,<26.0.0",
"xmlschema>=4.2.0,<5.0.0",
"aiohttp>=3.13.2,<4.0.0",
"certifi>=25.11.12",
"cachetools>=6.2.4,<7.0.0",
"sgr-specification>=2.2.0,<3.0.0"
]

Expand Down
4 changes: 2 additions & 2 deletions commhandler/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pytest>=8.4.0,<9.0.0
pytest-asyncio>=1.0.0,<2.0.0
pytest>=8.4.2,<9.0.0
pytest-asyncio>=1.1.1,<1.2.0
6 changes: 3 additions & 3 deletions commhandler/requirements-doc.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sphinx>=7.4.0,<8.0.0
sphinx-autoapi>=3.6.0,<4.0.0
sphinx-rtd-theme>=3.0.0,<4.0.0
sphinx>=7.4.7,<8.0.0
sphinx-autoapi>=3.6.1,<4.0.0
sphinx-rtd-theme>=3.0.2,<4.0.0
16 changes: 8 additions & 8 deletions commhandler/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Jinja2>=3.1.0,<4.0.0
jmespath>=1.0.0,<2.0.0
Jinja2>=3.1.6,<4.0.0
jmespath>=1.0.1,<2.0.0
jsonata-python>=0.6.0,<1.0.0
parsel>=1.10.0,<1.11.0
pymodbus>=3.7.0,<3.8.0
pymodbus[serial]>=3.7.4,<3.8.0
gmqtt>=0.7.0,<1.0.0
xsdata>=25.0.0,<26.0.0
xmlschema>=4.1.0,<5.0.0
aiohttp>=3.12.0,<4.0.0
certifi
cachetools>=6.2.0,<7.0.0
xsdata>=25.7.0,<26.0.0
xmlschema>=4.2.0,<5.0.0
aiohttp>=3.13.2,<4.0.0
certifi>=25.11.12
cachetools>=6.2.4,<7.0.0
sgr-specification>=2.2.0,<3.0.0
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ def __init__(self, endianness: BitOrder, addr_offset: int, client: ModbusBaseCli
self._lock = threading.Lock()
self._client: ModbusBaseClient = client
self._byte_order: Endian = (
Endian.BIG
if endianness is None or endianness == BitOrder.BIG_ENDIAN
else Endian.LITTLE
Endian.LITTLE
if endianness
in {BitOrder.CHANGE_BYTE_ORDER, BitOrder.CHANGE_BIT_ORDER}
else Endian.BIG
)
self._word_order: Endian = (
Endian.LITTLE
Expand Down Expand Up @@ -261,10 +262,10 @@ def __init__(self, ip: str, port: int, endianness: BitOrder = BitOrder.BIG_ENDIA
AsyncModbusTcpClient(
host=ip,
port=port,
timeout=1,
timeout=1.0,
retries=0,
reconnect_delay=5000,
reconnect_delay_max=30000
reconnect_delay=1.0,
reconnect_delay_max=30.0
)
)
"""
Expand Down
2 changes: 1 addition & 1 deletion specification/requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
xsdata[cli]>=25.0.0,<26.0.0
xsdata[cli]>=25.7.0,<26.0.0