Gina Häußge
a889bec4d8
🐛 Solve sorted issues under Python 3.x
...
sorted does no longer support sorting None values under Python 3. This
patch introduces a utility function that ensures that None values are
replaced by a configurable default value ("" by default) and utilizes
it in places where sorted gets called with a custom sorting key that
can potentially consist of None values.
Closes #3300
2019-10-10 14:54:07 +02:00
Matthias Urlichs
082f977f7a
Disable unicode strings in github_release
...
I am too lazy to fix all the doctests
2019-02-04 13:32:34 +01:00
Matthias Urlichs
1dacbc35bf
Use unicode_literals __future__
2019-02-03 14:09:57 +01:00
Matthias Urlichs
a1a15e40e0
Replace all bare "except:" handlers
...
These are never what we want, as they swallow KeyboardInterrupt.
TODO: many of these handlers really should be more specific and/or
log that they replaced an unparseable value with a default.
2019-01-28 07:50:55 +01:00
Matthias Urlichs
c05b6572c5
Fix coding= headers
2019-01-27 17:36:16 +01:00
sti2d
30359f52ab
In python 3, map/filter return specific object types that :
...
* are not directly iterable
* doesn't work with len() function
* doesn't allow list concatenation
This commit wraps all relevant map/filter outputs into a list object type
2018-07-14 09:22:27 +02:00
Gina Häußge
c104f45b16
SWU: Default to force_base = False
2018-04-24 13:49:21 +02:00
Gina Häußge
fb8c56be57
SWU: Track network connectivity & handle offline scenarios
...
See also #2011
2017-07-19 18:42:28 +02:00
Gina Häußge
981110d4b2
Devel RC release channel should also track Maintenance RCs
...
That way people don't have to toggle between Maintenance and Devel RCs
just to get _all_ RCs.
2017-06-14 13:52:47 +02:00
Gina Häußge
bba9d6cc18
Use proper timeouts for requests + better error handling
...
Default behaviour apparently is blocking, we never want that!
Also make error responses actually raise an exception.
2017-04-12 13:50:52 +02:00
Gina Häußge
5d97dc4b40
Better resilience against broken software update configs
...
Fixes #1773
2017-02-14 10:42:02 +01:00
Gina Häußge
9250cd0c3b
Whitespace, comments & added @eyal0 to AUTHORS.md
...
(cherry picked from commit c7f67cc)
2017-01-24 11:38:52 +01:00
Eyal Soha
6b2f28240e
Ignore a leading v or V in github release tags.
...
This fixes foosel/OctoPrint#1723 .
(cherry picked from commit f1c3829)
2017-01-24 11:38:46 +01:00
Gina Häußge
6f5ee4d291
Fixed doctests of software update version checks
2017-01-19 12:33:44 +01:00
Gina Häußge
e8a4750379
Improved (manually to run) doc test for latest release selector
2016-11-30 14:33:36 +01:00
Gina Häußge
efca776102
Merge branch 'maintenance' into devel
...
Conflicts:
src/octoprint/plugins/softwareupdate/templates/softwareupdate_settings.jinja2
src/octoprint/plugins/softwareupdate/updaters/update_script.py
2016-08-26 14:24:13 +02:00
Gina Häußge
34e5b5d50f
SWU: Sort github releases by version, not publication date
...
We can't rely on the publication date anymore with the introduction of prerelease
channels, since e.g. a current devel prerelease might have been published
earlier than the latest stable but should still be considered the latest release for
this release channel
2016-08-26 10:18:35 +02:00
Gina Häußge
b5bc03e711
First throw at release channels
...
We start out with master (Stable), rc/maintenance (Maintenance) and rc/devel (Devel)
2016-08-25 09:41:12 +02:00
MirceaDan
c33a9f9aa2
from __future__ import absolute_import, division, print_function
...
changed the behavior to import division and print to be consistent
across all app and similar with python 3.x
2016-07-15 00:16:58 -07:00
Gina Häußge
8149a3b4a8
Include release notes in update notification
...
... and confirmation dialog and settings dialog.
github_release fetches release notes link from github. Check configurations
can always set individual release notes links via the new `release_notes`
property. The URL also supports placeholders `{octoprint_version}`,
`{target_version}` and `{target_name}`. A custom release note URL
hence could be configured by a plugin via
def get_update_information(self):
return dict(
myplugin=dict(
[...]
release_notes="https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_{target_version} "
[...]
)
)
and if a new release "1.3.4" was now to be released would be displayed to the user as
https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_1.3.4
The same of course is possible via config.yaml:
plugins:
softwareupdate:
checks:
myplugin:
release_notes: 'https://me.github.io/MyPlugin/my/custom/releasenotes.html#version_{target_version} '
2015-12-10 14:41:46 +01:00
Gina Häußge
29d49179a9
SWU Fix: properly sanitize version strings for comparison
2015-07-05 10:04:06 +02:00
Gina Häußge
0f818a313d
Software Update: Default to pkg_resources for version comparison
...
That's also able to cope with 0.3a and similar "non-semantic" version schemes. Semantic version comparison can still be forced by setting the compare_type in the check to "semantic". Strict equality check can be set similarly by using the value "unequal".
2015-06-22 13:03:23 +02:00
Gina Häußge
2e6240a910
Bundled Software Update Plugin
2015-06-09 13:35:03 +02:00