Skip to content
Merged
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
6 changes: 3 additions & 3 deletions .github/workflows/modpoll-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
Expand Down Expand Up @@ -83,9 +84,8 @@ jobs:
run: python .github/scripts/preview-release.py pypi "$TAG"
- name: Publish application to PyPI
if: steps.pypi.outputs.state == 'absent'
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish --no-progress dist/*
# Trusted Publishing: PyPI accepts this workflow's OIDC identity; no token is stored.
run: uv publish --no-progress --trusted-publishing always dist/*
- name: Record functional prerelease
env:
GH_TOKEN: ${{ github.token }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/modpoll-wot-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
Expand All @@ -36,9 +37,8 @@ jobs:
working_directory: packages/modpoll-wot
- run: mise run check
- name: Publish to PyPI without replacing existing files
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish --no-progress --check-url https://pypi.org/simple/ dist/*
# Trusted Publishing: PyPI accepts this workflow's OIDC identity; no token is stored.
run: uv publish --no-progress --trusted-publishing always --check-url https://pypi.org/simple/ dist/*
- name: Verify the registry installation
timeout-minutes: 15
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/modsim-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
actions: read
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
Expand Down Expand Up @@ -62,9 +63,8 @@ jobs:
run: python .github/scripts/preview-release.py immutable "${GIT_TAG#modsim-v}"
- name: Publish PyPI package
if: steps.registry.outputs.exists == 'false'
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: uv publish --no-progress dist/*
# Trusted Publishing: PyPI accepts this workflow's OIDC identity; no token is stored.
run: uv publish --no-progress --trusted-publishing always dist/*
- name: Publish GitHub prerelease
env:
GH_TOKEN: ${{ github.token }}
Expand Down
14 changes: 5 additions & 9 deletions packages/modpoll/README.md
Original file line number Diff line number Diff line change
@@ -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[serial]==2.0.0a8'`; 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.0a12'`; 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

Expand Down Expand Up @@ -47,14 +47,10 @@ 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.0a8"
uv tool install --prerelease allow "modpoll==2.0.0a12"
```

Optionally, [pyserial](https://pyserial.readthedocs.io/) library can be installed for Modbus-RTU communication,

```bash
uv tool install --prerelease allow 'modpoll[serial]==2.0.0a8'
```
Modbus RTU support ([pyserial](https://pyserial.readthedocs.io/)) is included since 2.0.0a12.

Upgrade the tool via the following command,

Expand Down Expand Up @@ -173,7 +169,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.0a8
docker run --rm topmaker/modpoll:2.0.0a12
```

It shows the version of the tool by default.
Expand All @@ -185,7 +181,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.0a8 \
docker run --rm --network host -v "$(pwd)/examples:/app/examples:ro" topmaker/modpoll:2.0.0a12 \
modpoll -d \
--tcp 127.0.0.1 --tcp-port 5020 \
--config /app/examples/modsim.tm.json
Expand Down
10 changes: 10 additions & 0 deletions packages/modpoll/docs/preview-notes.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# Modpoll 2.0.0a12 preview

Modpoll 2.0.0a12 pins modpoll-wot 0.7.0a1:

- Modbus RTU works without extras: pyserial is now a regular dependency, so `uvx modpoll --rtu ...` and
`uv tool install modpoll` read serial devices. `modpoll[serial]` still installs, as an empty extra.
- A verification report whose date is not on the calendar (such as `2026-02-31`) is rejected, as ModioHub
already did on upload.
- modpoll reaches modpoll-wot through its public top-level interface only.

# Modpoll 2.0.0a11 preview

Modpoll 2.0.0a11 pins modpoll-wot 0.6.0a3 and is the first release after modsim and modpoll-wot joined this
Expand Down
12 changes: 4 additions & 8 deletions packages/modpoll/docs/site/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ Installation

This documentation describes the 2.x functional preview. Install the exact version::

uv tool install --prerelease allow 'modpoll[serial]==2.0.0a8'
uv tool install --prerelease allow 'modpoll==2.0.0a12'

For existing CSV installations use ``uv tool install 'modpoll<2'`` and the
`1.x documentation <https://top-maker.github.io/modpoll/1.x/>`_.
The preview image is ``topmaker/modpoll:2.0.0a8``; stable ``latest`` stays on 1.x.
The preview image is ``topmaker/modpoll:2.0.0a12``; 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.
Expand All @@ -19,13 +19,9 @@ The package is available in the `Python Package Index <https://pypi.org/>`_,

.. code-block:: shell

uv tool install --prerelease allow "modpoll==2.0.0a8"
uv tool install --prerelease allow "modpoll==2.0.0a12"

Optionally, pyserial library can be installed for Modbus-RTU communication,

.. code-block:: shell

uv tool install --prerelease allow 'modpoll[serial]==2.0.0a8'
Modbus RTU support (pyserial) is included since 2.0.0a12.

Run the following command to check if there is new version available,

Expand Down
7 changes: 5 additions & 2 deletions packages/modpoll/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "modpoll"
version = "2.0.0a11"
version = "2.0.0a12"
description = "A New Command-line Tool for Modbus and MQTT"
authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }]
readme = "README.md"
Expand All @@ -10,11 +10,14 @@ dependencies = [
"paho-mqtt>=2.1.0,<3.0.0",
"prettytable>=3.9.0,<4.0.0",
"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",
]

[project.optional-dependencies]
serial = ["pyserial>=3.5,<4.0"]
# Kept empty so existing `modpoll[serial]` commands still install.
serial = []

[dependency-groups]
dev = [
Expand Down
7 changes: 6 additions & 1 deletion packages/modsim/docs/preview-notes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Modsim 2.0.0a13 preview
# 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.

## Modsim 2.0.0a13 preview

Modsim 2.0.0a13 pins modpoll-wot 0.6.0a3 and is the first release from the
[modpoll repository](https://github.com/top-maker/modpoll/tree/v2/packages/modsim), where modsim, modpoll and
Expand Down
2 changes: 1 addition & 1 deletion packages/modsim/modsim/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0a13"
__version__ = "2.0.0a14"
2 changes: 1 addition & 1 deletion packages/modsim/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "modsim"
version = "2.0.0a13"
version = "2.0.0a14"
description = "A Simple Modbus TCP Device Simulator used for modpoll tool"
authors = [{ name = "Ying Shaodong", email = "helloysd@gmail.com" }]
readme = "README.md"
Expand Down
12 changes: 4 additions & 8 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading