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
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
Matthias Urlichs
7ad4d75588
fixed merge errors
2019-02-05 17:34:15 +01:00
Gina Häußge
5a623b486c
✅ Adding flake8 to CI
2019-02-05 17:28:44 +01:00
Gina Häußge
920283cf87
Merge branch 'devel' into pr/3032
...
# Conflicts:
# src/octoprint/access/groups.py
# src/octoprint/static/css/octoprint.css
2019-02-05 17:08:24 +01:00
Gina Häußge
becd16b892
🐛 Fix a test
2019-02-05 16:08:40 +01:00
Gina Häußge
f59c1ce804
⬆ Upgrade Flask-Login dependency
...
It used to be 0.3.0+, some merge in the past must have broken that.
2019-02-05 15:58:15 +01:00