diff --git a/docs/preview-notes.md b/docs/preview-notes.md index ac160b9..d71b871 100644 --- a/docs/preview-notes.md +++ b/docs/preview-notes.md @@ -1,4 +1,14 @@ -# Next preview +# Modpoll 2.0.0a10 preview + +Modpoll 2.0.0a10 keeps modpoll-wot 0.6.0a2: + +- A one-shot run (`--once`, `--report`) stops at the first group a device does not answer and reports the + remaining groups as not read, instead of waiting for a timeout on every group. +- Modsim 2.0.0a12 listens on port 5020 by default: read a local simulator with `--tcp 127.0.0.1 --tcp-port 5020`. + It can also simulate Modbus RTU on a virtual serial port (`modsim --serial pty`), which prints the + `modpoll --serial ...` command to read it. + +# Modpoll 2.0.0a9 preview `--report` includes the upload and `--upload` stands alone (modpoll-wot 0.6.0a2): diff --git a/pyproject.toml b/pyproject.toml index 21409d6..6876436 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "modpoll" -version = "2.0.0a9" +version = "2.0.0a10" description = "A New Command-line Tool for Modbus and MQTT" authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }] readme = "README.md" diff --git a/tests/test_login.py b/tests/test_login.py index a6b41d2..d5613b5 100644 --- a/tests/test_login.py +++ b/tests/test_login.py @@ -281,6 +281,8 @@ def post(url, json=None, headers=None, timeout=None): def test_upload_asks_first_and_needs_a_login(monkeypatch, tmp_path, capsys): + # The scripted answers also reach the save-location prompt; keep that report out of the repository. + monkeypatch.chdir(tmp_path) path = tmp_path / "meter.tm.json" path.write_text(json.dumps(three_group_model())) posted = [] diff --git a/uv.lock b/uv.lock index af69f6d..8a12351 100644 --- a/uv.lock +++ b/uv.lock @@ -683,7 +683,7 @@ wheels = [ [[package]] name = "modpoll" -version = "2.0.0a9" +version = "2.0.0a10" source = { editable = "." } dependencies = [ { name = "modpoll-wot", marker = "python_full_version < '3.15'" },