Gina Häußge
4c76225c41
🚧 WIP: Fixing tests, part 2
2019-02-15 18:54:07 +01:00
Gina Häußge
4be18c2668
🚧 WIP: Fixing tests
2019-02-15 12:56:57 +01:00
Gina Häußge
225cca34e1
🔥 Remove old test code
2019-02-14 17:29:42 +01:00
Gina Häußge
9a4149164b
♻ Some porting from maintenance/devel
2019-02-14 17:29:02 +01:00
Gina Häußge
cf9243c2e7
Merge branch 'devel' into dev/commRefactoringNG
...
# Conflicts:
# src/octoprint/filemanager/storage/local.py
# src/octoprint/logging/handlers.py
# src/octoprint/plugin/__init__.py
# src/octoprint/plugins/virtual_printer/virtual.py
# src/octoprint/printer/standard.py
# src/octoprint/server/__init__.py
# src/octoprint/server/api/connection.py
# src/octoprint/server/api/files.py
# src/octoprint/settings.py
# src/octoprint/static/js/app/viewmodels/connection.js
# src/octoprint/util/__init__.py
# tests/plugin/test_settings.py
2019-02-14 17:27:00 +01:00
Gina Häußge
b6b562399e
💥 Remove deprecated AppSessionManager
...
Has been replaced by the bundled AppKeys plugin and its workflow.
Deprecation will be announced in 1.3.11.
2019-02-13 17:04:31 +01:00
Gina Häußge
e7dbd804ce
♻ Use to_unicode instead
...
See #2722
2019-02-13 16:35:00 +01:00
Gina Häußge
7fd03265d4
🐛 Work around for jsonify calls with bytes
...
See #2722
2019-02-13 16:32:34 +01:00
Gina Häußge
369679bae5
🐛 Work around CPython bug bpo-29097
2019-02-13 16:12:28 +01:00
Gina Häußge
27e1f2e6e7
🐛 Fix package collection
...
As mentioned in #2722
See also razerraz@d269c36
2019-02-13 15:26:15 +01:00
Gina Häußge
109cbeea6a
🐛 Fix slicing permission
2019-02-13 15:21:37 +01:00
Gina Häußge
75b5fe198f
Merge branch 'maintenance' into devel
...
# Conflicts:
# AUTHORS.md
# src/octoprint/_version.py
# src/octoprint/plugins/backup/__init__.py
# src/octoprint/plugins/cura/__init__.py
# src/octoprint/plugins/cura/profile.py
# src/octoprint/plugins/cura/templates/cura_settings.jinja2
# src/octoprint/plugins/softwareupdate/scripts/update-octoprint.py
# src/octoprint/printer/standard.py
# src/octoprint/server/api/files.py
# src/octoprint/server/util/tornado.py
# src/octoprint/server/views.py
# src/octoprint/users.py
# src/octoprint/util/__init__.py
# versioneer.py
2019-02-13 14:28:06 +01:00
Gina Häußge
fe65f18f78
💥 Unbundling the cura plugin
...
It lives on as curalegacy at
https://github.com/OctoPrint/OctoPrint-CuraLegacy
which will be added to the plugin repository once the first RC of 1.3.11
lands.
Due to this change, the general handling of STL files has also changed
slightly. They will no longer be supported by upload out of the box
unless a SlicerPlugin is available (which will now by default extend the
extension tree with STL files, unless overwritten). As a consequence of
that the file type filters in the file list have also been adjusted to
only show up if there are additional file types to filter for.
2019-02-13 13:41:44 +01:00
Gina Häußge
e1e302f93d
✨ Allow slicing while printing on multi core systems
...
If we don't know the number of cores or the number is less than two we
the old behaviour still applies.
Implements #1938
2019-02-13 12:06:32 +01:00
Gina Häußge
1cea388481
🐛 Fix _version.py generation
2019-02-12 13:53:20 +01:00
Gina Häußge
34d6a6f8ce
⬆ Update versioneer & generated file
2019-02-12 12:29:00 +01:00
Gina Häußge
c6b4eee437
🐛 treat pausing as paused for resume handling
...
See MarlinFirmware/Marlin#13039 and #2955
2019-02-11 18:21:32 +01:00
Gina Häußge
e67f72ce3d
🐛 paused action must not trigger *any* local processing
...
That includes sending M400 and M114 to capture the pause position.
See MarlinFirmware/Marlin#13039
2019-02-11 18:19:47 +01:00
Gina Häußge
de6da3f360
Merge branch 'master' into maintenance
2019-02-11 10:08:54 +01:00
Gina Häußge
b744c341eb
💬 discourse.octoprint.org => community.octoprint.org
2019-02-11 09:58:39 +01:00
Gina Häußge
601451a3f1
✨ Setting to disable fuzzy estimates
...
Implements #3040
2019-02-08 16:44:25 +01:00
Gina Häußge
81d523b73d
♻ Backport to_str -> to_bytes from devel
...
Add unit tests.
2019-02-08 14:39:07 +01:00
Gina Häußge
deacd9c188
Merge pull request #3041 from Microtome/add-klipper-to-firmware-autodetect
...
Add support for klipper in firmware autodetect
2019-02-08 14:02:37 +01:00
Gina Häußge
3c5aa60d2b
🐛 Some more unicode vs bytes fixes
2019-02-07 18:35:35 +01:00
Daniel Joyce
6e0024149e
Add support for klipper firmware autodetect
2019-02-07 07:36:11 -08:00
Gina Häußge
580e5f5122
🐛 It's time.monotonic in py3, not monotonic.monotonic
2019-02-07 15:40:31 +01:00
Gina Häußge
dd3b318327
Merge branch 'pr/3036' into maintenance
2019-02-07 12:07:13 +01:00
Gina Häußge
3ae284d9a7
Merge branch 'devel' into pr/3032
2019-02-07 11:51:41 +01:00
Gina Häußge
caf5be562e
🐛 Workaround for "Request.is_xhr deprecated" warning
2019-02-07 11:51:09 +01:00
Daniel Joyce
0cf345f29b
Fix bug where if no plugins are installed, restore fails
...
* When no plugins are installed, backup does not create a
plugin_list.json file.
* Restore then fails when it tries to read the missing file.
* Add check to ensure plugin_list.json exists before restoring
from backup.
2019-02-06 21:06:19 -08:00
Daniel Joyce
0fda153d60
Provide a better name for backup files, use utility function for consistent name
2019-02-06 20:45:07 -08:00
Gina Häußge
deee737660
🐛 Raise no exception in case of missing wheel metadata
...
That's normal for plugins that were installed as eggs instead of wheels
and we don't want to raise the error in this case. If we also don't find
egg metadata we'll log a warning anyhow.
Any other exceptions will be raised though.
2019-02-06 18:36:00 +01:00
Matthias Urlichs
e2d4b64510
superfluous "import io"
2019-02-06 17:29:19 +01:00
Gina Häußge
7614ef40d3
🐛 Fix repeatability of doctests under py2
2019-02-06 17:07:50 +01:00
Gina Häußge
935639a51a
🐛 Fix json file writing
...
Apparently json.dump produces mixed bytes/unicode content. So now we use
json.dumps wrapped in to_bytes and that's it.
2019-02-06 16:51:54 +01:00
Hannappel
84f95b1099
Fixes creating of groups
2019-02-06 16:08:15 +01:00
Gina Häußge
fd8788dd34
♻ More error resilience for encoding issues in config.yaml
...
Normally I'd say, broken files are broken files, but since in case of an
encoding error in config.yaml the server won't come up anymore we are
erring on the side of caution here and running with errors="replace"
2019-02-06 16:06:56 +01:00
Gina Häußge
32a8646135
♻ codecs.open -> io.open
...
The general consensus regarding codecs.open appears to be that it's only
left in Python 3 for backwards compatibility (which I find kind funny
but I digress...) and that io.open should be used instead for Py2.6+
since it's available and behaving the same in both versions. So that's
what we do here.
2019-02-06 16:05:09 +01:00
Gina Häußge
09cc7cf5f7
🐛 Fix unicode vs bytes issues for atomic_write
...
NamedTemporaryFile doesn't support the encoding parameter under py2.
However, without it specifying text mode defaults to ascii, causing some
issues especially with config files containing utf-8.
By swapping NamedTemporaryFile for mkstemp and a custom io.open call
(parameterized according to the open mode) we can support a proper
encoding aware atomic_write.
2019-02-06 16:03:32 +01:00
Gina Häußge
18b2ecd64c
🐛 Fix unicode vs bytes issues in PipCaller
...
* environment for subprocess needs native str (at least under win)
* when reading a text file we should also be writing one inside the
test balloon
2019-02-06 12:53:23 +01:00
Gina Häußge
cc6f61c62e
🐛 discovery: fix unicode vs bytes issues in SSDP
2019-02-06 12:00:16 +01:00
Matthias Urlichs
a7ca374955
Fix additional flake8 nits
2019-02-05 17:54:09 +01:00
Daniel Joyce
6b4dfcb960
Support opening serial port in exclusive mode.
...
* Slight cleanup and refactoring
2019-02-05 08:46:44 -08:00
Matthias Urlichs
d7d3272905
Merge errors fixed
2019-02-05 17:43:31 +01:00
Matthias Urlichs
9eb29a8ce0
found another unnecessary list-ification
2019-02-05 17:41:30 +01:00
Matthias Urlichs
bf16bd1180
Merge py23 from devel
2019-02-05 17:36:07 +01:00
Matthias Urlichs
7b5315383b
Add wildcard import for compatibility
2019-02-05 17:35:25 +01:00
Matthias Urlichs
72729ad418
fix speling an move to docstring
2019-02-05 17:34:57 +01:00
Matthias Urlichs
e6f902cbe7
add logging
2019-02-05 17:34:45 +01:00
Matthias Urlichs
9b14f32279
take PY3 from existing declaration
2019-02-05 17:34:27 +01:00