From bc4727213328798b88cf73d51df7eaa27ff5e2b9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 11:37:10 +0000 Subject: [PATCH 1/3] build(deps-dev): bump ipython from 8.29.0 to 8.30.0 Bumps [ipython](https://github.com/ipython/ipython) from 8.29.0 to 8.30.0. - [Release notes](https://github.com/ipython/ipython/releases) - [Commits](https://github.com/ipython/ipython/compare/8.29.0...8.30.0) --- updated-dependencies: - dependency-name: ipython dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- poetry.lock | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/poetry.lock b/poetry.lock index d162df5b2..d5e3b3696 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2065,13 +2065,13 @@ test = ["flaky", "ipyparallel", "pre-commit", "pytest (>=7.0)", "pytest-asyncio [[package]] name = "ipython" -version = "8.29.0" +version = "8.30.0" description = "IPython: Productive Interactive Computing" optional = false python-versions = ">=3.10" files = [ - {file = "ipython-8.29.0-py3-none-any.whl", hash = "sha256:0188a1bd83267192123ccea7f4a8ed0a78910535dbaa3f37671dca76ebd429c8"}, - {file = "ipython-8.29.0.tar.gz", hash = "sha256:40b60e15b22591450eef73e40a027cf77bd652e757523eebc5bd7c7c498290eb"}, + {file = "ipython-8.30.0-py3-none-any.whl", hash = "sha256:85ec56a7e20f6c38fce7727dcca699ae4ffc85985aa7b23635a8008f918ae321"}, + {file = "ipython-8.30.0.tar.gz", hash = "sha256:cb0a405a306d2995a5cbb9901894d240784a9f341394c6ba3f4fe8c6eb89ff6e"}, ] [package.dependencies] @@ -2081,16 +2081,16 @@ exceptiongroup = {version = "*", markers = "python_version < \"3.11\""} jedi = ">=0.16" matplotlib-inline = "*" pexpect = {version = ">4.3", markers = "sys_platform != \"win32\" and sys_platform != \"emscripten\""} -prompt-toolkit = ">=3.0.41,<3.1.0" +prompt_toolkit = ">=3.0.41,<3.1.0" pygments = ">=2.4.0" -stack-data = "*" +stack_data = "*" traitlets = ">=5.13.0" -typing-extensions = {version = ">=4.6", markers = "python_version < \"3.12\""} +typing_extensions = {version = ">=4.6", markers = "python_version < \"3.12\""} [package.extras] all = ["ipython[black,doc,kernel,matplotlib,nbconvert,nbformat,notebook,parallel,qtconsole]", "ipython[test,test-extra]"] black = ["black"] -doc = ["docrepr", "exceptiongroup", "intersphinx-registry", "ipykernel", "ipython[test]", "matplotlib", "setuptools (>=18.5)", "sphinx (>=1.3)", "sphinx-rtd-theme", "sphinxcontrib-jquery", "tomli", "typing-extensions"] +doc = ["docrepr", "exceptiongroup", "intersphinx_registry", "ipykernel", "ipython[test]", "matplotlib", "setuptools (>=18.5)", "sphinx (>=1.3)", "sphinx-rtd-theme", "sphinxcontrib-jquery", "tomli", "typing_extensions"] kernel = ["ipykernel"] matplotlib = ["matplotlib"] nbconvert = ["nbconvert"] From 42559f6b1908e6a9984575f19e02702cf1a9b90f Mon Sep 17 00:00:00 2001 From: project-defiant Date: Tue, 17 Dec 2024 09:43:08 +0100 Subject: [PATCH 2/3] fix: release process no longer triggers on skipped release --- .github/workflows/release.yaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4eb48b992..c4282fdaf 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -15,6 +15,8 @@ jobs: release: runs-on: ubuntu-latest concurrency: release + outputs: + released: ${{ steps.semrelease.outputs.released }} permissions: # NOTE: this enables trusted publishing. # See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1#trusted-publishing @@ -46,7 +48,8 @@ jobs: - name: Publish package to GitHub Release uses: python-semantic-release/upload-to-gh-release@main - if: ${{ steps.semrelease.outputs.released }} == 'true' + # NOTE: semrelease output is a string, so we need to compare it to a string + if: ${{ steps.semrelease.outputs.released == 'true' }} with: # NOTE: allow to start the workflow when push action on tag gets executed # requires using GH_APP to authenitcate, otherwise push authorised with @@ -56,6 +59,7 @@ jobs: tag: ${{ steps.semrelease.outputs.tag }} - name: Store the distribution packages + if: ${{ steps.semrelease.outputs.released == 'true' }} uses: actions/upload-artifact@v4 with: name: python-package-distributions @@ -63,9 +67,8 @@ jobs: publish-to-pypi: needs: release - name: >- - Publish 📦 in PyPI - if: github.ref == 'refs/heads/main' + name: Publish 📦 in PyPI + if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} runs-on: ubuntu-latest environment: name: pypi @@ -84,7 +87,7 @@ jobs: publish-to-testpypi: name: Publish 📦 in TestPyPI needs: release - if: github.ref != 'refs/heads/main' + if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} runs-on: ubuntu-latest environment: @@ -108,7 +111,7 @@ jobs: documentation: needs: release runs-on: ubuntu-latest - if: github.ref == 'refs/heads/main' + if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} steps: - uses: actions/checkout@v4 with: From 7164fa89c65b30b58491407e2f9bb0112b7fca8b Mon Sep 17 00:00:00 2001 From: project-defiant Date: Tue, 17 Dec 2024 09:47:31 +0100 Subject: [PATCH 3/3] chore: siplify the release CI conditions --- .github/workflows/release.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index c4282fdaf..9c166432f 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -49,7 +49,7 @@ jobs: - name: Publish package to GitHub Release uses: python-semantic-release/upload-to-gh-release@main # NOTE: semrelease output is a string, so we need to compare it to a string - if: ${{ steps.semrelease.outputs.released == 'true' }} + if: steps.semrelease.outputs.released == 'true' with: # NOTE: allow to start the workflow when push action on tag gets executed # requires using GH_APP to authenitcate, otherwise push authorised with @@ -59,7 +59,7 @@ jobs: tag: ${{ steps.semrelease.outputs.tag }} - name: Store the distribution packages - if: ${{ steps.semrelease.outputs.released == 'true' }} + if: steps.semrelease.outputs.released == 'true' uses: actions/upload-artifact@v4 with: name: python-package-distributions @@ -68,7 +68,7 @@ jobs: publish-to-pypi: needs: release name: Publish 📦 in PyPI - if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} + if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true' runs-on: ubuntu-latest environment: name: pypi @@ -87,7 +87,7 @@ jobs: publish-to-testpypi: name: Publish 📦 in TestPyPI needs: release - if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} + if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true' runs-on: ubuntu-latest environment: @@ -111,7 +111,7 @@ jobs: documentation: needs: release runs-on: ubuntu-latest - if: ${{github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true'}} + if: github.ref == 'refs/heads/main' && needs.release.outputs.released == 'true' steps: - uses: actions/checkout@v4 with: