From 6f5ef7842121fe101fba43fe9d2c78f085ff604c Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Tue, 10 Nov 2026 22:27:02 +0800 Subject: [PATCH 1/2] feat!: pin modpoll-wot 0.3.0a3 for 2.0.0a6 (WOT-03) Use the same interpreter as modpoll 2.0.0a5, so modsim also rejects Thing Models that still declare the removed modpoll:audit plan. Co-Authored-By: Claude Opus 5.5 --- docs/preview-notes.md | 18 +++++++++++++++--- modsim/__init__.py | 2 +- pyproject.toml | 4 ++-- uv.lock | 11 +++++------ 4 files changed, 23 insertions(+), 12 deletions(-) diff --git a/docs/preview-notes.md b/docs/preview-notes.md index d81abca..9ee4f66 100644 --- a/docs/preview-notes.md +++ b/docs/preview-notes.md @@ -1,4 +1,18 @@ -# Modsim 2.0.0a5 preview +# Modsim 2.0.0a6 preview + +Modsim 2.0.0a6 pins modpoll-wot 0.3.0a3, the same interpreter as modpoll +2.0.0a5. Thing Models no longer carry a `modpoll:audit` plan: a TM that still +declares one is rejected as an unsupported root project extension, so modsim +and modpoll accept the same models. Delete the key to migrate. Simulation, +ports and remote loading are unchanged from 2.0.0a5: + +```sh +uvx --prerelease allow modsim==2.0.0a6 --config https://example.org/device.tm.json +``` + +### Previous preview + +#### Modsim 2.0.0a5 Without `--port`, modsim now listens on the standard Modbus port: 502 for TCP and UDP, 802 for Modbus/TLS. A simulator started from a ModioHub Thing Model is @@ -14,8 +28,6 @@ with sudo (`sudo "$(command -v uvx)" modsim ...`) or choose a port above 1023, for example `--port 5020`. Managed deployments keep their explicit server port. This preview still pins modpoll-wot 0.2.0a4. -### Previous preview - #### Modsim 2.0.0a4 Remote models and scenarios load directly from a site such as ModioHub: diff --git a/modsim/__init__.py b/modsim/__init__.py index dbfe9c5..24aa5d3 100644 --- a/modsim/__init__.py +++ b/modsim/__init__.py @@ -1 +1 @@ -__version__ = "2.0.0a5" +__version__ = "2.0.0a6" diff --git a/pyproject.toml b/pyproject.toml index 71ca43b..24fd54f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,13 +1,13 @@ [project] name = "modsim" -version = "2.0.0a5" +version = "2.0.0a6" description = "A Simple Modbus TCP Device Simulator used for modpoll tool" authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }] readme = "README.md" requires-python = ">=3.10,<4.0" dependencies = [ "pymodbus~=3.16.1", - "modpoll-wot==0.2.0a4", + "modpoll-wot==0.3.0a3", "jsonschema>=4.21,<5", "PyYAML>=6,<7", ] diff --git a/uv.lock b/uv.lock index 16e6ef1..d4bd088 100644 --- a/uv.lock +++ b/uv.lock @@ -829,21 +829,20 @@ wheels = [ [[package]] name = "modpoll-wot" -version = "0.2.0a4" +version = "0.3.0a3" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "jsonschema", marker = "python_full_version < '3.15'" }, - { name = "pyyaml", marker = "python_full_version < '3.15'" }, { name = "referencing", marker = "python_full_version < '3.15'" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/f0/ca/beb17dcdca9a1112d9d0f533988527bb49d32fb0a6986b2d247d2e90c063/modpoll_wot-0.2.0a4.tar.gz", hash = "sha256:dacf5de45d4dd987650cb085068bc0a3f028896a713946c929cc18f8046921d1", size = 44852, upload-time = "2026-11-04T05:38:14.015Z" } +sdist = { url = "https://files.pythonhosted.org/packages/ec/c3/aec90bc5a9b1eac294e49e6f0d5ad85846da505f9ee12639ac57d2ba74c7/modpoll_wot-0.3.0a3.tar.gz", hash = "sha256:e2f61c65540d8487eb1f91adbff812d29580c3195632a4a2377374134ee84305", size = 50388, upload-time = "2026-11-10T13:56:03.147Z" } wheels = [ - { url = "https://files.pythonhosted.org/packages/1b/2f/d7287c8d4c7604d598139eaf13f6b086e54094fd996135f1fd814c5dbf74/modpoll_wot-0.2.0a4-py3-none-any.whl", hash = "sha256:27b7acc8036e01ab83f8e8ed06236dfd164edbeb96d54f61950adfdc144edac3", size = 40757, upload-time = "2026-11-04T05:38:12.879Z" }, + { url = "https://files.pythonhosted.org/packages/09/80/cf5e0a63ff469cda8818116e5f8e3bdc8a293aa83a8ba788566f7903198f/modpoll_wot-0.3.0a3-py3-none-any.whl", hash = "sha256:1fb4a27a5a4503512303155881ec8b13c0543d086d39767d613434782d46161e", size = 42463, upload-time = "2026-11-10T13:56:02.184Z" }, ] [[package]] name = "modsim" -version = "2.0.0a5" +version = "2.0.0a6" source = { editable = "." } dependencies = [ { name = "jsonschema", marker = "python_full_version < '3.15'" }, @@ -873,7 +872,7 @@ docs = [ [package.metadata] requires-dist = [ { name = "jsonschema", specifier = ">=4.21,<5" }, - { name = "modpoll-wot", specifier = "==0.2.0a4" }, + { name = "modpoll-wot", specifier = "==0.3.0a3" }, { name = "pymodbus", specifier = "~=3.16.1" }, { name = "pyyaml", specifier = ">=6,<7" }, ] From dd9352a717fc524c05c909b81530d0005a35a2ef Mon Sep 17 00:00:00 2001 From: Gavin Ying Date: Tue, 10 Nov 2026 22:28:45 +0800 Subject: [PATCH 2/2] test: regenerate the io-module TD with modpoll-wot 0.3.0a3 Only the recorded generator version changes; the TD is identical. Co-Authored-By: Claude Opus 5.5 --- tests/fixtures/io-module/generated.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures/io-module/generated.json b/tests/fixtures/io-module/generated.json index 0d0a3c5..dee870f 100644 --- a/tests/fixtures/io-module/generated.json +++ b/tests/fixtures/io-module/generated.json @@ -3,7 +3,7 @@ "source_sha256": "4c2aee3334faf6622f4ee34a23108fa0ec100a6b3110a78200eee79da8935596", "generator": { "package": "modpoll-wot", - "version": "0.2.0a4" + "version": "0.3.0a3" }, "instance": { "host": "127.0.0.1",