Compare commits
23
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25984fd555 | ||
|
|
a93b4d3972 | ||
|
|
b141f79669 | ||
|
|
dfe2893049 | ||
|
|
f325791ec6 | ||
|
|
df257eca83 | ||
|
|
74990e8ee6 | ||
|
|
506648c152 | ||
|
|
d0072cff89 | ||
|
|
2b7c01563f | ||
|
|
7bfd77d9eb | ||
|
|
5ca7f07cb7 | ||
|
|
25d9c44d55 | ||
|
|
3bde48a9fb | ||
|
|
87bea3c7c0 | ||
|
|
ed4a2646fb | ||
|
|
c59c161d96 | ||
|
|
f027aaa730 | ||
|
|
cf86f08d04 | ||
|
|
c4fab1b7e6 | ||
|
|
fd1c6b2e7d | ||
|
|
b366ab4653 | ||
|
|
ed4db2453e |
No files matched your search
@@ -1,5 +1,7 @@
|
|||||||
# These are supported funding model platforms
|
# These are supported funding model platforms
|
||||||
|
|
||||||
github: [foosel]
|
github: [foosel]
|
||||||
|
ko_fi: OctoPrint
|
||||||
patreon: foosel
|
patreon: foosel
|
||||||
|
liberapay: foosel
|
||||||
custom: https://octoprint.org/support-octoprint/
|
custom: https://octoprint.org/support-octoprint/
|
||||||
@@ -71,7 +71,7 @@ body:
|
|||||||
required: true
|
required: true
|
||||||
- type: input
|
- type: input
|
||||||
attributes:
|
attributes:
|
||||||
label: If you could not test in safe mode, please state why
|
label: If you could not test in safe mode, please state why ("currently printing" is NOT an excuse!)
|
||||||
description: >-
|
description: >-
|
||||||
Issues caused by a third party plugin are a major cause of bugs reported here, so we really need to
|
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
|
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
|
||||||
@@ -79,7 +79,7 @@ body:
|
|||||||
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
|
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).
|
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 at all, leave a short explanation as to why. If you,can but just not right now, then wait with reporting until you can.
|
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
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
|
|||||||
+10
-10
@@ -11,11 +11,11 @@ jobs:
|
|||||||
name: 🔨 Build distribution
|
name: 🔨 Build distribution
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: 🏗 Set up Python 3.7
|
- name: 🏗 Set up Python 3.7
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: 🏗 Install build dependencies
|
- name: 🏗 Install build dependencies
|
||||||
@@ -34,9 +34,9 @@ jobs:
|
|||||||
name: 🧹 Pre-commit
|
name: 🧹 Pre-commit
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: 🏗 Set up Python 3.7
|
- name: 🏗 Set up Python 3.7
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
- name: 🏗 Set up dev dependencies
|
- name: 🏗 Set up dev dependencies
|
||||||
@@ -53,9 +53,9 @@ jobs:
|
|||||||
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: 🏗 Set up Python ${{ matrix.python }}
|
- name: 🏗 Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- name: 🏗 Set up test dependencies
|
- name: 🏗 Set up test dependencies
|
||||||
@@ -70,7 +70,7 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: 🏗 Set up test dependencies
|
- name: 🏗 Set up test dependencies
|
||||||
run: |
|
run: |
|
||||||
npm -g install node-qunit-puppeteer@2.1.0
|
npm -g install node-qunit-puppeteer@2.1.0
|
||||||
@@ -94,7 +94,7 @@ jobs:
|
|||||||
name: dist
|
name: dist
|
||||||
path: dist
|
path: dist
|
||||||
- name: 🏗 Set up Python ${{ matrix.python }}
|
- name: 🏗 Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- name: 🚀 Install wheel
|
- name: 🚀 Install wheel
|
||||||
@@ -112,7 +112,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⬇ Checkout code
|
- name: ⬇ Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: ⬇ Download build result
|
- name: ⬇ Download build result
|
||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
@@ -121,7 +121,7 @@ jobs:
|
|||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
- name: 🏗 Set up Python 3.7
|
- name: 🏗 Set up Python 3.7
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.7
|
python-version: 3.7
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
name: 🔒 Lock issues & PRs closed over a year
|
name: 🔒 Lock issues & PRs closed over a year
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: dessant/lock-threads@v4
|
- uses: dessant/lock-threads@v5
|
||||||
with:
|
with:
|
||||||
github-token: ${{ github.token }}
|
github-token: ${{ github.token }}
|
||||||
issue-comment: ""
|
issue-comment: ""
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
issue-automation:
|
issue-automation:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
# with:
|
# with:
|
||||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
env:
|
env:
|
||||||
REMINDER: >
|
REMINDER: >
|
||||||
Hi @${{ github.event.issue.user.login }}!
|
Hi @${{ github.event.issue.user.login }}!
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ jobs:
|
|||||||
linkifyBundles:
|
linkifyBundles:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: ⬇ Checkout
|
- name: ⬇ Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- uses: actions/github-script@v6
|
- uses: actions/github-script@v7
|
||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
script: |
|
script: |
|
||||||
|
|||||||
@@ -15,21 +15,63 @@ jobs:
|
|||||||
matrix:
|
matrix:
|
||||||
os: ["ubuntu-latest"]
|
os: ["ubuntu-latest"]
|
||||||
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||||
branch: ["master"]
|
branch: ["master", "release"]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
|
- name: ⬇ Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
path: src
|
||||||
|
|
||||||
- name: 🐍 Set up Python ${{ matrix.python }}
|
- name: 🐍 Set up Python ${{ matrix.python }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python }}
|
python-version: ${{ matrix.python }}
|
||||||
- name: ⬇ Checkout code
|
|
||||||
uses: actions/checkout@v3
|
# Checkout code and install
|
||||||
|
- name: ⬇ Checkout code to test
|
||||||
|
if: ${{ matrix.branch != 'release' }}
|
||||||
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ matrix.branch }}
|
ref: ${{ matrix.branch }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
path: checkout
|
||||||
- name: 👷 Build and install checkout
|
- name: 👷 Build and install checkout
|
||||||
|
if: ${{ matrix.branch != 'release' }}
|
||||||
|
working-directory: checkout
|
||||||
run: |
|
run: |
|
||||||
pip install .
|
pip install .
|
||||||
|
|
||||||
|
# Install latest release
|
||||||
|
- name: 👀 Determine latest release
|
||||||
|
if: ${{ matrix.branch == 'release' }}
|
||||||
|
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: 👷 Build and install latest release
|
||||||
|
if: ${{ matrix.branch == 'release' }}
|
||||||
|
run: |
|
||||||
|
pip install https://github.com/OctoPrint/OctoPrint/archive/${{ env.OCTOPRINT_VERSION }}.zip
|
||||||
|
|
||||||
|
# Test if server starts without error
|
||||||
|
- name: 🏗 Create base config for test server
|
||||||
|
run: |
|
||||||
|
mkdir e2econfig
|
||||||
|
cp -r src/.github/fixtures/with_acl/* e2econfig
|
||||||
|
- name: 🧪 Start OctoPrint server
|
||||||
|
run: |
|
||||||
|
timeout -k 10s 30s octoprint serve --basedir e2econfig &
|
||||||
|
wait
|
||||||
|
- name: 🔎 Check octoprint.log for errors
|
||||||
|
run: |
|
||||||
|
log=${{ github.workspace }}/e2econfig/logs/octoprint.log
|
||||||
|
if grep "\- ERROR \-" $log; then
|
||||||
|
echo "::error::Errors were logged to octoprint.log"
|
||||||
|
grep -Pazo '(?m)^\N+\- ERROR \-\N*\n(^\N*?\n)*?(?=\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2},\d{3} \- )' $log
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: 📧 Discord success notification
|
- name: 📧 Discord success notification
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
env:
|
env:
|
||||||
@@ -45,38 +87,3 @@ jobs:
|
|||||||
uses: Ilshidur/action-discord@master
|
uses: Ilshidur/action-discord@master
|
||||||
with:
|
with:
|
||||||
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed"
|
args: "🚫 Test install on Python ${{ matrix.python }} under `${{ matrix.os }}` for `OctoPrint/OctoPrint:${{ matrix.branch }}` failed"
|
||||||
|
|
||||||
install-latest:
|
|
||||||
name: Install latest release
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: ["ubuntu-latest"]
|
|
||||||
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
steps:
|
|
||||||
- name: 👀 Determine latest release
|
|
||||||
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@v4
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python }}
|
|
||||||
- name: 👷 Build and install latest release
|
|
||||||
run: |
|
|
||||||
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:${{ env.OCTOPRINT_VERSION }}` was successful"
|
|
||||||
- name: 📧 Discord failure notification
|
|
||||||
continue-on-error: true
|
|
||||||
if: failure()
|
|
||||||
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:${{ env.OCTOPRINT_VERSION }}` failed"
|
|
||||||
+2
-2
@@ -26,8 +26,8 @@ improve/.* 1.9.0 fa2c4680cca0d1d6b46e6c1ed68ceea4d9b79afb pep440-dev
|
|||||||
|
|
||||||
# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases
|
# staging/bugfix is the branch for preparation of the 1.9.x bugfix releases
|
||||||
# so are any bug/... branches
|
# so are any bug/... branches
|
||||||
staging/bugfix 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
staging/bugfix 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
|
||||||
bug/.* 1.9.1 93e495f921ea445d69ef51a1415f304b85ad3577 pep440-dev
|
bug/.* 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
|
||||||
|
|
||||||
# staging/maintenance is currently the branch for preparation of 1.9.0rc6
|
# staging/maintenance is currently the branch for preparation of 1.9.0rc6
|
||||||
# so is regressionfix/...
|
# so is regressionfix/...
|
||||||
|
|||||||
@@ -176,6 +176,7 @@ date of first contribution):
|
|||||||
* [Moiz Rasheed](https://github.com/msrasheed)
|
* [Moiz Rasheed](https://github.com/msrasheed)
|
||||||
* [Scott Martin](https://github.com/smartin015)
|
* [Scott Martin](https://github.com/smartin015)
|
||||||
* [Shyam Sunder](https://github.com/sgsunder)
|
* [Shyam Sunder](https://github.com/sgsunder)
|
||||||
|
* [Christopher Perrin](https://github.com/cperrin88)
|
||||||
|
|
||||||
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
OctoPrint started off as a fork of [Cura](https://github.com/daid/Cura) by
|
||||||
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
[Daid Braam](https://github.com/daid). Parts of its communication layer and
|
||||||
|
|||||||
+4
-6
@@ -10,7 +10,6 @@ thanks to everyone who contributed!
|
|||||||
* 3DPrinterOS
|
* 3DPrinterOS
|
||||||
* Al Mucci
|
* Al Mucci
|
||||||
* Ash King
|
* Ash King
|
||||||
* Ben Fritsch
|
|
||||||
* BigTreeTech
|
* BigTreeTech
|
||||||
* Boris Hussein
|
* Boris Hussein
|
||||||
* Brad Jackson
|
* Brad Jackson
|
||||||
@@ -18,13 +17,12 @@ thanks to everyone who contributed!
|
|||||||
* Christian Wolf
|
* Christian Wolf
|
||||||
* Christian Würthner
|
* Christian Würthner
|
||||||
* Christoph Sigrist
|
* Christoph Sigrist
|
||||||
* Creality3D
|
|
||||||
* DeltaMaker 3D Printers
|
* DeltaMaker 3D Printers
|
||||||
* Dennis Breining
|
* Dennis Breining
|
||||||
* Dima Gorbenko
|
* Dima Gorbenko
|
||||||
* Douglas Floyd
|
|
||||||
* Ed Crump
|
* Ed Crump
|
||||||
* Ernesto Martinez
|
* Ernesto Martinez
|
||||||
|
* Fiberpunk
|
||||||
* Franziska Kunsmann
|
* Franziska Kunsmann
|
||||||
* Hog Duske
|
* Hog Duske
|
||||||
* Jacob Renstrom
|
* Jacob Renstrom
|
||||||
@@ -41,10 +39,10 @@ thanks to everyone who contributed!
|
|||||||
* Lachlan Bell
|
* Lachlan Bell
|
||||||
* Lefteris Lertas
|
* Lefteris Lertas
|
||||||
* LulzBot
|
* LulzBot
|
||||||
* Makerbase
|
|
||||||
* Makespace Madrid
|
* Makespace Madrid
|
||||||
* Mark Greenwald
|
* Mark Greenwald
|
||||||
* Mark Walker
|
* Mark Walker
|
||||||
|
* Martin Majewski
|
||||||
* Michael Aumock
|
* Michael Aumock
|
||||||
* Michael Badagliacco
|
* Michael Badagliacco
|
||||||
* Mike Labanov
|
* Mike Labanov
|
||||||
@@ -52,7 +50,6 @@ thanks to everyone who contributed!
|
|||||||
* Norman Jaffe
|
* Norman Jaffe
|
||||||
* Obico
|
* Obico
|
||||||
* Ory Weaver
|
* Ory Weaver
|
||||||
* Peopoly
|
|
||||||
* Pete Barnwell
|
* Pete Barnwell
|
||||||
* Raise3D
|
* Raise3D
|
||||||
* Randy C. Will
|
* Randy C. Will
|
||||||
@@ -64,6 +61,7 @@ thanks to everyone who contributed!
|
|||||||
* Stefan Krister
|
* Stefan Krister
|
||||||
* Steve Dougherty
|
* Steve Dougherty
|
||||||
* Steve Thompson
|
* Steve Thompson
|
||||||
|
* Tideline 3D
|
||||||
* Ulrich Kempken
|
* Ulrich Kempken
|
||||||
|
|
||||||
and 1979 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
and 1918 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel) or via [GitHub Sponsors](https://github.com/users/foosel/sponsorship)!
|
||||||
@@ -61,10 +61,10 @@ core_deps = [
|
|||||||
"pathvalidate>=2.5.2,<3",
|
"pathvalidate>=2.5.2,<3",
|
||||||
"pkginfo>=1.9.6,<2",
|
"pkginfo>=1.9.6,<2",
|
||||||
"psutil>=5.9.4,<6",
|
"psutil>=5.9.4,<6",
|
||||||
"pydantic>=1.10.7,<2",
|
"pydantic==1.10.12", # to be kept pinned until https://github.com/pydantic/pydantic/issues/7689 is resolved
|
||||||
"pylru>=1.2.1,<2",
|
"pylru>=1.2.1,<2",
|
||||||
"pyserial>=3.5,<4",
|
"pyserial>=3.5,<4",
|
||||||
"PyYAML>=5.4.1,<6", # no changelog available for version 6, so we're not risking it
|
"PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
|
||||||
"requests>=2.28.2,<3",
|
"requests>=2.28.2,<3",
|
||||||
"sarge==0.1.7.post1",
|
"sarge==0.1.7.post1",
|
||||||
"semantic_version>=2.10.0,<3",
|
"semantic_version>=2.10.0,<3",
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ try:
|
|||||||
|
|
||||||
# test if we can actually hash and verify, if not we won't use this backend
|
# test if we can actually hash and verify, if not we won't use this backend
|
||||||
hash = argon2.hash("test")
|
hash = argon2.hash("test")
|
||||||
argon2.verify("test", hash)
|
assert argon2.verify("test", hash)
|
||||||
|
|
||||||
password_hashers.append(argon2)
|
password_hashers.append(argon2)
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|||||||
@@ -18,10 +18,10 @@ from octoprint.util.version import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
SENTRY_URL_SERVER = (
|
SENTRY_URL_SERVER = (
|
||||||
"https://2887d6b262504b589a67632ab6ff6953@o118517.ingest.sentry.io/1373987"
|
"https://f723fd2a91da40dbae1148193ea49001@o118517.ingest.sentry.io/1373987"
|
||||||
)
|
)
|
||||||
SENTRY_URL_COREUI = (
|
SENTRY_URL_COREUI = (
|
||||||
"https://b6be6ca750ff4f8aabb07119fc6a7f31@o118517.ingest.sentry.io/1374096"
|
"https://a115318be6faed605c6bfde4e183b7a0@o118517.ingest.sentry.io/1374096"
|
||||||
)
|
)
|
||||||
|
|
||||||
SETTINGS_DEFAULTS = {
|
SETTINGS_DEFAULTS = {
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class SoftwareUpdatePlugin(
|
|||||||
octoprint.plugin.EventHandlerPlugin,
|
octoprint.plugin.EventHandlerPlugin,
|
||||||
):
|
):
|
||||||
COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit")
|
COMMIT_TRACKING_TYPES = ("github_commit", "bitbucket_commit")
|
||||||
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("etag", "lastmodified", "jsondata")
|
CURRENT_TRACKING_TYPES = COMMIT_TRACKING_TYPES + ("httpheader", "jsondata")
|
||||||
RELEASE_TRACKING_TYPES = ("github_release",)
|
RELEASE_TRACKING_TYPES = ("github_release",)
|
||||||
|
|
||||||
OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin")
|
OCTOPRINT_RESTART_TYPES = ("pip", "single_file_plugin")
|
||||||
|
|||||||
@@ -666,6 +666,7 @@ class PrinterProfileManager:
|
|||||||
("axes", "x", "speed"),
|
("axes", "x", "speed"),
|
||||||
("axes", "y", "speed"),
|
("axes", "y", "speed"),
|
||||||
("axes", "z", "speed"),
|
("axes", "z", "speed"),
|
||||||
|
("axes", "e", "speed"),
|
||||||
):
|
):
|
||||||
try:
|
try:
|
||||||
convert_value(profile, path, int)
|
convert_value(profile, path, int)
|
||||||
|
|||||||
@@ -593,9 +593,10 @@ class Settings:
|
|||||||
return folder
|
return folder
|
||||||
|
|
||||||
def _init_script_templating(self):
|
def _init_script_templating(self):
|
||||||
from jinja2 import BaseLoader, ChoiceLoader, Environment, TemplateNotFound
|
from jinja2 import BaseLoader, ChoiceLoader, TemplateNotFound
|
||||||
from jinja2.ext import Extension
|
from jinja2.ext import Extension
|
||||||
from jinja2.nodes import Include
|
from jinja2.nodes import Include
|
||||||
|
from jinja2.sandbox import SandboxedEnvironment
|
||||||
|
|
||||||
from octoprint.util.jinja import FilteredFileSystemLoader
|
from octoprint.util.jinja import FilteredFileSystemLoader
|
||||||
|
|
||||||
@@ -664,9 +665,9 @@ class Settings:
|
|||||||
def list_templates(self):
|
def list_templates(self):
|
||||||
return self._default.list_templates()
|
return self._default.list_templates()
|
||||||
|
|
||||||
class RelEnvironment(Environment):
|
class RelEnvironment(SandboxedEnvironment):
|
||||||
def __init__(self, prefix_sep=":", *args, **kwargs):
|
def __init__(self, prefix_sep=":", *args, **kwargs):
|
||||||
Environment.__init__(self, *args, **kwargs)
|
super().__init__(*args, **kwargs)
|
||||||
self._prefix_sep = prefix_sep
|
self._prefix_sep = prefix_sep
|
||||||
|
|
||||||
def join_path(self, template, parent):
|
def join_path(self, template, parent):
|
||||||
|
|||||||
@@ -21,3 +21,17 @@ class UserManagerTest(unittest.TestCase):
|
|||||||
|
|
||||||
# should not throw an exception
|
# should not throw an exception
|
||||||
octoprint.access.users.UserManager.create_password_hash(password)
|
octoprint.access.users.UserManager.create_password_hash(password)
|
||||||
|
|
||||||
|
def test_createPasswordHash_is_valid(self):
|
||||||
|
password = "test1234"
|
||||||
|
password_hash = octoprint.access.users.UserManager.create_password_hash(password)
|
||||||
|
user = octoprint.access.users.User(
|
||||||
|
"username",
|
||||||
|
password_hash,
|
||||||
|
True,
|
||||||
|
permissions=[],
|
||||||
|
apikey="apikey",
|
||||||
|
settings={"key": "value"},
|
||||||
|
)
|
||||||
|
|
||||||
|
self.assertTrue(user.check_password(password))
|
||||||
Reference in new issue
Block a user