From d0ecc4fa21a635ce8df191753e8636c032487519 Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Sat, 14 Nov 2026 20:09:29 +0800 Subject: [PATCH 1/2] chore: release modpoll-wot 0.7.0a2, modpoll 2.0.0a13 and modsim 2.0.0a15 --- packages/modpoll-wot/pyproject.toml | 2 +- packages/modpoll/README.md | 8 ++++---- packages/modpoll/docs/preview-notes.md | 4 ++-- packages/modpoll/docs/site/installation.rst | 6 +++--- packages/modpoll/pyproject.toml | 4 ++-- packages/modsim/docs/preview-notes.md | 7 ++++++- packages/modsim/modsim/__init__.py | 2 +- packages/modsim/pyproject.toml | 4 ++-- uv.lock | 6 +++--- 9 files changed, 24 insertions(+), 19 deletions(-) diff --git a/packages/modpoll-wot/pyproject.toml b/packages/modpoll-wot/pyproject.toml index 7c63565..b9e4a02 100644 --- a/packages/modpoll-wot/pyproject.toml +++ b/packages/modpoll-wot/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "modpoll-wot" -version = "0.7.0a1" +version = "0.7.0a2" description = "Shared WoT Modbus configuration interpreter" authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }] readme = "README.md" diff --git a/packages/modpoll/README.md b/packages/modpoll/README.md index f7aac30..96cd7b7 100644 --- a/packages/modpoll/README.md +++ b/packages/modpoll/README.md @@ -1,4 +1,4 @@ -> **2.x development branch.** This checkout accepts v1 CSV and WoT TM/TD JSON using profile 0.2; `--config` detects the format from the content. Install the current preview with `uv tool install --prerelease allow 'modpoll==2.0.0a12'`; stable 1.x remains available with `uv tool install 'modpoll<2'`. For development, run `make install`, then prefix project commands with `uv run`. +> **2.x development branch.** This checkout accepts v1 CSV and WoT TM/TD JSON using profile 0.2; `--config` detects the format from the content. Install the current preview with `uv tool install --prerelease allow 'modpoll==2.0.0a13'`; stable 1.x remains available with `uv tool install 'modpoll<2'`. For development, run `make install`, then prefix project commands with `uv run`. # Modpoll - A New Command-line Tool for Modbus and MQTT @@ -47,7 +47,7 @@ This tool requires Python 3.10+ (Ubuntu 22.04+ or equivalent) and is available o Install *modpoll* using the following command, ```bash -uv tool install --prerelease allow "modpoll==2.0.0a12" +uv tool install --prerelease allow "modpoll==2.0.0a13" ``` Modbus RTU support ([pyserial](https://pyserial.readthedocs.io/)) is included since 2.0.0a12. @@ -185,7 +185,7 @@ so `modsim --config device.tm.json --data snapshot.json` replays it locally. A docker image has been provided for user to directly run the tool without local installation, ```bash - docker run --rm topmaker/modpoll:2.0.0a12 + docker run --rm topmaker/modpoll:2.0.0a13 ``` It shows the version of the tool by default. @@ -197,7 +197,7 @@ If you want to load a local configure file, you need to mount a local folder ont for example, if the child folder `examples` contains the config file `modsim.tm.json`, we can use it via the following command, ```bash - docker run --rm --network host -v "$(pwd)/examples:/app/examples:ro" topmaker/modpoll:2.0.0a12 \ + docker run --rm --network host -v "$(pwd)/examples:/app/examples:ro" topmaker/modpoll:2.0.0a13 \ modpoll -d \ --tcp 127.0.0.1 --tcp-port 5020 \ --config /app/examples/modsim.tm.json diff --git a/packages/modpoll/docs/preview-notes.md b/packages/modpoll/docs/preview-notes.md index a900674..c7f7b98 100644 --- a/packages/modpoll/docs/preview-notes.md +++ b/packages/modpoll/docs/preview-notes.md @@ -1,6 +1,6 @@ -# Modpoll 2.0.0a13 preview (unreleased) +# Modpoll 2.0.0a13 preview -Modpoll 2.0.0a13 writes verification report schema 5 (modpoll-wot with `identity_constants`): +Modpoll 2.0.0a13 pins modpoll-wot 0.7.0a2 and writes verification report schema 5: - A failed read lists each failed group as the device answered it (data table, addresses, exception code and its Modbus name, or no response), each point whose answer could not be decoded, and the groups not tried. diff --git a/packages/modpoll/docs/site/installation.rst b/packages/modpoll/docs/site/installation.rst index 82e7f71..8e7da34 100644 --- a/packages/modpoll/docs/site/installation.rst +++ b/packages/modpoll/docs/site/installation.rst @@ -3,11 +3,11 @@ Installation This documentation describes the 2.x functional preview. Install the exact version:: - uv tool install --prerelease allow 'modpoll==2.0.0a12' + uv tool install --prerelease allow 'modpoll==2.0.0a13' For existing CSV installations use ``uv tool install 'modpoll<2'`` and the `1.x documentation `_. -The preview image is ``topmaker/modpoll:2.0.0a12``; stable ``latest`` stays on 1.x. +The preview image is ``topmaker/modpoll:2.0.0a13``; stable ``latest`` stays on 1.x. See :doc:`v1-compatibility` for tested platforms and hardware limitations. This program is tested on python 3.10+ (Ubuntu 22.04+ or equivalent). Ubuntu 20.04 and python 3.8 are no longer supported. @@ -19,7 +19,7 @@ The package is available in the `Python Package Index `_, .. code-block:: shell - uv tool install --prerelease allow "modpoll==2.0.0a12" + uv tool install --prerelease allow "modpoll==2.0.0a13" Modbus RTU support (pyserial) is included since 2.0.0a12. diff --git a/packages/modpoll/pyproject.toml b/packages/modpoll/pyproject.toml index cfffb2e..eae0b7f 100644 --- a/packages/modpoll/pyproject.toml +++ b/packages/modpoll/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "modpoll" -version = "2.0.0a12" +version = "2.0.0a13" description = "A New Command-line Tool for Modbus and MQTT" authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }] readme = "README.md" @@ -12,7 +12,7 @@ dependencies = [ "requests>=2.32.5,<3.0.0", # Modbus RTU works out of the box; pyserial is pure Python and installs everywhere. "pyserial>=3.5,<4.0", - "modpoll-wot==0.7.0a1", + "modpoll-wot==0.7.0a2", ] [project.optional-dependencies] diff --git a/packages/modsim/docs/preview-notes.md b/packages/modsim/docs/preview-notes.md index 09a6d6c..3809885 100644 --- a/packages/modsim/docs/preview-notes.md +++ b/packages/modsim/docs/preview-notes.md @@ -1,4 +1,9 @@ -# Modsim 2.0.0a14 preview +# Modsim 2.0.0a15 preview + +Modsim 2.0.0a15 pins modpoll-wot 0.7.0a2, which adds verification report schema 5 with identity results. It +changes nothing in the simulator. + +## Modsim 2.0.0a14 preview Modsim 2.0.0a14 pins modpoll-wot 0.7.0a1 and uses only its public, typed top-level interface. It changes nothing in the simulator. diff --git a/packages/modsim/modsim/__init__.py b/packages/modsim/modsim/__init__.py index 6a1f928..2ca1ba6 100644 --- a/packages/modsim/modsim/__init__.py +++ b/packages/modsim/modsim/__init__.py @@ -1 +1 @@ -__version__ = "2.0.0a14" +__version__ = "2.0.0a15" diff --git a/packages/modsim/pyproject.toml b/packages/modsim/pyproject.toml index 7c2e4d2..83266ac 100644 --- a/packages/modsim/pyproject.toml +++ b/packages/modsim/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "modsim" -version = "2.0.0a14" +version = "2.0.0a15" description = "A Simple Modbus TCP Device Simulator used for modpoll tool" authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }] readme = "README.md" @@ -8,7 +8,7 @@ requires-python = ">=3.10,<4.0" dependencies = [ "pymodbus~=3.16.1", "pyserial>=3.5,<4.0", - "modpoll-wot==0.7.0a1", + "modpoll-wot==0.7.0a2", "jsonschema>=4.21,<5", "PyYAML>=6,<7", ] diff --git a/uv.lock b/uv.lock index da87909..619f2fa 100644 --- a/uv.lock +++ b/uv.lock @@ -1338,7 +1338,7 @@ wheels = [ [[package]] name = "modpoll" -version = "2.0.0a12" +version = "2.0.0a13" source = { editable = "packages/modpoll" } dependencies = [ { name = "modpoll-wot", marker = "python_full_version < '3.15'" }, @@ -1398,7 +1398,7 @@ docs = [ [[package]] name = "modpoll-wot" -version = "0.7.0a1" +version = "0.7.0a2" source = { editable = "packages/modpoll-wot" } dependencies = [ { name = "jsonschema", marker = "python_full_version < '3.15'" }, @@ -1430,7 +1430,7 @@ dev = [ [[package]] name = "modsim" -version = "2.0.0a14" +version = "2.0.0a15" source = { editable = "packages/modsim" } dependencies = [ { name = "jsonschema", marker = "python_full_version < '3.15'" }, From ecec0120f18a67735528ff43a52ecd213744a9b3 Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Sat, 14 Nov 2026 20:11:53 +0800 Subject: [PATCH 2/2] chore: regenerate the modsim TD fixture with modpoll-wot 0.7.0a2 --- packages/modsim/tests/fixtures/io-module/generated.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/modsim/tests/fixtures/io-module/generated.json b/packages/modsim/tests/fixtures/io-module/generated.json index a09d792..d8911f6 100644 --- a/packages/modsim/tests/fixtures/io-module/generated.json +++ b/packages/modsim/tests/fixtures/io-module/generated.json @@ -3,7 +3,7 @@ "source_sha256": "4c2aee3334faf6622f4ee34a23108fa0ec100a6b3110a78200eee79da8935596", "generator": { "package": "modpoll-wot", - "version": "0.7.0a1" + "version": "0.7.0a2" }, "instance": { "host": "127.0.0.1",