Gina Häußge
04391495e7
Merge branch 'devel' into dev/commRefactoringNG
2021-05-20 17:12:41 +02:00
Gina Häußge
b202c6db54
🔥 Remove Py2 related code
2021-05-20 15:42:37 +02:00
Gina Häußge
3778bcc423
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/development/environment.rst
2021-05-20 15:34:29 +02:00
Gina Häußge
9cf0802bf2
💚 Fix a typo in a unit test
2021-05-20 15:21:11 +02:00
Gina Häußge
49621a65b0
Merge branch 'maintenance' into devel
2021-05-20 12:23:26 +02:00
Gina Häußge
f912adcd33
✨ Support unicode file names on Py3
...
If we are on py3 and thus can rely on pathvalidate, we'll now no longer
slugify uploaded files names, but try to keep them as close to the
original name as possible, including unicode and emoji and whatnot. This
requires the underlying file system to support this, so just in case the
old behaviour can be enforced by setting the config flag
feature.enforceReallyUniversalFilenames to true.
Closes #4078
2021-05-20 10:36:01 +02:00
cp2004
2c03ecdfff
🐛 Fix SameSite=None cookie
...
When passing Python's NoneType down to Werkzeug, it uses this logic:
```python
if samesite is not None:
samesite = samesite.title()
if samesite not in {"Strict", "Lax", "None"}:
raise ValueError("SameSite must be 'Strict', 'Lax', or 'None'.")
```
This means that when OctoPrint converted any strings 'None' into NoneType,
they would not show up in the Set-Cookie header.
Investigation: https://community.octoprint.org/t/unable-to-log-into-octoprint-through-an-iframe-on-home-assistant/33977/20?u=charlie_powell
Link to werkzeug source: https://github.com/pallets/werkzeug/blob/1dde4b1790f9c46b7122bb8225e6b48a5b22a615/src/werkzeug/http.py#L1213-L1217
Docs, while not explicitly clear, here: https://werkzeug.palletsprojects.com/en/1.0.x/http/?highlight=dump_cookie#werkzeug.http.dump_cookie
2021-05-12 16:30:44 +01:00
Gina Häußge
d80f67df9a
Merge branch 'maintenance' into devel
2021-05-10 16:39:21 +02:00
Gina Häußge
6053cad832
💚 Update cypress dependencies
2021-05-10 16:37:33 +02:00
Gina Häußge
d197fabffc
Merge branch 'devel' into dev/commRefactoringNG
2021-04-19 18:01:30 +02:00
Gina Häußge
f97db4465f
Merge branch 'maintenance' into devel
2021-03-30 14:27:32 +02:00
Gina Häußge
631085f78f
♻️ Extract PiSupport plugin into own repo
2021-03-26 16:46:54 +01:00
Gina Häußge
983dd4d437
♻️ Actually, make it the WHOLE command line indeed
...
See #3972
2021-03-24 16:03:24 +01:00
Gina Häußge
7e37569613
✨ Make ffmpeg command line fully configurable
...
Implements #3972
2021-03-24 15:36:19 +01:00
Gina Häußge
306d4f2942
🎨 pre-commit with new settings
2021-03-17 15:11:54 +01:00
Gina Häußge
741fac4396
Merge branch 'devel' into dev/commRefactoringNG
2021-03-16 15:26:42 +01:00
Gina Häußge
d8fa8e3029
Merge branch 'maintenance' into devel
...
# Conflicts:
# .github/workflows/build.yml
# .github/workflows/test_install.yml
# setup.py
# src/octoprint/printer/standard.py
# src/octoprint/util/__init__.py
2021-03-15 18:03:51 +01:00
Gina Häußge
3feb8deb8c
💚 Fix unit tests
...
Some day I'll learn to search in src AND tests...
2021-03-15 17:55:25 +01:00
Gina Häußge
7668afcff7
💚 Fix unit tests
...
io.open is no longer used, mocks needed adjustments
2021-03-11 17:06:04 +01:00
Gina Häußge
fd2ece0f13
🎨 pyupgrade --py37-plus
2021-03-11 16:01:02 +01:00
Gina Häußge
a71f6fcd40
Merge branch 'maintenance' into devel
...
# Conflicts:
# .pre-commit-config.yaml
# setup.py
# src/octoprint/plugins/pluginmanager/__init__.py
# src/octoprint/server/api/printer.py
# src/octoprint/server/api/printer_profiles.py
# src/octoprint/server/api/settings.py
# src/octoprint/util/commandline.py
2021-03-11 15:26:46 +01:00
Gina Häußge
f9745515e1
🎨 Add pyupgrade
2021-03-11 14:34:06 +01:00
Gina Häußge
47cf12e9f3
💚 e2e: fix pmgr endpoint
...
Changed with 084625fe7c
2021-03-09 12:38:59 +01:00
Gina Häußge
bea7f34887
🎨 Get rid of py2 leftovers
2021-02-25 15:21:50 +01:00
Gina Häußge
11e30150b7
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# src/octoprint/static/css/octoprint.css
2021-02-25 14:48:18 +01:00
Gina Häußge
5b7bc6cb91
Merge branch 'maintenance' into devel
2021-02-24 15:04:22 +01:00
Gina Häußge
97b6f25cfd
Merge branch 'pr/3916' into maintenance
2021-02-23 11:32:55 +01:00
Gina Häußge
fec2f9b83e
🐛 Further firmware line parser fixes
...
Something like _KEY should never get recognized as a key.
2021-02-23 11:32:36 +01:00
cp2004
bd3f7f8897
🎨 Make black happy again
2021-02-22 18:46:24 +00:00
cp2004
e43f4ddb50
💚 Add more tests for firmware info splitting
...
Part of #3916
2021-02-22 18:34:15 +00:00
Gina Häußge
86aa5548c6
✅ Make test fix align with other such cases
2021-02-22 16:47:05 +01:00
Levi Blaney
a628549ad3
Fixes #3999 test fails to reload config file
2021-02-20 10:12:16 -05:00
Gina Häußge
0fd00ef5fc
Merge branch 'maintenance' into devel
...
# Conflicts:
# docs/development/environment.rst
2021-02-17 15:38:54 +01:00
Gina Häußge
55b08f6b5b
✨ backup: allow retore of backups from newer patch versions
...
E.g. backups from 1.6.3 can be applied on 1.6.2. However, 1.6.x still
won't be possible to restore under 1.5.x or earlier.
2021-02-17 14:05:40 +01:00
Gina Häußge
65706d4171
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# THIRDPARTYLICENSES.md
# src/octoprint/__init__.py
# src/octoprint/filemanager/__init__.py
# src/octoprint/filemanager/storage/local.py
# src/octoprint/logging/handlers.py
# src/octoprint/plugin/__init__.py
# src/octoprint/plugins/virtual_printer/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/__init__.py
# src/octoprint/printer/estimation.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/__init__.py
# src/octoprint/server/api/connection.py
# src/octoprint/server/api/files.py
# src/octoprint/server/api/settings.py
# src/octoprint/server/util/flask.py
# src/octoprint/server/views.py
# src/octoprint/settings.py
# src/octoprint/static/css/octoprint.css
# src/octoprint/static/js/app/viewmodels/connection.js
# src/octoprint/static/js/app/viewmodels/settings.js
# src/octoprint/static/less/octoprint.less
# src/octoprint/templates/dialogs/settings/serialconnection.jinja2
# src/octoprint/templates/index.jinja2
# src/octoprint/templates/sidebar/connection.jinja2
# src/octoprint/timelapse.py
# src/octoprint/util/__init__.py
# tests/filemanager/test_filemanager.py
# tests/plugin/test_settings.py
2021-02-10 16:59:45 +01:00
Gina Häußge
5e620bcdfe
Merge pull request #3981 from eumiro/py36plus
...
🚀 Modernize the code to Python 3.6+
2021-01-26 10:53:45 +01:00
Miroslav Šedivý
dcd3592fd4
✒️ Fix declared encoding of literal strings
2021-01-25 19:00:33 +01:00
Miroslav Šedivý
0308150048
📗 Compact dict creation
2021-01-25 19:00:28 +01:00
Miroslav Šedivý
95441dafd4
📦 Use Python3 default for class inheriting from object
2021-01-25 18:04:40 +01:00
Miroslav Šedivý
7810a622a9
🦕 Remove redundant float conversions from Python2
2021-01-22 13:40:44 +01:00
Gina Häußge
785a938cc6
Merge branch 'maintenance' into py2numbers
2021-01-22 11:28:48 +01:00
Miroslav Šedivý
acb9e09293
🦕 Remove redundant float conversions from Python2
...
Since we import division from __future__, the division behaves the same in Python 2.7 and 3.x
2021-01-21 19:42:42 +01:00
Gina Häußge
bb8fafaacb
💚 mock => unittest.mock
...
We don't have the mock package installed here anymore
2021-01-19 11:52:41 +01:00
Gina Häußge
977e021b36
Merge branch 'maintenance' into devel
2021-01-19 11:44:31 +01:00
Gina Häußge
e9adcddf7f
💚 Fix py2.7 test issue
...
We still need to stay compatible to py2, so
we need to import mock, not unittest.mock.
2021-01-18 17:06:08 +01:00
Gina Häußge
20c0833cbc
✏️ Fix file header
2021-01-18 16:52:33 +01:00
Levi Blaney
1be8c23069
add tests for gcode script events
2021-01-18 16:47:24 +01:00
Gina Häußge
00fb7daecf
Merge branch 'maintenance' into devel
2021-01-14 16:12:30 +01:00
Gina Häußge
6b2485363e
✅ Update e2e dep version
...
Should make dependabot happy about our e2e tests again.
2021-01-11 19:17:39 +01:00
Gina Häußge
221ecad5c8
✅ Update e2e dep version
...
Should make dependabot happy about our e2e tests again.
2021-01-11 16:17:10 +01:00