Gina Häußge
116e6e7190
Merge branch 'devel' into dev/commRefactoringNG
2021-12-08 13:26:02 +01:00
Gina Häußge
8505a977d6
💚 Fix a unit test that got forgotten to adjust
2021-12-08 13:12:44 +01:00
Gina Häußge
cb47151646
Merge branch 'devel' into dev/commRefactoringNG
2021-12-06 16:54:48 +01:00
Gina Häußge
0dba51181c
Merge branch 'maintenance' into devel
2021-12-06 16:25:53 +01:00
Martijn Braam and Gina Häußge
8b3a51c1a0
⏪ Back to frozendict (#4244 )
...
The original frozendict module is maintained again and has not removed
setup.py from the repository to make packaging harder. Also the 2.x
releases have added native code to speed it up.
We need to however stick to older versions for
Python 2 and can only pull in newer versions
under Python 3.
Co-authored-by: Gina Häußge <gina@octoprint.org >
2021-11-10 12:49:14 +01:00
Gina Häußge
54454deaf3
🎨 Post-merge pre-commit fixes
2021-10-12 18:27:18 +02:00
Gina Häußge
b3affac9e5
Merge branch 'maintenance' into devel
2021-10-11 16:31:25 +02:00
Gina Häußge
4c1d0338f4
✅ Add basic tests for fast_deepcopy
...
Should handle regular dict and something that's not
pickleable.
2021-09-15 18:17:42 +02:00
Gina Häußge
411b925506
🗑 Deprecate octoprint.util.bom_aware_open
...
The same can be achieved with io.open and a -sig encoding.
To be removed in 2.0
Closes #4228
2021-09-14 18:07:34 +02:00
Flaviu Tamas
f3c0c29f69
Use C YAML loader when possible
...
This is a lot faster:
before _get_options: .339, .317, .220, .321, .315
after _get_options: .037, .106, .037, .145, .089
2021-09-13 16:16:53 +02:00
Gina Häußge
70d07889e2
💚 emoji update changed wolf_face to wolf
2021-08-03 12:03:05 +02:00
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