A few updates for PIO Unified Debugger and PIO Account

This commit is contained in:
Ivan Kravets committed 2017-05-04 19:06:38 +03:00
1 parent a5973043b1
commit f3f8374253
6 files changed
+34 -8

No files matched your search

+1 -1
View File
@@ -14,7 +14,7 @@
import sys
VERSION = (3, 4, "0a8")
VERSION = (3, 4, "0a9")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"
+2
View File
@@ -52,7 +52,9 @@ def account_password(**kwargs):
@cli.command("token", short_help="Get or regenerate Authentication Token")
@click.option("-p", "--password")
@click.option("--regenerate", is_flag=True)
@click.option("--json-output", is_flag=True)
def account_token(**kwargs):
pioplus_call(sys.argv[1:])
+11 -4
View File
@@ -95,7 +95,9 @@ class Upgrader(object):
self._upgraders = [
(semantic_version.Version("3.0.0-a.1"), self._upgrade_to_3_0_0),
(semantic_version.Version("3.0.0-b.11"), self._upgrade_to_3_0_0b11)
(semantic_version.Version("3.0.0-b.11"),
self._upgrade_to_3_0_0b11),
(semantic_version.Version("3.4.0-a.9"), self._update_dev_platforms)
]
def run(self, ctx):
@@ -103,10 +105,10 @@ class Upgrader(object):
return True
result = [True]
for item in self._upgraders:
if self.from_version >= item[0] or self.to_version < item[0]:
for version, callback in self._upgraders:
if self.from_version >= version or self.to_version < version:
continue
result.append(item[1](ctx))
result.append(callback(ctx))
return all(result)
@@ -147,6 +149,11 @@ class Upgrader(object):
ctx.invoke(cmd_platform_uninstall, platforms=["espressif"])
return True
@staticmethod
def _update_dev_platforms(ctx):
ctx.invoke(cmd_platform_update)
return True
def after_upgrade(ctx):
last_version = app.get_state_item("last_version", "0.0.0")
+1 -1
View File
@@ -22,7 +22,7 @@ from platformio.managers.package import PackageManager
CORE_PACKAGES = {
"pysite-pioplus": ">=0.3.0,<2",
"tool-pioplus": ">=0.8.3,<2",
"tool-pioplus": ">=0.8.5,<2",
"tool-unity": "~1.20302.1",
"tool-scons": "~3.20501.2"
}