Apparently we have an issue when updating from an older OctoPrint install
that included that to a newer one that depends on OctoPrint-Setuptools, because
the `octoprint_setuptools` package simply won't be installed in that case.
A reinstall after updating OctoPrint makes it available, but that's not something
we can do in the field.
Long term this needs a better solution, short term we are simply going to provide
OctoPrint-Setuptools to pyproject.toml users, and a vendored copy here. It's the
only solution I see for now.
Really closes#4749
Less than 1% of (tracked) OctoPrint client loads
happen in browsers that are still stuck on ES5.
So let's get rid of the ES5 limitation and make
life easier for anyone working on OctoPrint's JS
code.
As a test of the eslint config, login.js and
recovery.js have been switched to the use of
arrow functions.
Implements #4562
* pyupgrade
* various new codemods
* manual removal of Py2/3 compat imports
* manual adjustment of docs, examples, tests
* to_str is now the new to_unicode, deprecated
redirection to to_bytes has been removed
* to_native_str has been redirected to point to
to_str
* to_unicode has been redirected to point to
to_str
* atomic_write refactored to use
NamedTemporaryDirectory
* various other fixes/refactorings all over the
place
Make sure our core JS files stay ES5 compatible.
Alternatively we could find a way run them through babel first, initial
experiments with dukpy have sadly resulted in a blocked server, so far
no clue why.
Related to #3920