Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a8747f7e36 | ||
|
|
17e6f5d508 | ||
|
|
133a4658ee | ||
|
|
0a2e2ed297 | ||
|
|
6b41dbc12b |
No files matched your search
+3
-3
@@ -22,10 +22,10 @@ maintenance 1.3.6 1a6dbb3f4a5bef857cdeb13c031b9deca2cf30a2 pep440-dev
|
||||
fix/.* 1.3.6 1a6dbb3f4a5bef857cdeb13c031b9deca2cf30a2 pep440-dev
|
||||
improve/.* 1.3.6 1a6dbb3f4a5bef857cdeb13c031b9deca2cf30a2 pep440-dev
|
||||
|
||||
# staging/maintenance is currently the branch for preparation of 1.3.6rc2
|
||||
# staging/maintenance is currently the branch for preparation of 1.3.6rc3
|
||||
# so is regressionfix/...
|
||||
staging/maintenance 1.3.6rc2 99e1c3ac007a0eee9d6f908e598c6b029f3ae40c pep440-dev
|
||||
regressionfix/.* 1.3.6rc2 99e1c3ac007a0eee9d6f908e598c6b029f3ae40c pep440-dev
|
||||
staging/maintenance 1.3.6rc3 3f4a70cf92a7d9081932850be1ea9fb298f0e3f7 pep440-dev
|
||||
regressionfix/.* 1.3.6rc3 3f4a70cf92a7d9081932850be1ea9fb298f0e3f7 pep440-dev
|
||||
|
||||
# every other branch is a development branch and thus gets resolved to 1.4.0-dev for now
|
||||
.* 1.4.0 7f5d03d0549bcbd26f40e7e4a3297ea5204fb1cc pep440-dev
|
||||
+13
-16
@@ -1,15 +1,20 @@
|
||||
# OctoPrint Changelog
|
||||
|
||||
## 1.3.6rc3 (2017-12-08)
|
||||
|
||||
### Improvements
|
||||
|
||||
* Fetch plugin blacklist (and also announcements, plugin notices and plugin repository) via https instead of http.
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* Fixed an issue causing redundant software update configuration settings to be written to `config.yaml`, in turn causing issues when downgrading to <1.3.5
|
||||
* Fixed an issue detecting whether the installed version is a release version or a development version.
|
||||
|
||||
([Commits](https://github.com/foosel/OctoPrint/compare/1.3.6rc2...1.3.6rc3))
|
||||
|
||||
## 1.3.6rc2 (2017-12-05)
|
||||
|
||||
### Note for upgraders and plugin authors: Change in the bundling of JS assets can lead to issues in plugins
|
||||
|
||||
A change to solve issues with plugins bundling JS assets that cause interference with other plugins (e.g. through the declaration of `"use strict"`) and in general to add better isolation and error handling might cause errors for some plugins that go beyond your run-off-the-mill view model and also implicitly declare new globals.
|
||||
|
||||
If you happen to run into any such issues, you can switch back to the old way of bundling JS assets via the newly introduced "Settings > Feature > Enable legacy plugin asset bundling" toggle (check it, save the settings, restart the server). This is provided to allow for a minimally invasive adjustment period until affected plugins have been updated.
|
||||
|
||||
You can find out more about the change, how to know if a plugin is even affected and what do about it [on the OctoBlog](http://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/).
|
||||
|
||||
### Bug fixes
|
||||
|
||||
* [#2262](https://github.com/foosel/OctoPrint/issues/2262) - Fixed a bug causing `Error:checksum mismatch, Last Line: ...` errors from the firmware to be handled incorrectly.
|
||||
@@ -21,14 +26,6 @@ You can find out more about the change, how to know if a plugin is even affected
|
||||
|
||||
## 1.3.6rc1 (2017-12-01)
|
||||
|
||||
### Note for upgraders and plugin authors: Change in the bundling of JS assets can lead to issues in plugins
|
||||
|
||||
A change to solve issues with plugins bundling JS assets that cause interference with other plugins (e.g. through the declaration of `"use strict"`) and in general to add better isolation and error handling might cause errors for some plugins that go beyond your run-off-the-mill view model and also implicitly declare new globals.
|
||||
|
||||
If you happen to run into any such issues, you can switch back to the old way of bundling JS assets via the newly introduced "Settings > Feature > Enable legacy plugin asset bundling" toggle (check it, save the settings, restart the server). This is provided to allow for a minimally invasive adjustment period until affected plugins have been updated.
|
||||
|
||||
You can find out more about the change, how to know if a plugin is even affected and what do about it [on the OctoBlog](http://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/).
|
||||
|
||||
### Improvements
|
||||
|
||||
* [#203](https://github.com/foosel/OctoPrint/issues/203) - Allow selecting the current tab via URL hashs. Also update URL hash when switching tabs, thus adding this to the browser history and allowing quicker back and forth navigation through the browser's back and forward buttons.
|
||||
|
||||
+1
-1
@@ -59,4 +59,4 @@ thanks to everyone who contributed!
|
||||
* Timeshell.ca
|
||||
* Trent Shumay
|
||||
|
||||
and 1144 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
and 1143 more wonderful people pledging on the [Patreon campaign](https://patreon.com/foosel)!
|
||||
@@ -60,27 +60,27 @@ class AnnouncementPlugin(octoprint.plugin.AssetPlugin,
|
||||
description="Important announcements about OctoPrint.",
|
||||
priority=1,
|
||||
type="rss",
|
||||
url="http://octoprint.org/feeds/important.xml"),
|
||||
url="https://octoprint.org/feeds/important.xml"),
|
||||
_releases=dict(name="Release Announcements",
|
||||
description="Announcements of new releases and release candidates of OctoPrint.",
|
||||
priority=2,
|
||||
type="rss",
|
||||
url="http://octoprint.org/feeds/releases.xml"),
|
||||
url="https://octoprint.org/feeds/releases.xml"),
|
||||
_blog=dict(name="On the OctoBlog",
|
||||
description="Development news, community spotlights, OctoPrint On Air episodes and more from the official OctoBlog.",
|
||||
priority=2,
|
||||
type="rss",
|
||||
url="http://octoprint.org/feeds/octoblog.xml"),
|
||||
url="https://octoprint.org/feeds/octoblog.xml"),
|
||||
_plugins=dict(name="New Plugins in the Repository",
|
||||
description="Announcements of new plugins released on the official Plugin Repository.",
|
||||
priority=2,
|
||||
type="rss",
|
||||
url="http://plugins.octoprint.org/feed.xml"),
|
||||
url="https://plugins.octoprint.org/feed.xml"),
|
||||
_octopi=dict(name="OctoPi News",
|
||||
description="News around OctoPi, the Raspberry Pi image including OctoPrint.",
|
||||
priority=2,
|
||||
type="rss",
|
||||
url="http://octoprint.org/feeds/octopi.xml")),
|
||||
url="https://octoprint.org/feeds/octopi.xml")),
|
||||
enabled_channels=[],
|
||||
forced_channels=["_important"],
|
||||
channel_order=["_important", "_releases", "_blog", "_plugins", "_octopi"],
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
normal operation, allowing you to uninstall or update them to a newer version.
|
||||
{% endtrans %}</p>
|
||||
|
||||
<p>{% trans url="http://plugins.octoprint.org/blacklist/" %}
|
||||
<p>{% trans url="https://plugins.octoprint.org/blacklist/" %}
|
||||
By default, OctoPrint will use the blacklist hosted at <code>plugins.octoprint.org/blacklist.json</code> which you
|
||||
can also take a look at in a more human readable format <a href="{{ url }}" target="_blank">here</a>.
|
||||
{% endtrans %}</p>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<p>Version <span class="plugin_octopi_support_version">{{ plugin_octopi_support_version }}</span></p>
|
||||
|
||||
<ul>
|
||||
<li>Website: <a href="http://octoprint.org/download/" target="_blank" rel="noreferrer noopener">octoprint.org/download</a> & <a href="https://octopi.octoprint.org" target="_blank" rel="noreferrer noopener">octopi.octoprint.org</a></li>
|
||||
<li>Website: <a href="https://octoprint.org/download/" target="_blank" rel="noreferrer noopener">octoprint.org/download</a> & <a href="https://octopi.octoprint.org" target="_blank" rel="noreferrer noopener">octopi.octoprint.org</a></li>
|
||||
<li>Source Code: <a href="https://github.com/guysoft/OctoPi" target="_blank" rel="noreferrer noopener">github.com/guysoft/OctoPi</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -117,9 +117,9 @@ class PluginManagerPlugin(octoprint.plugin.SimpleApiPlugin,
|
||||
|
||||
def get_settings_defaults(self):
|
||||
return dict(
|
||||
repository="http://plugins.octoprint.org/plugins.json",
|
||||
repository="https://plugins.octoprint.org/plugins.json",
|
||||
repository_ttl=24*60,
|
||||
notices="http://plugins.octoprint.org/notices.json",
|
||||
notices="https://plugins.octoprint.org/notices.json",
|
||||
notices_ttl=6*60,
|
||||
pip_args=None,
|
||||
pip_force_user=False,
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
{{ pluginmanager_safemode() }}
|
||||
{{ pluginmanager_offline() }}
|
||||
<h4 style="position: relative">
|
||||
{{ _('... from the <a href="%(url)s" target="_blank">Plugin Repository</a>', url='http://plugins.octoprint.org') }}
|
||||
{{ _('... from the <a href="%(url)s" target="_blank">Plugin Repository</a>', url='https://plugins.octoprint.org') }}
|
||||
<div class="dropdown pull-right">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
<span class="fa fa-wrench"></span>
|
||||
|
||||
@@ -306,30 +306,10 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
if "notify_users" in data:
|
||||
self._settings.set_boolean(["notify_users"], data["notify_users"])
|
||||
|
||||
checks = self._get_configured_checks()
|
||||
if "octoprint" in checks:
|
||||
check = checks["octoprint"]
|
||||
update_type = check.get("type", None)
|
||||
update_method = self._get_update_method("octoprint", check)
|
||||
checkout_folder = check.get("checkout_folder", None)
|
||||
update_folder = check.get("update_folder", None)
|
||||
prerelease = check.get("prerelease", False)
|
||||
prerelease_channel = check.get("prerelease_channel", None)
|
||||
else:
|
||||
update_type = update_method = checkout_folder = update_folder = prerelease_channel = None
|
||||
prerelease = False
|
||||
|
||||
defaults = dict(
|
||||
plugins=dict(softwareupdate=dict(
|
||||
checks=dict(
|
||||
octoprint=dict(
|
||||
type=update_type,
|
||||
method=update_method,
|
||||
checkout_folder=checkout_folder,
|
||||
update_folder=update_folder,
|
||||
prerelease=prerelease,
|
||||
prerelease_channel=prerelease_channel
|
||||
)
|
||||
octoprint=self.get_settings_defaults()["checks"]["octoprint"]
|
||||
)
|
||||
))
|
||||
)
|
||||
@@ -338,7 +318,7 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
|
||||
if "octoprint_checkout_folder" in data:
|
||||
self._settings.set(["checks", "octoprint", "checkout_folder"], data["octoprint_checkout_folder"], defaults=defaults, force=True)
|
||||
if update_folder and data["octoprint_checkout_folder"]:
|
||||
if self._settings.get(["checks", "octoprint", "update_folder"]) and data["octoprint_checkout_folder"]:
|
||||
self._settings.set(["checks", "octoprint", "update_folder"], None, defaults=defaults, force=True)
|
||||
updated_octoprint_check_config = True
|
||||
|
||||
@@ -346,13 +326,13 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
octoprint_type = data["octoprint_type"]
|
||||
|
||||
if octoprint_type == "github_release":
|
||||
self._settings.set(["checks", "octoprint", "type"], octoprint_type, defaults=defaults, force=True)
|
||||
self._settings.set(["checks", "octoprint", "method"], "pip", defaults=defaults, force=True)
|
||||
self._settings.set(["checks", "octoprint", "type"], octoprint_type, defaults=defaults)
|
||||
self._settings.set(["checks", "octoprint", "method"], "pip", defaults=defaults)
|
||||
updated_octoprint_check_config = True
|
||||
|
||||
elif octoprint_type == "git_commit":
|
||||
self._settings.set(["checks", "octoprint", "type"], octoprint_type, defaults=defaults, force=True)
|
||||
self._settings.set(["checks", "octoprint", "method"], "update_script", defaults=defaults, force=True)
|
||||
self._settings.set(["checks", "octoprint", "type"], octoprint_type, defaults=defaults)
|
||||
self._settings.set(["checks", "octoprint", "method"], "update_script", defaults=defaults)
|
||||
updated_octoprint_check_config = True
|
||||
|
||||
if "octoprint_release_channel" in data:
|
||||
@@ -993,6 +973,8 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
if target == "octoprint":
|
||||
from flask.ext.babel import gettext
|
||||
|
||||
from octoprint.util.version import is_released_octoprint_version, is_stable_octoprint_version
|
||||
|
||||
result["displayName"] = to_unicode(check.get("displayName"), errors="replace")
|
||||
if result["displayName"] is None:
|
||||
# displayName missing or set to None
|
||||
@@ -1010,16 +992,16 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
stable_branch = check["stable_branch"]["branch"]
|
||||
if "prerelease_branches" in check:
|
||||
release_branches += [x["branch"] for x in check["prerelease_branches"]]
|
||||
result["released_version"] = not release_branches or BRANCH in release_branches
|
||||
result["released_version"] = is_released_octoprint_version()
|
||||
|
||||
if check["type"] in self.COMMIT_TRACKING_TYPES:
|
||||
result["current"] = REVISION if REVISION else "unknown"
|
||||
else:
|
||||
result["current"] = VERSION
|
||||
|
||||
if check["type"] == "github_release" and (check.get("prerelease", None) or BRANCH != stable_branch):
|
||||
# we are tracking github releases and are either also tracking prerelease OR are currently installed
|
||||
# from something that is not the stable (master) branch => we need to change some parameters
|
||||
if check["type"] == "github_release" and (check.get("prerelease", None) or not is_stable_octoprint_version()):
|
||||
# we are tracking github releases and are either also tracking prerelease OR are currently running
|
||||
# a non stable version => we need to change some parameters
|
||||
|
||||
# we compare versions fully, not just the base so that we see a difference
|
||||
# between RCs + stable for the same version release
|
||||
@@ -1039,17 +1021,9 @@ class SoftwareUpdatePlugin(octoprint.plugin.BlueprintPlugin,
|
||||
result["update_branch"] = check.get("update_branch", stable_branch)
|
||||
|
||||
if check.get("update_script", None):
|
||||
# we force an exact version
|
||||
# we force an exact version & python unequality check, to be able to downgrade
|
||||
result["force_exact_version"] = True
|
||||
|
||||
if BRANCH != result.get("prerelease_channel"):
|
||||
# we force python unequality check here because that will also allow us to
|
||||
# downgrade on a prerelease channel change (rc/devel => rc/maintenance)
|
||||
#
|
||||
# we detect channel changes by comparing the current branch with the target
|
||||
# branch of the release channel - unequality means we might have to handle
|
||||
# a downgrade
|
||||
result["release_compare"] = "python_unequal"
|
||||
result["release_compare"] = "python_unequal"
|
||||
|
||||
elif check.get("pip", None):
|
||||
# we force python unequality check for pip installs, to be able to downgrade
|
||||
|
||||
@@ -159,7 +159,7 @@ default_settings = {
|
||||
},
|
||||
"pluginBlacklist": {
|
||||
"enabled": None,
|
||||
"url": "http://plugins.octoprint.org/blacklist.json",
|
||||
"url": "https://plugins.octoprint.org/blacklist.json",
|
||||
"ttl": 15 * 60 # 15 min
|
||||
},
|
||||
"diskspace": {
|
||||
|
||||
@@ -5,14 +5,14 @@
|
||||
<p>Version <span class="version">{{ display_version }}</span></p>
|
||||
|
||||
<ul>
|
||||
<li>Website: <a href="http://octoprint.org" target="_blank" rel="noreferrer noopener">octoprint.org</a></li>
|
||||
<li>Website: <a href="https://octoprint.org" target="_blank" rel="noreferrer noopener">octoprint.org</a></li>
|
||||
<li>Source Code: <a href="https://github.com/foosel/OctoPrint" target="_blank" rel="noreferrer noopener">github.com/foosel/OctoPrint</a></li>
|
||||
<li>Documentation: <a href="http://docs.octoprint.org" target="_blank" rel="noreferrer noopener">docs.octoprint.org</a></li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
<strong>Development of OctoPrint wouldn't be possible without <a href="javascript:void(0)" data-bind="click: function() { showTab('{{ templates.about.entries.supporters[1]._div }}'); }">its supporters</a>.</strong><br>
|
||||
If you enjoy OctoPrint, please consider <a href="http://octoprint.org/support-octoprint/" target="_blank" rel="noreferrer noopener">supporting its ongoing development</a>.
|
||||
If you enjoy OctoPrint, please consider <a href="https://octoprint.org/support-octoprint/?utm_source=octoprint&utm_medium=about_dialog" target="_blank" rel="noreferrer noopener">supporting its ongoing development</a>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<div class="controls">
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" data-bind="checked: feature_legacyPluginAssets" id="settings-legacyPluginAssets"> {{ _('Enable legacy plugin asset bundling') }} <span class="label label-info">Compatibility</span>
|
||||
<span class="help-block">{% trans url="http://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/" %}
|
||||
<span class="help-block">{% trans url="https://octoprint.org/blog/2017/12/01/heads-up-plugin-authors/" %}
|
||||
Enable this, save and restart your server if you are running into issues with plugins with OctoPrint
|
||||
1.3.6 or later that used to work with OctoPrint up to version 1.3.5. See <a href="{{ url }}">here</a>
|
||||
for details on why this is happening. Note that this legacy flag will be removed in a future
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
<h4>{{ _('If you enjoy OctoPrint...') }}</h4>
|
||||
|
||||
<span style="display: inline-block; float: left; font-size: 4em; margin-right: .3em"><img src="{{ url_for('static', filename='img/tentacle-56x56.png') }}"></span>
|
||||
<p>{% trans url='http://octoprint.org/support-octoprint/' %}
|
||||
<p>{% trans url='https://octoprint.org/support-octoprint/?utm_source=octoprint&utm_medium=first_run_wizard' %}
|
||||
Please consider to <strong><a href="{{ url }}" target="_blank">support OctoPrint's ongoing development</a></strong>,
|
||||
which can only continue with funding by users like you! You can also find this link in the "About" dialog.<br>
|
||||
<strong>Thank you!</strong>
|
||||
|
||||
@@ -114,7 +114,7 @@
|
||||
<li><small>{{ _('OctoPrint') }} <span class="version">{{ display_version|e }}</span></small></li>
|
||||
</ul>
|
||||
<ul id="footer_links" class="pull-right">
|
||||
<li><a href="http://octoprint.org" target="_blank" rel="noreferrer noopener"><i class="fa fa-home"></i> {{ _('Homepage') }}</a></li>
|
||||
<li><a href="https://octoprint.org" target="_blank" rel="noreferrer noopener"><i class="fa fa-home"></i> {{ _('Homepage') }}</a></li>
|
||||
<li><a href="https://github.com/foosel/OctoPrint/" target="_blank" rel="noreferrer noopener"><i class="fa fa-github"></i> {{ _('Source') }}</a></li>
|
||||
<li><a href="http://docs.octoprint.org" target="_blank" rel="noreferrer noopener"><i class="fa fa-book"></i> {{ _('Docs') }}</a></li>
|
||||
<li><a href="https://github.com/foosel/OctoPrint/issues" target="_blank" rel="noreferrer noopener"><i class="fa fa-flag"></i> {{ _('Issues') }}</a></li>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
with normal operation.
|
||||
{% endtrans %}</p>
|
||||
|
||||
<p>{% trans url="http://plugins.octoprint.org/blacklist/" %}
|
||||
<p>{% trans url="https://plugins.octoprint.org/blacklist/" %}
|
||||
By default, OctoPrint will use the blacklist hosted at <code>plugins.octoprint.org/blacklist.json</code> which you
|
||||
can also take a look at in a more human readable format <a href="{{ url }}" target="_blank">here</a>.
|
||||
{% endtrans %}</p>
|
||||
@@ -46,6 +46,63 @@ def get_octoprint_version(base=False):
|
||||
return octoprint_version
|
||||
|
||||
|
||||
def is_released_octoprint_version(version=None):
|
||||
"""
|
||||
>>> import pkg_resources
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.6rc3"))
|
||||
True
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.6rc3.dev2+g1234"))
|
||||
False
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.6"))
|
||||
True
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.6.post1+g1234"))
|
||||
True
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.6.post1.dev0+g1234"))
|
||||
False
|
||||
>>> is_released_octoprint_version(version=pkg_resources.parse_version("1.3.7.dev123+g23545"))
|
||||
False
|
||||
"""
|
||||
|
||||
if version is None:
|
||||
version = get_octoprint_version()
|
||||
|
||||
if isinstance(version, tuple):
|
||||
# old setuptools
|
||||
return "*@" not in version
|
||||
else:
|
||||
# new setuptools
|
||||
return "dev" not in version.public
|
||||
|
||||
|
||||
def is_stable_octoprint_version(version=None):
|
||||
"""
|
||||
>>> import pkg_resources
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.6rc3"))
|
||||
False
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.6rc3.dev2+g1234"))
|
||||
False
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.6"))
|
||||
True
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.6.post1+g1234"))
|
||||
True
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.6.post1.dev0+g1234"))
|
||||
False
|
||||
>>> is_stable_octoprint_version(version=pkg_resources.parse_version("1.3.7.dev123+g23545"))
|
||||
False
|
||||
"""
|
||||
|
||||
if version is None:
|
||||
version = get_octoprint_version()
|
||||
|
||||
if not is_released_octoprint_version(version=version):
|
||||
return False
|
||||
|
||||
if isinstance(version, tuple):
|
||||
return "*a" not in version and "*b" not in version and "*c" not in version
|
||||
else:
|
||||
return not version.is_prerelease
|
||||
|
||||
|
||||
def is_octoprint_compatible(*compatibility_entries, **kwargs):
|
||||
"""
|
||||
Tests if the current ``octoprint_version`` is compatible to any of the provided ``compatibility_entries``.
|
||||
|
||||
Reference in new issue
Block a user