From 588a1c4cc80c207f9e7285a32997aeb568abe07a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 18 Oct 2022 11:44:07 +0200 Subject: [PATCH 01/22] =?UTF-8?q?=F0=9F=94=96=20staging/bugfix=20is=20now?= =?UTF-8?q?=201.8.7.dev?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .versioneer-lookup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.versioneer-lookup b/.versioneer-lookup index 288e7a71a..1beb1e2eb 100644 --- a/.versioneer-lookup +++ b/.versioneer-lookup @@ -24,10 +24,10 @@ maintenance 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev fix/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev improve/.* 1.8.0 3fe45661cd79c5137d9d4f5f4adb4d9519bc2084 pep440-dev -# staging/bugfix is the branch for preparation of the 1.8.6 bugfix release +# staging/bugfix is the branch for preparation of the 1.8.7 bugfix release # so are any bug/... branches -staging/bugfix 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev -bug/.* 1.8.6 395354212c2bb65b37b303de171418f6475ca346 pep440-dev +staging/bugfix 1.8.7 1875623f05e14c3a197c6ff324f02dce55cec7d2 pep440-dev +bug/.* 1.8.7 1875623f05e14c3a197c6ff324f02dce55cec7d2 pep440-dev # staging/maintenance is currently the branch for preparation of 1.8.0rc6 # so is regressionfix/... From dfced1118a05f92d075a9cf2af01170b2f9cdcb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 18 Oct 2022 15:59:41 +0200 Subject: [PATCH 02/22] =?UTF-8?q?=F0=9F=91=B7=20Update=20actions=20to=20No?= =?UTF-8?q?de=2016=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 34 +++++++++++++------------- .github/workflows/issue_automation.yml | 4 +-- .github/workflows/linkify_bundles.yml | 6 ++--- .github/workflows/nightly_merge.yml | 2 +- .github/workflows/pr_automation.yml | 2 +- .github/workflows/test_install.yml | 6 ++--- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2837192b1..0b8bedd76 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,11 +11,11 @@ jobs: name: πŸ”¨ Build distribution runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - name: πŸ— Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.7 - name: πŸ— Install build dependencies @@ -25,7 +25,7 @@ jobs: run: | python setup.py sdist bdist_wheel - name: ⬆ Upload build result - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 with: name: dist path: dist @@ -34,9 +34,9 @@ jobs: name: 🧹 Pre-commit runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: πŸ— Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.7 - name: πŸ— Set up dev dependencies @@ -53,9 +53,9 @@ jobs: python: ["3.7", "3.8", "3.9", "3.10"] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: πŸ— Set up Python ${{ matrix.python }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: πŸ— Set up test dependencies @@ -70,7 +70,7 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: πŸ— Set up test dependencies run: | npm -g install node-qunit-puppeteer@2.1.0 @@ -89,12 +89,12 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist - name: πŸ— Set up Python ${{ matrix.python }} - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: πŸš€ Install wheel @@ -113,15 +113,15 @@ jobs: continue-on-error: true steps: - name: ⬇ Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist - name: πŸ— Set up Python 3.7 - uses: actions/setup-python@v1 + uses: actions/setup-python@v4 with: python-version: 3.7 - name: πŸš€ Install wheel @@ -134,7 +134,7 @@ jobs: cp -r .github/fixtures/with_acl/* e2econfig - name: πŸš€ Run Cypress - uses: cypress-io/github-action@v2 + uses: cypress-io/github-action@v4.2.0 with: working-directory: tests/cypress browser: chrome @@ -142,7 +142,7 @@ jobs: wait-on: "http://127.0.0.1:5000/online.txt" - name: ⬆ Upload screenshots - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3 if: failure() with: name: cypress-screenshots @@ -166,7 +166,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist @@ -184,7 +184,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇ Download build result - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3 with: name: dist path: dist diff --git a/.github/workflows/issue_automation.yml b/.github/workflows/issue_automation.yml index 13830c66a..ab645ab90 100644 --- a/.github/workflows/issue_automation.yml +++ b/.github/workflows/issue_automation.yml @@ -7,7 +7,7 @@ jobs: issue-automation: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -72,7 +72,7 @@ jobs: # with: # repo-token: ${{ secrets.GITHUB_TOKEN }} - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 env: REMINDER: > Hi @${{ github.event.issue.user.login }}! diff --git a/.github/workflows/linkify_bundles.yml b/.github/workflows/linkify_bundles.yml index 9e0553891..18bc21a07 100644 --- a/.github/workflows/linkify_bundles.yml +++ b/.github/workflows/linkify_bundles.yml @@ -7,7 +7,7 @@ jobs: linkifyBundles: runs-on: ubuntu-latest steps: - - uses: actions/github-script@v2 + - uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | @@ -38,14 +38,14 @@ jobs: }); text += "\n*edited by @github-actions to add bundle viewer links*\n"; - github.issues.updateComment({ + github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, body: text }); } else if (botWasHere !== -1) { - github.issues.updateComment({ + github.rest.issues.updateComment({ owner: context.repo.owner, repo: context.repo.repo, comment_id: context.payload.comment.id, diff --git a/.github/workflows/nightly_merge.yml b/.github/workflows/nightly_merge.yml index 56821fbc0..e101eb722 100644 --- a/.github/workflows/nightly_merge.yml +++ b/.github/workflows/nightly_merge.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇ Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: fetch-depth: 0 diff --git a/.github/workflows/pr_automation.yml b/.github/workflows/pr_automation.yml index cc411d121..a7f7ef7cf 100644 --- a/.github/workflows/pr_automation.yml +++ b/.github/workflows/pr_automation.yml @@ -12,7 +12,7 @@ jobs: with: repo-token: "${{ secrets.GITHUB_TOKEN }}" - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{ secrets.GITHUB_TOKEN }} script: | diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 76d7b2e23..18f6d7b39 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -19,11 +19,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: 🐍 Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: ⬇ Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ matrix.branch }} fetch-depth: 0 @@ -60,7 +60,7 @@ jobs: with: repository: "OctoPrint/OctoPrint" - name: 🐍 Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: πŸ‘· Build and install latest release From a68916f05a251052e139486df9932ecb246ae591 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 19 Oct 2022 11:50:45 +0200 Subject: [PATCH 03/22] =?UTF-8?q?=F0=9F=93=9D=20Redirect=20to=20new=20sec?= =?UTF-8?q?=20policy=20on=20octoprint.org?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SECURITY.md | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index 79b94cdd9..0722f9a3c 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,11 +1,3 @@ # Security Policy -## Supported Versions - -Always update to the latest version of OctoPrint to keep up with security patches. - -## Reporting a Vulnerability - -Email to security@octoprint.org. - -For the sake of the userbase of OctoPrint please always disclose responsibly and with a 90+ day window. +OctoPrint's security policy can be found [here](https://octoprint.org/security/). From 7d336bd09801403e5779af43bf408a323dc8c126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Sat, 12 Nov 2022 14:53:19 +0100 Subject: [PATCH 04/22] =?UTF-8?q?=F0=9F=93=9D=20Thou=20shall=20test=20in?= =?UTF-8?q?=20safe=20mode=20before=20opening=20bug=20reports?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/ISSUE_TEMPLATE/bug_report.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index ea86dc992..d9a9f7578 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -76,10 +76,10 @@ body: Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to rule out that a plugin is at fault here. [Safe mode](https://docs.octoprint.org/en/master/features/safemode.html) is an easy way to do that. Only skip safe mode if your particular problem *absolutely requires* third party plugins to be enabled. "It would take - too long" is **not** a reason to skip testing in safe mode, neither is "I do not know how to + too long" or "I have a long print running right now" are **not** a reason to skip testing in safe mode, neither is "I do not know how to enable it" as you can find info on that [here](https://docs.octoprint.org/en/master/features/safemode.html). - If you really *cannot* test in safe mode, leave a short explanation as to why. + If you really *cannot* test in safe mode at all, leave a short explanation as to why. If you,can but just not right now, then wait with reporting until you can. - type: markdown attributes: value: | From 7659c811f5ac9bc01a3d07662a056968fa0db426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 16 Nov 2022 14:46:25 +0100 Subject: [PATCH 05/22] =?UTF-8?q?=F0=9F=9A=A8=20Fix=20pre-commit's=20flake?= =?UTF-8?q?8=20location?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 73b286f05..d952645fa 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -49,7 +49,7 @@ repos: args: ["--config", "black.toml"] additional_dependencies: - click==8.0.4 - - repo: https://gitlab.com/pycqa/flake8 + - repo: https://github.com/pycqa/flake8 rev: 3.9.2 hooks: - id: flake8 From 9179545c33be8fd3e1e13f24e6730c5df04c31d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 19 Dec 2022 14:33:41 +0100 Subject: [PATCH 06/22] =?UTF-8?q?=F0=9F=93=9D=20Get=20rid=20of=20Twitter?= =?UTF-8?q?=20link,=20fix=20build=20status=20badge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c68b677fc..20674b885 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,9 @@

