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: | 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" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2837192b1..48189e35f 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 @@ -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/cleanup.yml b/.github/workflows/cleanup.yml index 80ff4f957..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 @@ -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 }}" 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..d12689240 100644 --- a/.github/workflows/nightly_merge.yml +++ b/.github/workflows/nightly_merge.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - name: ⬇ Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: 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" diff --git a/.github/workflows/pr_automation.yml b/.github/workflows/pr_automation.yml index cc411d121..9031376fe 100644 --- a/.github/workflows/pr_automation.yml +++ b/.github/workflows/pr_automation.yml @@ -8,11 +8,11 @@ jobs: pr-automation: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v3 + - uses: actions/labeler@v4 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..925341c96 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 @@ -55,24 +55,23 @@ jobs: runs-on: ${{ matrix.os }} steps: - name: πŸ‘€ Determine latest release - id: latest - uses: foosel/github-action-get-latest-release@master - with: - repository: "OctoPrint/OctoPrint" + run: | + 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@v2 + 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() @@ -80,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" 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..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 @@ -12,7 +16,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 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 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/... diff --git a/README.md b/README.md index c68b677fc..6404984ac 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 @@ -21,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). 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/). 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/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` diff --git a/setup.py b/setup.py index 73c625257..89b9dd10d 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", @@ -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", ] 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() 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")