forked from platformio/platformio-core
Multiple themes (Dark & Light) for PlatformIO Home
This commit is contained in:
@ -7,6 +7,7 @@ PlatformIO 3.0
|
||||
3.5.2 (2018-??-??)
|
||||
~~~~~~~~~~~~~~~~~~
|
||||
|
||||
* Multiple themes (Dark & Light) for `PlatformIO Home <http://docs.platformio.org/page/home/index.html>`__
|
||||
* Control `PIO Unified Debugger <http://docs.platformio.org/en/latest/plus/debugging.html>`__
|
||||
and its firmware loading mode using
|
||||
`debug_load_mode <http://docs.platformio.org/en/latest/projectconf/section_env_debug.html#debug-load-mode>`__ option
|
||||
|
@ -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():
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user