From 4b1deac6975f5a42f21755884c838a1c2c42cd39 Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Wed, 13 Aug 2025 20:46:34 +1000 Subject: [PATCH 1/2] ci: publish: only run on tags Don't run this action on every push. Signed-off-by: Jordan Yates --- .github/workflows/publish.yml | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 46513b3..963fc6e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,6 +1,9 @@ name: Publish Python distribution to PyPI -on: push +on: + push: + tags: + - v* jobs: build: @@ -51,27 +54,3 @@ jobs: path: dist/ - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - - publish-to-testpypi: - name: Publish Python distribution to TestPyPI - needs: - - build - runs-on: ubuntu-latest - - environment: - name: testpypi - url: https://test.pypi.org/p/infuse_iot - - permissions: - id-token: write - - steps: - - name: Download all the dists - uses: actions/download-artifact@v4 - with: - name: python-package-distributions - path: dist/ - - name: Publish distribution to TestPyPI - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ From 6a0ce13b18d743fd59d9384109111cdf38b29b9e Mon Sep 17 00:00:00 2001 From: Jordan Yates Date: Wed, 13 Aug 2025 20:47:08 +1000 Subject: [PATCH 2/2] README: update with PyPI Update the README with the PyPI install instructions. Signed-off-by: Jordan Yates --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c7f3673..30f8694 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,10 @@ ## Installation -Clone source code from Github and install as a local pip package. +Install from PyPI with ``pip`` or ``pipx``: ``` -git clone git@github.com:Embeint/python-tools.git -pip install -e python-tools +pip install infuse-iot ``` ## Register Autocomplete @@ -36,6 +35,8 @@ commands: credentials Manage Infuse-IoT credentials csv_annotate Annotate CSV data csv_plot Plot CSV data + data_logger_sync + Synchronise data logger state from remote devices gateway Connect to a local gateway device localhost Run a local server for TDF viewing native_bt Native Bluetooth gateway