Gina Häußge
649bfdbe37
Merge branch 'master' into maintenance
2019-02-12 12:18:31 +01:00
Gina Häußge
8ce2290d63
📝 Improve docs for connection API
...
See #3043
2019-02-12 12:07:55 +01:00
Gina Häußge
b1413abfff
Merge pull request #3045 from akraus53/patch-1
...
I fixed a few typos in the German translation
2019-02-12 12:02:42 +01:00
Alexander Kraus
772914f38c
Fixed a few typos
...
I hope this is the correct Branch....
2019-02-11 22:54:04 +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
697af69e97
Merge branch 'master' into maintenance
2019-02-08 17:06:59 +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
1b876f1cf3
♻ Only depend on chainmap and scandir under py2
2019-02-07 16:31:43 +01: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
22f6a38f0a
♻ Universal wheel and related setup.py adjustments
...
Also make sure that our environment specific dependencies get recorded
to the wheel so that we don't have to build in the same environment as
the software will run later (consider this work towards a PyPI release
that might also be backported).
2019-02-07 15:28:01 +01:00
Gina Häußge
620aa4dfe0
📝 README adjustment to state Py3 support
2019-02-07 12:35:53 +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
1ccc787222
📝 docs: grammar
2019-02-07 11:57:21 +01:00
Gina Häußge
f8e7ae7436
Merge branch 'py23' of github.com:smurfix/OctoPrint into pr/3032
2019-02-07 11:56:16 +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
Gina Häußge
069e83c63c
Merge pull request #3039 from Microtome/improve-backup-filename
...
Improve backup filename, fix for #3030
2019-02-07 11:43:02 +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
Matthias Urlichs
c01a34f358
fix grammar, simplify instructions
...
A "pip" alias that points to the correct version is part of the venv.
"activate" auto-deactivates the previous venv.
2019-02-06 18:46:53 +01: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
Gina Häußge
8425c7b973
Merge branch 'py23' of github.com:smurfix/OctoPrint into pr/3032
2019-02-06 18:13:57 +01:00
Gina Häußge
1e42db040d
📝 docs: some rewording re dev environment
2019-02-06 18:12:44 +01:00
Matthias Urlichs
e2d4b64510
superfluous "import io"
2019-02-06 17:29:19 +01:00
Gina Häußge
61136edeea
✅ Add tox.ini
2019-02-06 17:19:28 +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
Gina Häußge
ec689e3939
🐛 Fix versioneer
2019-02-06 16:35:32 +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
496e9f0ec4
✅ Add unit test for pip caller initialization
2019-02-06 13:11:03 +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
de149613cb
Run flake8 tests only once
2019-02-05 18:13:44 +01:00
Matthias Urlichs
a7ca374955
Fix additional flake8 nits
2019-02-05 17:54:09 +01:00
Daniel Joyce
61ac8430d6
Added self to Authors file
2019-02-05 08:46:58 -08: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