From 3d300414acd1e5efdec3216e23a4b5b1d61fd9e7 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 5 Mar 2018 15:50:49 +0200 Subject: [PATCH] Multiple themes (Dark & Light) for PlatformIO Home --- HISTORY.rst | 1 + platformio/commands/upgrade.py | 11 ++++------- platformio/managers/core.py | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/HISTORY.rst b/HISTORY.rst index 83d20732..7be5e06f 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -7,6 +7,7 @@ PlatformIO 3.0 3.5.2 (2018-??-??) ~~~~~~~~~~~~~~~~~~ +* Multiple themes (Dark & Light) for `PlatformIO Home `__ * Control `PIO Unified Debugger `__ and its firmware loading mode using `debug_load_mode `__ option diff --git a/platformio/commands/upgrade.py b/platformio/commands/upgrade.py index a1068eea..3c54764b 100644 --- a/platformio/commands/upgrade.py +++ b/platformio/commands/upgrade.py @@ -94,6 +94,8 @@ WARNING! Don't use `sudo` for the rest PlatformIO commands. def get_pip_package(to_develop): if not to_develop: return "platformio" + dl_url = ("https://github.com/platformio/" + "platformio-core/archive/develop.zip") cache_dir = util.get_cache_dir() if not os.path.isdir(cache_dir): os.makedirs(cache_dir) @@ -101,12 +103,7 @@ def get_pip_package(to_develop): try: with open(pkg_name, "w") as fp: r = util.exec_command( - [ - "curl", "-fsSL", "https://github.com/platformio/" - "platformio-core/archive/develop.zip" - ], - stdout=fp, - universal_newlines=True) + ["curl", "-fsSL", dl_url], stdout=fp, universal_newlines=True) assert r['returncode'] == 0 # check ZIP structure with ZipFile(pkg_name) as zp: @@ -114,7 +111,7 @@ def get_pip_package(to_develop): return pkg_name except: # pylint: disable=bare-except pass - return "https://github.com/platformio/platformio-core/archive/develop.zip" + return dl_url def get_latest_version(): diff --git a/platformio/managers/core.py b/platformio/managers/core.py index 82590704..38d01268 100644 --- a/platformio/managers/core.py +++ b/platformio/managers/core.py @@ -21,7 +21,7 @@ from platformio import __version__, exception, util from platformio.managers.package import PackageManager CORE_PACKAGES = { - "contrib-piohome": ">=0.6.1,<2", + "contrib-piohome": ">=0.7.0,<2", "contrib-pysite": ">=0.1.5,<2", "tool-pioplus": ">=0.14.1,<2", "tool-unity": "~1.20302.1",