From c491f4fedc11e19972b278e389698cb2217752ef Mon Sep 17 00:00:00 2001 From: Charlie Powell <31997505+cp2004@users.noreply.github.com> Date: Mon, 30 May 2022 10:04:51 +0100 Subject: [PATCH 1/3] :arrow_up: Bump wrapt to fix Python 3.11 compatibility (#4530) Fully tested on 3.7, 3.10 and 3.11 - any issues that did exist appear to have been resolved. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 6a174f76c..57106dee6 100644 --- a/setup.py +++ b/setup.py @@ -63,7 +63,7 @@ core_deps = [ "watchdog>=1,<2", "websocket-client>=1.2.1,<2", "werkzeug>=2.1,<2.2", # breaking changes can happen on minor version increases - "wrapt>=1.13.3,<1.14", + "wrapt>=1.14,<1.15", "zeroconf>=0.33,<0.34", # breaking changes can happen on minor version increases "zipstream-ng>=1.3.4,<2.0.0", ] From e2349b4565f5b1a41a0efde7feeaf372600b0b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:45:16 +0200 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=91=B7=20Ignore=20errors=20on=20Disco?= =?UTF-8?q?rd=20hook=20&=20e2e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit e2e are too flaky, discord hook might be unconfigured in a fork. --- .github/workflows/build.yml | 1 + .github/workflows/test_install.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4a219563a..fbc3ed47c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -96,6 +96,7 @@ jobs: name: ๐Ÿงช E2E tests needs: build runs-on: ubuntu-latest + continue-on-error: true steps: - name: โฌ‡ Checkout code uses: actions/checkout@v2 diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 37e64bc49..76d7b2e23 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -31,12 +31,14 @@ jobs: run: | pip install . - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} @@ -65,12 +67,14 @@ jobs: run: | pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip - name: ๐Ÿ“ง Discord success notification + continue-on-error: true env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} uses: Ilshidur/action-discord@master with: args: "โ˜‘๏ธ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ steps.latest.outputs.release }}` was successful" - name: ๐Ÿ“ง Discord failure notification + continue-on-error: true if: failure() env: DISCORD_WEBHOOK: ${{ secrets.discord_webhook }} From 53b9b6185781c07e8c4744a6e28462e96448f249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 30 May 2022 14:51:54 +0200 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=91=B7=20Only=20trigger=20release=20j?= =?UTF-8?q?obs=20on=20main=20repo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fbc3ed47c..44d27367b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -142,7 +142,7 @@ jobs: publish-on-testpypi: name: ๐Ÿ“ฆ Publish on TestPyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: - pre-commit - test-unit @@ -164,7 +164,7 @@ jobs: publish-on-pypi: name: ๐Ÿ“ฆ Publish tagged releases to PyPI - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-testpypi runs-on: ubuntu-latest steps: @@ -180,7 +180,7 @@ jobs: notify-custopizer-build: name: ๐Ÿ“ง Notify OctoPi-UpToDate - if: github.event_name == 'release' + if: github.event_name == 'release' && github.repository == 'OctoPrint/OctoPrint' needs: publish-on-pypi runs-on: ubuntu-latest steps: