From 767e8a42bcc39975e85ed4a7a72fae076693eb0c Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Thu, 4 Dec 2025 12:57:43 +0000 Subject: [PATCH 1/3] Replace manual changelog by automated GH release step --- .github/workflows/publish_pypi.yml | 5 ++ CHANGES.md | 118 ----------------------------- 2 files changed, 5 insertions(+), 118 deletions(-) delete mode 100644 CHANGES.md diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index a735b04e..9fcb63ef 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -20,3 +20,8 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.8.14 with: password: ${{ secrets.PYPI_PASSWORD }} + - name: Create a GitHub release + if: startsWith(github.ref, 'refs/tags') + run: gh release create --generate-notes "${GITHUB_REF#refs/tags/}" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGES.md b/CHANGES.md deleted file mode 100644 index 54196113..00000000 --- a/CHANGES.md +++ /dev/null @@ -1,118 +0,0 @@ -CHANGES -======= - -0.8.1 ------ - -* Fix thumbnail generation with missing rendering definition [#64](https://github.com/ome/omero-cli-render/pull/64) -* Remove future dependency [#63](https://github.com/ome/omero-cli-render/pull/63) -* Remove mox3 dependency [#60](https://github.com/ome/omero-cli-render/pull/60) -* Remove custom PyTest command [#61](https://github.com/ome/omero-cli-render/pull/61) -* Update GitHub actions [#57](https://github.com/ome/omero-cli-render/pull/57) - -0.8.0 ------ - -* Add new ``omero render get`` command [#56](https://github.com/ome/omero-cli-render/pull/56) -* Also print image ID in ``omero test`` command [#51](https://github.com/ome/omero-cli-render/pull/51) - - -0.7.0 ------ - -* Add support for setting min/max rendering values [#53](https://github.com/ome/omero-cli-render/pull/53) - -0.6.2 ------ - -* Ensure rendering service is closed for info subcommand [#47](https://github.com/ome/omero-cli-render/pull/47) - -0.6.1 ------ - -* Improve version detection logic [#44](https://github.com/ome/omero-cli-render/pull/44) - -0.6.0 ------ - -* Also set rendering setting (colors, windows) for disabled channels [#43](https://github.com/ome/omero-cli-render/pull/43) - - -0.5.1 ------ - -* Fix channel re-activation when render set is passed without `--disable` [#40](https://github.com/ome/omero-cli-render/pull/40) -* Fix REAMDE and usage [#41](https://github.com/ome/omero-cli-render/pull/41) - -0.5.0 ------ - -* Upgrade to Python 3 and consume new omero-py project [#31](https://github.com/ome/omero-cli-render/pull/31) [#32](https://github.com/ome/omero-cli-render/pull/32) [#37](https://github.com/ome/omero-cli-render/pull/37) [#38](https://github.com/ome/omero-cli-render/pull/38) -* Refactor rendering settings parsing [#34](https://github.com/ome/omero-cli-render/pull/34) - -0.4.3 ------ - -* Actively close rendering services when applying `render set` to a - collection of images [#29](https://github.com/ome/omero-cli-render/pull/29) - -0.4.2 ------ - -* Declare `PyYAML` as a package dependency - [#28](https://github.com/ome/omero-cli-render/pull/28) - -0.4.1 ------ - -* Make output of `render info --style yaml` subcommand yamllint compliant - [#26](https://github.com/ome/omero-cli-render/pull/26) - [#27](https://github.com/ome/omero-cli-render/pull/27) - -0.4.0 ------ - -* Drop Python 2.6 support - [#17](https://github.com/ome/omero-cli-render/pull/17) -* CLI render version 2: use start/end for setting channel rendering window - instead of min/max [#15](https://github.com/ome/omero-cli-render/pull/15) - [#22](https://github.com/ome/omero-cli-render/pull/22) -* CLI render version 2: add support for settings default z/t planes - [#23](https://github.com/ome/omero-cli-render/pull/23) - [#24](https://github.com/ome/omero-cli-render/pull/24) -* Add logic for render version detection logic - [#20](https://github.com/ome/omero-cli-render/pull/20) -* Review integration tests - [#21](https://github.com/ome/omero-cli-render/pull/21) - - -0.3.1 ------ - -* Add `--disable` option to `render set` [#9](https://github.com/ome/omero-cli-render/pull/9) -* Close services [#13](https://github.com/ome/omero-cli-render/pull/13) - -0.3.0 ------ - -* Remove `--copy` flag of `render set` [#8](https://github.com/ome/omero-cli-render/pull/8) -* Fix auto-disabling of channels if not specified in the YML/JSON [#8](https://github.com/ome/omero-cli-render/pull/8) -* Improve command-line documentation [#8](https://github.com/ome/omero-cli-render/pull/8) - -0.2.0 ------ - -* Rename `render edit` subcommand as `render set` and deprecate it [#7](https://github.com/ome/omero-cli-render/pull/7) -* Fix `render info` subcommand [#7](https://github.com/ome/omero-cli-render/pull/7) -* Allow rendering settings to be set at the Project/Dataset level [#7](https://github.com/ome/omero-cli-render/pull/7) - -0.1.1 ------ - -* Use cross-group querying and improve documentation of `render test` [#6](https://github.com/ome/omero-cli-render/pull/6) - -0.1.0 ------ - -* Extraction of the CLI render plugin from the openmicroscopy/openmicroscopy -* Initial PyPI release From e884271b965a79671a2d5081bb689be67d59e2e0 Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Thu, 4 Dec 2025 13:12:06 +0000 Subject: [PATCH 2/3] Use v1 --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 9fcb63ef..9541f93a 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -17,7 +17,7 @@ jobs: python -m build - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1.8.14 + uses: pypa/gh-action-pypi-publish@v1 with: password: ${{ secrets.PYPI_PASSWORD }} - name: Create a GitHub release From 4fd0721053daa1b9f80f12fb6e2e9b92e382642f Mon Sep 17 00:00:00 2001 From: Jean-Marie Burel Date: Thu, 4 Dec 2025 13:14:26 +0000 Subject: [PATCH 3/3] Use correct version --- .github/workflows/publish_pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_pypi.yml b/.github/workflows/publish_pypi.yml index 9541f93a..1eb4f8db 100644 --- a/.github/workflows/publish_pypi.yml +++ b/.github/workflows/publish_pypi.yml @@ -17,7 +17,7 @@ jobs: python -m build - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@v1 + uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_PASSWORD }} - name: Create a GitHub release