Compare commits
14
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a93b4d3972 | ||
|
|
b141f79669 | ||
|
|
dfe2893049 | ||
|
|
f325791ec6 | ||
|
|
df257eca83 | ||
|
|
74990e8ee6 | ||
|
|
506648c152 | ||
|
|
d0072cff89 | ||
|
|
2b7c01563f | ||
|
|
7bfd77d9eb | ||
|
|
5ca7f07cb7 | ||
|
|
3bde48a9fb | ||
|
|
87bea3c7c0 | ||
|
|
c59c161d96 |
No files matched your search
@@ -1,5 +1,7 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [foosel]
|
||||
ko_fi: OctoPrint
|
||||
patreon: foosel
|
||||
liberapay: foosel
|
||||
custom: https://octoprint.org/support-octoprint/
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
name: 🔒 Lock issues & PRs closed over a year
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: dessant/lock-threads@v4
|
||||
- uses: dessant/lock-threads@v5
|
||||
with:
|
||||
github-token: ${{ github.token }}
|
||||
issue-comment: ""
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
issue-automation:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v6
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
@@ -72,7 +72,7 @@ jobs:
|
||||
# with:
|
||||
# repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- uses: actions/github-script@v6
|
||||
- uses: actions/github-script@v7
|
||||
env:
|
||||
REMINDER: >
|
||||
Hi @${{ github.event.issue.user.login }}!
|
||||
|
||||
@@ -7,7 +7,7 @@ jobs:
|
||||
linkifyBundles:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/github-script@v6
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
||||
@@ -12,7 +12,7 @@ jobs:
|
||||
with:
|
||||
repo-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
|
||||
- uses: actions/github-script@v6
|
||||
- uses: actions/github-script@v7
|
||||
with:
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
script: |
|
||||
|
||||
@@ -15,21 +15,63 @@ jobs:
|
||||
matrix:
|
||||
os: ["ubuntu-latest"]
|
||||
python: ["3.7", "3.8", "3.9", "3.10", "3.11"]
|
||||
branch: ["master"]
|
||||
branch: ["master", "release"]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- name: ⬇ Checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
path: src
|
||||
|
||||
- name: 🐍 Set up Python ${{ matrix.python }}
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python }}
|
||||
- name: ⬇ Checkout code
|
||||
|
||||
# Checkout code and install
|
||||
- name: ⬇ Checkout code to test
|
||||
if: ${{ matrix.branch != 'release' }}
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ matrix.branch }}
|
||||
fetch-depth: 0
|
||||
path: checkout
|
||||
- name: 👷 Build and install checkout
|
||||
if: ${{ matrix.branch != 'release' }}
|
||||
working-directory: checkout
|
||||
run: |
|
||||
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
|
||||
continue-on-error: true
|
||||
env:
|
||||
@@ -45,38 +87,3 @@ jobs:
|
||||
uses: Ilshidur/action-discord@master
|
||||
with:
|
||||
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
|
||||
# so are any bug/... branches
|
||||
staging/bugfix 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
|
||||
bug/.* 1.9.2 1d519a21702ea180c026929da2a6e17079470b9a pep440-dev
|
||||
staging/bugfix 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
|
||||
bug/.* 1.9.3 f027aaa7300f70b046525a49245b33c43dd198c1 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.9.0rc6
|
||||
# so is regressionfix/...
|
||||
|
||||
+4
-6
@@ -10,7 +10,6 @@ thanks to everyone who contributed!
|
||||
* 3DPrinterOS
|
||||
* Al Mucci
|
||||
* Ash King
|
||||
* Ben Fritsch
|
||||
* BigTreeTech
|
||||
* Boris Hussein
|
||||
* Brad Jackson
|
||||
@@ -18,13 +17,12 @@ thanks to everyone who contributed!
|
||||
* Christian Wolf
|
||||
* Christian Würthner
|
||||
* Christoph Sigrist
|
||||
* Creality3D
|
||||
* DeltaMaker 3D Printers
|
||||
* Dennis Breining
|
||||
* Dima Gorbenko
|
||||
* Douglas Floyd
|
||||
* Ed Crump
|
||||
* Ernesto Martinez
|
||||
* Fiberpunk
|
||||
* Franziska Kunsmann
|
||||
* Hog Duske
|
||||
* Jacob Renstrom
|
||||
@@ -41,10 +39,10 @@ thanks to everyone who contributed!
|
||||
* Lachlan Bell
|
||||
* Lefteris Lertas
|
||||
* LulzBot
|
||||
* Makerbase
|
||||
* Makespace Madrid
|
||||
* Mark Greenwald
|
||||
* Mark Walker
|
||||
* Martin Majewski
|
||||
* Michael Aumock
|
||||
* Michael Badagliacco
|
||||
* Mike Labanov
|
||||
@@ -52,7 +50,6 @@ thanks to everyone who contributed!
|
||||
* Norman Jaffe
|
||||
* Obico
|
||||
* Ory Weaver
|
||||
* Peopoly
|
||||
* Pete Barnwell
|
||||
* Raise3D
|
||||
* Randy C. Will
|
||||
@@ -64,6 +61,7 @@ thanks to everyone who contributed!
|
||||
* Stefan Krister
|
||||
* Steve Dougherty
|
||||
* Steve Thompson
|
||||
* Tideline 3D
|
||||
* Ulrich Kempken
|
||||
|
||||
and 1970 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,7 +61,7 @@ core_deps = [
|
||||
"pathvalidate>=2.5.2,<3",
|
||||
"pkginfo>=1.9.6,<2",
|
||||
"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",
|
||||
"pyserial>=3.5,<4",
|
||||
"PyYAML>=6.0.1,<7", # changelog at https://github.com/yaml/pyyaml/blob/master/CHANGES
|
||||
|
||||
@@ -18,10 +18,10 @@ from octoprint.util.version import (
|
||||
)
|
||||
|
||||
SENTRY_URL_SERVER = (
|
||||
"https://ba4e3d61c37a4d219e1cd81bdc1417a7@o118517.ingest.sentry.io/1373987"
|
||||
"https://f723fd2a91da40dbae1148193ea49001@o118517.ingest.sentry.io/1373987"
|
||||
)
|
||||
SENTRY_URL_COREUI = (
|
||||
"https://2382252761de4d318e5f83be0816efaa@o118517.ingest.sentry.io/1374096"
|
||||
"https://a115318be6faed605c6bfde4e183b7a0@o118517.ingest.sentry.io/1374096"
|
||||
)
|
||||
|
||||
SETTINGS_DEFAULTS = {
|
||||
|
||||
@@ -666,6 +666,7 @@ class PrinterProfileManager:
|
||||
("axes", "x", "speed"),
|
||||
("axes", "y", "speed"),
|
||||
("axes", "z", "speed"),
|
||||
("axes", "e", "speed"),
|
||||
):
|
||||
try:
|
||||
convert_value(profile, path, int)
|
||||
|
||||
@@ -593,9 +593,10 @@ class Settings:
|
||||
return folder
|
||||
|
||||
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.nodes import Include
|
||||
from jinja2.sandbox import SandboxedEnvironment
|
||||
|
||||
from octoprint.util.jinja import FilteredFileSystemLoader
|
||||
|
||||
@@ -664,9 +665,9 @@ class Settings:
|
||||
def list_templates(self):
|
||||
return self._default.list_templates()
|
||||
|
||||
class RelEnvironment(Environment):
|
||||
class RelEnvironment(SandboxedEnvironment):
|
||||
def __init__(self, prefix_sep=":", *args, **kwargs):
|
||||
Environment.__init__(self, *args, **kwargs)
|
||||
super().__init__(*args, **kwargs)
|
||||
self._prefix_sep = prefix_sep
|
||||
|
||||
def join_path(self, template, parent):
|
||||
|
||||
Reference in new issue
Block a user