GitHub release PyPI - Build status - Community Forum + Build status + Community Forum Discord - Twitter Follow Contributor Covenant Code style: black Code style: prettier From 397de4e3a7cd5e49662fa2b641092c6005c8c6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 16:47:37 +0100 Subject: [PATCH 07/22] =?UTF-8?q?=F0=9F=91=B7=20Use=20original=20get-lates?= =?UTF-8?q?t-release=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 18f6d7b39..a4de5ac48 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -56,9 +56,10 @@ jobs: steps: - name: πŸ‘€ Determine latest release id: latest - uses: foosel/github-action-get-latest-release@master + uses: pozetroninc/github-action-get-latest-release@master with: repository: "OctoPrint/OctoPrint" + excludes: prerelease,draft - name: 🐍 Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 with: From cc47b41baec17ffb003b550d143eda26167f17e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 17:06:43 +0100 Subject: [PATCH 08/22] =?UTF-8?q?=F0=9F=91=B7=20Fetch=20latest=20release?= =?UTF-8?q?=20without=20any=20action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bash, curl, awk ftw --- .github/workflows/test_install.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index a4de5ac48..dc0643c1b 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -55,25 +55,23 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: πŸ‘€ Determine latest release - id: latest - uses: pozetroninc/github-action-get-latest-release@master - with: - repository: "OctoPrint/OctoPrint" - excludes: prerelease,draft + run: | + OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | awk -F/ '{print $NF}') + echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🐍 Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 with: python-version: ${{ matrix.python }} - name: πŸ‘· Build and install latest release run: | - pip install https://github.com/OctoPrint/OctoPrint/archive/${{ steps.latest.outputs.release }}.zip + pip install https://github.com/OctoPrint/OctoPrint/archive/${{ env.OCTOPRINT_VERSION }}.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" + args: "β˜‘οΈ Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ env.OCTOPRINT_VERSION }}` was successful" - name: πŸ“§ Discord failure notification continue-on-error: true if: failure() @@ -81,4 +79,4 @@ jobs: 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 }}` failed" + args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ env.OCTOPRINT_VERSION }}` failed" From c5b56ae11b5d176447a1edd2b4836a8c89f9062b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 17:15:30 +0100 Subject: [PATCH 09/22] =?UTF-8?q?=F0=9F=91=B7=20Get=20rid=20of=20newline?= =?UTF-8?q?=20in=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/test_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index dc0643c1b..22371c0b4 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -56,7 +56,7 @@ jobs: steps: - name: πŸ‘€ Determine latest release run: | - OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | awk -F/ '{print $NF}') + OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | awk -F/ '{print $NF}' | tr -d '\n') echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🐍 Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 From 68191cfbf439c14f96879c1fbc8e87ce46ae37cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 18 Jan 2023 17:38:26 +0100 Subject: [PATCH 10/22] =?UTF-8?q?=F0=9F=92=9A=20HTTP=20has=20\r\n=20line?= =?UTF-8?q?=20endings?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So we need to strip \r, \n already gets taken care of by the whole pipe. Also limit to first location header just in case. --- .github/workflows/test_install.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index 22371c0b4..925341c96 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -56,7 +56,7 @@ jobs: steps: - name: πŸ‘€ Determine latest release run: | - OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | awk -F/ '{print $NF}' | tr -d '\n') + OCTOPRINT_VERSION=$(curl -i https://github.com/OctoPrint/OctoPrint/releases/latest | grep -i location: | head -n1 | awk -F/ '{print $NF}' | tr -d '\r') echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: 🐍 Set up Python ${{ matrix.python }} uses: actions/setup-python@v4 From 814c3a1519a21d13ee4df0b10de437afb685f32e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 8 Feb 2023 16:20:42 +0100 Subject: [PATCH 11/22] =?UTF-8?q?=F0=9F=91=B7=20Migrate=20from=20set-outpu?= =?UTF-8?q?t=20got=20$GITHUB=5FOUTPUT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cleanup.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 80ff4f957..09a070660 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -22,7 +22,7 @@ jobs: steps: - id: date run: | - echo "::set-output name=CUTOFF::`date --date='14 days ago' +'%Y-%m-%d'`" + echo "CUTOFF=`date --date='14 days ago' +'%Y-%m-%d'`" >> $GITHUB_OUTPUT - uses: OctoPrint/actions/close-by-query@main with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 135249c554613850e49ae59e9b04c85ad585b95b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 9 Feb 2023 17:25:55 +0100 Subject: [PATCH 12/22] =?UTF-8?q?=F0=9F=91=B7=20Enable=20Dependabot=20for?= =?UTF-8?q?=20GitHub=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/dependabot.yml | 7 +++++++ .github/labeler.yml | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 000000000..97def2749 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: + # Check for updates to GitHub Actions every week + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/labeler.yml b/.github/labeler.yml index ed3f1c77a..79570485f 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -15,7 +15,10 @@ meta: ci/cd: - ".github/fixtures/**/*" - ".github/workflows/*" + - ".github/dependabot.yml" + - ".github/issue-validation.yml" - ".github/labeler.yml" + - ".github/pr-validation.yml" docker: - ".github/workflows/trigger_docker.yml" From 3088c3be0bc245a6c02baf38490ba8140590b668 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 18:00:54 +0100 Subject: [PATCH 13/22] Bump actions/labeler from 3 to 4 (#4727) Bumps [actions/labeler](https://github.com/actions/labeler) from 3 to 4. - [Release notes](https://github.com/actions/labeler/releases) - [Commits](https://github.com/actions/labeler/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/labeler dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/pr_automation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr_automation.yml b/.github/workflows/pr_automation.yml index a7f7ef7cf..9031376fe 100644 --- a/.github/workflows/pr_automation.yml +++ b/.github/workflows/pr_automation.yml @@ -8,7 +8,7 @@ jobs: pr-automation: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v3 + - uses: actions/labeler@v4 with: repo-token: "${{ secrets.GITHUB_TOKEN }}" From 40d71f124221db699f97c221e92f87f530b527b2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:50:00 +0000 Subject: [PATCH 14/22] Bump peter-evans/repository-dispatch from 1 to 2 Bumps [peter-evans/repository-dispatch](https://github.com/peter-evans/repository-dispatch) from 1 to 2. - [Release notes](https://github.com/peter-evans/repository-dispatch/releases) - [Commits](https://github.com/peter-evans/repository-dispatch/compare/v1...v2) --- updated-dependencies: - dependency-name: peter-evans/repository-dispatch dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- .github/workflows/build.yml | 2 +- .github/workflows/trigger_docker.yml | 6 +++--- .github/workflows/trigger_docs.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0b8bedd76..48189e35f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -204,7 +204,7 @@ jobs: OCTOPRINT_VERSION=$(echo $GITHUB_REF | cut -d/ -f3) echo "OCTOPRINT_VERSION=$OCTOPRINT_VERSION" >> $GITHUB_ENV - name: πŸš€ Repository Dispatch - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.REPODISPATCH_TOKEN }} repository: OctoPrint/OctoPi-UpToDate diff --git a/.github/workflows/trigger_docker.yml b/.github/workflows/trigger_docker.yml index 1a86bb0c6..7b2cae198 100644 --- a/.github/workflows/trigger_docker.yml +++ b/.github/workflows/trigger_docker.yml @@ -15,7 +15,7 @@ jobs: if: github.repository == 'OctoPrint/OctoPrint' && github.event_name != 'push' steps: - name: πŸš€ Repository Dispatch - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker @@ -27,7 +27,7 @@ jobs: if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/maintenance' steps: - name: πŸš€ Repository Dispatch - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker @@ -39,7 +39,7 @@ jobs: if: github.repository == 'OctoPrint/OctoPrint' && github.event_name == 'push' && github.ref == 'refs/heads/devel' steps: - name: πŸš€ Repository Dispatch - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.DOCKER_ACCESS_TOKEN }} repository: ${{ github.repository_owner }}/octoprint-docker diff --git a/.github/workflows/trigger_docs.yml b/.github/workflows/trigger_docs.yml index cb20852fb..4b1084360 100644 --- a/.github/workflows/trigger_docs.yml +++ b/.github/workflows/trigger_docs.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'OctoPrint/OctoPrint' steps: - name: πŸš€ Repository Dispatch - uses: peter-evans/repository-dispatch@v1 + uses: peter-evans/repository-dispatch@v2 with: token: ${{ secrets.REPODISPATCH_TOKEN }} repository: OctoPrint/docs.octoprint.org From a47b5187bbb7a1ae1d9255c0e7ae0cd3d3a4115d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 9 Feb 2023 16:50:08 +0000 Subject: [PATCH 15/22] Bump robotology/gh-action-nightly-merge from 1.3.3 to 1.4.0 Bumps [robotology/gh-action-nightly-merge](https://github.com/robotology/gh-action-nightly-merge) from 1.3.3 to 1.4.0. - [Release notes](https://github.com/robotology/gh-action-nightly-merge/releases) - [Commits](https://github.com/robotology/gh-action-nightly-merge/compare/v1.3.3...v1.4.0) --- updated-dependencies: - dependency-name: robotology/gh-action-nightly-merge dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- .github/workflows/nightly_merge.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly_merge.yml b/.github/workflows/nightly_merge.yml index e101eb722..d12689240 100644 --- a/.github/workflows/nightly_merge.yml +++ b/.github/workflows/nightly_merge.yml @@ -15,7 +15,7 @@ jobs: fetch-depth: 0 - name: πŸ”€ Merge master into maintenance - uses: robotology/gh-action-nightly-merge@v1.3.3 + uses: robotology/gh-action-nightly-merge@v1.4.0 with: stable_branch: "master" development_branch: "maintenance" @@ -24,7 +24,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: πŸ”€ Merge staging/bugfix into maintenance - uses: robotology/gh-action-nightly-merge@v1.3.3 + uses: robotology/gh-action-nightly-merge@v1.4.0 with: stable_branch: "staging/bugfix" development_branch: "maintenance" @@ -33,7 +33,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: πŸ”€ Merge staging/maintenance into maintenance - uses: robotology/gh-action-nightly-merge@v1.3.3 + uses: robotology/gh-action-nightly-merge@v1.4.0 with: stable_branch: "staging/bugfix" development_branch: "maintenance" @@ -42,7 +42,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: πŸ”€ Merge maintenance into devel - uses: robotology/gh-action-nightly-merge@v1.3.3 + uses: robotology/gh-action-nightly-merge@v1.4.0 with: stable_branch: "maintenance" development_branch: "devel" From c01216cfaba5678f19bd13fe17e7748a11c42622 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 10 Feb 2023 13:03:10 +0100 Subject: [PATCH 16/22] =?UTF-8?q?=F0=9F=91=B7=E2=80=8D=E2=99=82=EF=B8=8F?= =?UTF-8?q?=20Only=20trigger=20docs=20build=20on=20specific=20branches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit master, maintenance and devel only for now --- .github/workflows/trigger_docs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/trigger_docs.yml b/.github/workflows/trigger_docs.yml index 4b1084360..c306faf5f 100644 --- a/.github/workflows/trigger_docs.yml +++ b/.github/workflows/trigger_docs.yml @@ -1,6 +1,10 @@ name: Trigger doc build on: push: + branches: + - master + - maintenance + - devel release: types: - released From a1d95dd44b2c78e0bd609c8ef4f7873fa66d07d4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 10 Feb 2023 13:08:19 +0100 Subject: [PATCH 17/22] Bump dessant/lock-threads from 2 to 4 (#4726) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Bump dessant/lock-threads from 2 to 4 Bumps [dessant/lock-threads](https://github.com/dessant/lock-threads) from 2 to 4. - [Release notes](https://github.com/dessant/lock-threads/releases) - [Changelog](https://github.com/dessant/lock-threads/blob/master/CHANGELOG.md) - [Commits](https://github.com/dessant/lock-threads/compare/v2...v4) --- updated-dependencies: - dependency-name: dessant/lock-threads dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * πŸ‘·β€β™‚οΈ Adjust input parameters Names changed in v3 --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Gina HΓ€ußge --- .github/workflows/cleanup.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cleanup.yml b/.github/workflows/cleanup.yml index 09a070660..e82f52fb9 100644 --- a/.github/workflows/cleanup.yml +++ b/.github/workflows/cleanup.yml @@ -10,11 +10,11 @@ jobs: name: πŸ”’ Lock issues & PRs closed over a year runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v2 + - uses: dessant/lock-threads@v4 with: github-token: ${{ github.token }} - issue-lock-comment: "" - pr-lock-comment: "" + issue-comment: "" + pr-comment: "" cleanup: name: 🧹 Close issues marked as incomplete & older than 14 days From b151152c00be71cc89e9bca9b56283d7c9131fe7 Mon Sep 17 00:00:00 2001 From: "Patrick J. Ames" Date: Sat, 18 Feb 2023 09:25:21 -0500 Subject: [PATCH 18/22] :pencil2: Fix small grammar error in README.md (#4731) "It also serves as central knowledge base" > "It also serves as a central knowledge base" --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 20674b885..6404984ac 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ and released under the [GNU Affero General Public License V3](https://www.gnu.or Its website can be found at [octoprint.org](https://octoprint.org/?utm_source=github&utm_medium=readme). -The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). It also serves as central knowledge base. +The community forum is available at [community.octoprint.org](https://community.octoprint.org/?utm_source=github&utm_medium=readme). It also serves as a central knowledge base. An invite to the Discord server can be found at [discord.octoprint.org](https://discord.octoprint.org). From fcb9eaebdaa335c10a8de733cff2729853fb74d4 Mon Sep 17 00:00:00 2001 From: Nick Mattis Date: Mon, 20 Feb 2023 16:36:28 -0500 Subject: [PATCH 19/22] :pencil2: Minor updates to plugin getting started tutorial docs (#4736) * some minor updates to plugin getting started tutorial docs * fix helloworld to stay camelcase --- docs/plugins/gettingstarted.rst | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/plugins/gettingstarted.rst b/docs/plugins/gettingstarted.rst index 41d3ec9f7..202797501 100644 --- a/docs/plugins/gettingstarted.rst +++ b/docs/plugins/gettingstarted.rst @@ -20,7 +20,7 @@ development environment:: $ virtualenv venv [...] $ source venv/bin/activate - (venv) $ pip install -e .[develop,plugins] + (venv) $ pip install -e '.[develop,plugins]' [...] (venv) $ octoprint --help Usage: octoprint [OPTIONS] COMMAND [ARGS]... @@ -163,7 +163,7 @@ Then we can use the ``octoprint dev plugin:new`` command [#f1]_ to generate a ne email [you@example.com]: you@somewhere.net github_username [you]: yourGithubName plugin_version [0.1.0]: 1.0.0 - plugin_description [TODO]: A quick "Hello World" example plugin for OCtoPrint + plugin_description [TODO]: A quick "Hello World" example plugin for OctoPrint plugin_license [AGPLv3]: plugin_homepage [https://github.com/yourGithubName/OctoPrint-Helloworld]: plugin_source [https://github.com/yourGithubName/OctoPrint-Helloworld]: @@ -178,6 +178,9 @@ Then we can use the ``octoprint dev plugin:new`` command [#f1]_ to generate a ne This will create a project structure in the ``OctoPrint-HelloWorld`` folder we just changed to that looks like this:: extras/ + github/ + bug_report.yml + feature_request.yml README.txt helloworld.md octoprint_helloworld/ @@ -200,6 +203,7 @@ This will create a project structure in the ``OctoPrint-HelloWorld`` folder we j README.md requirements.txt setup.py + setup.cfg While we'll need some of those folders later on, we'll now delete everything that we don't need right now first, that will make it easier to understand what folder does what later on. Delete the following folders and anything in them: @@ -219,6 +223,7 @@ The final project structure should look like this for now:: MANIFEST.in README.md requirements.txt + setup.cfg setup.py Out of curiosity, take a look into the ``setup.py`` file. The cookiecutter template should have prefilled all the @@ -393,6 +398,7 @@ Our plugin's directory structure should now look like this:: README.md requirements.txt setup.py + setup.cfg Restart OctoPrint and open the web interface in your browser (make sure to clear your browser's cache!). @@ -648,6 +654,7 @@ look like this:: README.md requirements.txt setup.py + setup.cfg We need to tell OctoPrint about this new static asset so that it will properly inject it into the page. For this we just need to subclass :class:`~octoprint.plugin.AssetPlugin` and override its method :func:`~octoprint.plugin.AssetPlugin.get_assets` From 59054cc1e58c241909f1ecba1ebc33ada01e3e77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 2 Mar 2023 15:34:39 +0100 Subject: [PATCH 20/22] =?UTF-8?q?=F0=9F=A5=85=20Don't=20send=20`None`=20to?= =?UTF-8?q?=20`Locale.parse`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latest version of Babel no longer supports this but raises an error, which in turn leads to a 500 Server Error response here. To fix this, we set a default for best_match. Closes #4744 --- src/octoprint/server/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/server/__init__.py b/src/octoprint/server/__init__.py index 659d83bd0..48568133c 100644 --- a/src/octoprint/server/__init__.py +++ b/src/octoprint/server/__init__.py @@ -1349,7 +1349,7 @@ class Server: ): return Locale.negotiate([default_language], LANGUAGES) - return Locale.parse(request.accept_languages.best_match(LANGUAGES)) + return Locale.parse(request.accept_languages.best_match(LANGUAGES, default="en")) def _setup_heartbeat_logging(self): logger = logging.getLogger(__name__ + ".heartbeat") From 6e009d25441b3e9a15e335844c4d8f11ad13fe6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Thu, 2 Mar 2023 15:51:32 +0100 Subject: [PATCH 21/22] =?UTF-8?q?=F0=9F=94=96=20Preparing=20release=20of?= =?UTF-8?q?=201.8.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SUPPORTERS.md | 12 +++++++----- setup.py | 2 +- src/octoprint/plugins/errortracking/__init__.py | 8 +++++--- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/SUPPORTERS.md b/SUPPORTERS.md index 4edb73897..e2a70859c 100644 --- a/SUPPORTERS.md +++ b/SUPPORTERS.md @@ -11,33 +11,36 @@ thanks to everyone who contributed! * Al Mucci * Arnljot Arntsen * Ash King + * Ben Fritsch * BigTreeTech * Boris Hussein * Brad Jackson - * Calvin Vette * Christian Petropolis * Christian Wolf * Christian WΓΌrthner * Christoph Sigrist - * Codense Consulting Oy + * CooperSpartan * Creality3D * DeltaMaker 3D Printers * Dennis Breining + * Douglas Floyd + * Ed Crump * Ernesto Martinez * Franziska Kunsmann * Hog Duske + * Jacob Renstrom * James Mackay * Jeff Green * Jeff Moe * jeffiel * Jeremy Cole + * John Cassel * Julian Melo * Justin Kaufman * Kaile Riser * Kazuhiro Ogura * Kenneth Jiang * Kurt Wubbels - * Kyle Menigoz * Lachlan Bell * Lefteris Lertas * LulzBot @@ -65,7 +68,6 @@ thanks to everyone who contributed! * Stefan Krister * Steve Dougherty * Steve Thompson - * TJ Horner * Ulrich Kempken -and 2145 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! +and 2036 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)! diff --git a/setup.py b/setup.py index 73c625257..1c4da3af5 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ SETUP_REQUIRES = [] bundled_plugins = [ "OctoPrint-FileCheck>=2021.2.23", "OctoPrint-FirmwareCheck>=2021.10.11", - "OctoPrint-PiSupport>=2022.3.28", + "OctoPrint-PiSupport>=2022.6.13", ] core_deps = [ "argon2_cffi>=21.3.0,<22", diff --git a/src/octoprint/plugins/errortracking/__init__.py b/src/octoprint/plugins/errortracking/__init__.py index cb633a65c..08d7aff77 100644 --- a/src/octoprint/plugins/errortracking/__init__.py +++ b/src/octoprint/plugins/errortracking/__init__.py @@ -18,10 +18,10 @@ from octoprint.util.version import ( ) SENTRY_URL_SERVER = ( - "https://faa02914ec8f42139e12a36482cfdb60@o118517.ingest.sentry.io/1373987" + "https://9c242ccf183444eaacd046d86d8b0ea2@o118517.ingest.sentry.io/1373987" ) SENTRY_URL_COREUI = ( - "https://be7a53389fb045b48d6c384bb8ee89eb@o118517.ingest.sentry.io/1374096" + "https://4d9844043596415faa606ff722174b90@o118517.ingest.sentry.io/1374096" ) SETTINGS_DEFAULTS = { @@ -158,7 +158,9 @@ def _enable_errortracking(): unique_id = str(uuid.uuid4()) s.set( - ["plugins", "errortracking", "unique_id"], unique_id, defaults=plugin_defaults + ["plugins", "errortracking", "unique_id"], + unique_id, + defaults=plugin_defaults, ) s.save() From d813a0cc86734a6f8bee75a56579bab66787ebf6 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 22/22] :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 1c4da3af5..89b9dd10d 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,7 @@ core_deps = [ "watchdog>=1,<2", "websocket-client>=1.2.1,<2", "werkzeug>=2.0,<2.1", # breaking changes can happen on minor version increases, flask-login 0.5 is incompatible with 2.1 - "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", ]