From b3dbf377e9fb7a04bd6da01f51312b9a4f754d99 Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:45:04 -0400 Subject: [PATCH 1/5] update CHANGELOG.rst --- CHANGELOG.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 650639fc2..377ae43d8 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,13 +2,13 @@ Changelog ========= -v0.54.0 (unreleased) --------------------- +v0.53.2 (202410-24) +------------------- Contributors to this version: Éric Dupuis (:user:`coxipi`), Pascal Bourgault (:user:`aulemahal`). Bug fixes ^^^^^^^^^ -* Conversion of units of multivariate DataArray is now properly handled in `sdba.TrainAdjust` and `sdba.Adjust`. There was a bug where the units could be changed before a conversion of the magntitudes could occur. (:pull:`1972`). +* Conversion of units of multivariate DataArray is now properly handled in `sdba.TrainAdjust` and `sdba.Adjust`; There was a bug where the units could be changed before a conversion of the magnitudes could occur. (:pull:`1972`). * Fix for indicators that output "delta" Celsius degrees. (:pull:`1973`). v0.53.1 (2024-10-21) From c8815c2f78bd19beb621ff47dda185fb7283d13a Mon Sep 17 00:00:00 2001 From: Zeitsperre <10819524+Zeitsperre@users.noreply.github.com> Date: Thu, 24 Oct 2024 16:54:02 -0400 Subject: [PATCH 2/5] =?UTF-8?q?Bump=20version:=200.53.2-dev.1=20=E2=86=92?= =?UTF-8?q?=200.53.2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- xclim/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 004ec3087..bf2efaeec 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -135,7 +135,7 @@ target-version = [ ] [tool.bumpversion] -current_version = "0.53.2-dev.1" +current_version = "0.53.2" commit = true commit_args = "--no-verify" tag = false diff --git a/xclim/__init__.py b/xclim/__init__.py index aef387b0b..2680845d2 100644 --- a/xclim/__init__.py +++ b/xclim/__init__.py @@ -13,7 +13,7 @@ __author__ = """Travis Logan""" __email__ = "logan.travis@ouranos.ca" -__version__ = "0.53.2-dev.1" +__version__ = "0.53.2" with _resources.as_file(_resources.files("xclim.data")) as _module_data: From f21d44e96543c97407364808680c26dba8a185a0 Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Fri, 25 Oct 2024 00:36:51 -0400 Subject: [PATCH 3/5] Update CHANGELOG.rst --- CHANGELOG.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 377ae43d8..16fcec36b 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,8 +2,8 @@ Changelog ========= -v0.53.2 (202410-24) -------------------- +v0.53.2 (2024-10-25) +-------------------- Contributors to this version: Éric Dupuis (:user:`coxipi`), Pascal Bourgault (:user:`aulemahal`). Bug fixes From dbf616f73028b3adb5389bfb5090354278e036b2 Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:10:45 -0400 Subject: [PATCH 4/5] simplify mastodon publishing --- .github/publish-mastodon-template.md | 4 ++-- .github/workflows/publish-mastodon.yml | 30 ++++---------------------- 2 files changed, 6 insertions(+), 28 deletions(-) diff --git a/.github/publish-mastodon-template.md b/.github/publish-mastodon-template.md index 308374f11..02f628ae0 100644 --- a/.github/publish-mastodon-template.md +++ b/.github/publish-mastodon-template.md @@ -1,5 +1,5 @@ -New #xclim release: {{ .version }} 🎉 +New #xclim release: {{ .tag }} 🎉 -Latest source code available at: https://github.com/Ouranosinc/xclim/releases/tag/{{ .version }} +Latest source code available at: {{ .url }} Check out the docs for more information: https://xclim.readthedocs.io/en/stable/ diff --git a/.github/workflows/publish-mastodon.yml b/.github/workflows/publish-mastodon.yml index ca2f70987..98a5df731 100644 --- a/.github/workflows/publish-mastodon.yml +++ b/.github/workflows/publish-mastodon.yml @@ -3,17 +3,7 @@ name: Publish Release Announcement to Mastodon on: release: types: - - published - workflow_dispatch: - inputs: - version-tag: - description: 'Version to announce' - required: true - type: string - dry-run: - description: 'Dry run' - default: true - type: boolean + - released permissions: contents: read @@ -37,23 +27,11 @@ jobs: - name: Checkout Repository uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - name: Current Version - if: ${{ !github.event.inputs.version-tag }} - run: | - CURRENT_VERSION="$(grep -E '__version__' xclim/__init__.py | cut -d ' ' -f3)" - echo "version=v${CURRENT_VERSION}" >> $GITHUB_ENV - - name: Set Version from Input - if: ${{ github.event.inputs.version-tag }} - run: | - echo "version=${{ github.event.inputs.version-tag }}" >> $GITHUB_ENV - - name: Get Release Description - if: ${{ !endsWith(env.current_version, '-dev') }} - id: get_release_description run: | # Fetch the release information using the GitHub API RELEASE_INFO=$(curl -sH "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ - "https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ env.version }}") + "https://api.github.com/repos/${{ github.repository }}/releases/tags/${{ github.event.release.tag_name }}") # Extract the release description from the response RELEASE_DESCRIPTION=$(echo "$RELEASE_INFO" | jq -r .body) @@ -72,14 +50,14 @@ jobs: with: template: .github/publish-mastodon-template.md vars: | - version: ${{ env.version }} + tag: ${{ github.event.release.tag_name }} + url: https://github.com/Ouranosinc/xclim/releases/tag/${{ github.event.release.tag_name }} - name: Message Preview run: | echo "${{ steps.render_template.outputs.result }}${{ env.contributors }}" - name: Send toot to Mastodon - if: ${{ github.event.inputs.dry-run != 'true' }} || ${{ github.event_name == 'release' }} uses: cbrgm/mastodon-github-action@b26d62619432b20c2129edd86f07f7ede9797fc9 # v2.1.9 with: url: ${{ secrets.MASTODON_URL }} From a4ac75322c779a066f2874f552f425a75eebfe0c Mon Sep 17 00:00:00 2001 From: Trevor James Smith <10819524+Zeitsperre@users.noreply.github.com> Date: Wed, 30 Oct 2024 16:13:26 -0400 Subject: [PATCH 5/5] update date in CHANGELOG.rst --- CHANGELOG.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 8e376b77d..a20bd834e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,7 +2,7 @@ Changelog ========= -v0.53.2 (2024-10-25) +v0.53.2 (2024-10-30) -------------------- Contributors to this version: Éric Dupuis (:user:`coxipi`), Pascal Bourgault (:user:`aulemahal`), Trevor James Smith (:user:`Zeitsperre`).