forked from platformio/platformio-core
Merge branch 'release/v0.9.2'
This commit is contained in:
10
HISTORY.rst
10
HISTORY.rst
@ -1,6 +1,16 @@
|
|||||||
Release History
|
Release History
|
||||||
===============
|
===============
|
||||||
|
|
||||||
|
0.9.2 (2014-12-10)
|
||||||
|
------------------
|
||||||
|
|
||||||
|
* Replaced "dark blue" by "cyan" colour for the texts (`issue #33 <https://github.com/ivankravets/platformio/issues/33>`_)
|
||||||
|
* Added new setting `enable_prompts <http://docs.platformio.ikravets.com/en/latest/userguide/cmd_settings.html>`_
|
||||||
|
and allowed to disable all *PlatformIO* prompts (useful for cloud compilers)
|
||||||
|
(`issue #34 <https://github.com/ivankravets/platformio/issues/34>`_)
|
||||||
|
* Fixed compilation bug on *Windows* with installed *MSVC* (`issue #18 <https://github.com/ivankravets/platformio/issues/18>`_)
|
||||||
|
|
||||||
|
|
||||||
0.9.1 (2014-12-05)
|
0.9.1 (2014-12-05)
|
||||||
------------------
|
------------------
|
||||||
|
|
||||||
|
@ -25,6 +25,11 @@ application:
|
|||||||
`Command Prompt <http://en.wikipedia.org/wiki/Command_Prompt>`_ (``cmd.exe``)
|
`Command Prompt <http://en.wikipedia.org/wiki/Command_Prompt>`_ (``cmd.exe``)
|
||||||
application.
|
application.
|
||||||
|
|
||||||
|
.. warning::
|
||||||
|
If you are going to use *PlatformIO* for "*Cloud Compiling*", please
|
||||||
|
don't forget to turn off :ref:`enable_prompts <cmd_settings>` setting. It
|
||||||
|
will allow you to avoid blocking when call ``platformio`` like subprocess.
|
||||||
|
|
||||||
Please *choose one of* the following:
|
Please *choose one of* the following:
|
||||||
|
|
||||||
Super-Quick (Mac / Linux)
|
Super-Quick (Mac / Linux)
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
# Copyright (C) Ivan Kravets <me@ikravets.com>
|
||||||
# See LICENSE for details.
|
# See LICENSE for details.
|
||||||
|
|
||||||
VERSION = (0, 9, 1)
|
VERSION = (0, 9, 2)
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@ -33,6 +33,15 @@ DEFAULT_SETTINGS = {
|
|||||||
"description": ("Shares commands, platforms and libraries usage"
|
"description": ("Shares commands, platforms and libraries usage"
|
||||||
" to help us make PlatformIO better (Yes/No)"),
|
" to help us make PlatformIO better (Yes/No)"),
|
||||||
"value": True
|
"value": True
|
||||||
|
},
|
||||||
|
"enable_prompts": {
|
||||||
|
"description": (
|
||||||
|
"Can PlatformIO communicate with you via prompts: "
|
||||||
|
"propose to install platforms which aren't installed yet, "
|
||||||
|
"paginate over library search results and etc.)? ATTENTION!!! "
|
||||||
|
"If you call PlatformIO like subprocess, "
|
||||||
|
"please disable prompts to avoid blocking (Yes/No)"),
|
||||||
|
"value": True
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -50,7 +50,8 @@ commonvars.AddVariables(
|
|||||||
)
|
)
|
||||||
|
|
||||||
DefaultEnvironment(
|
DefaultEnvironment(
|
||||||
tools=["default", "platformio"],
|
# Temporary fix for the issue #18
|
||||||
|
tools=["default", "gcc", "g++", "ar", "gnulink", "platformio"],
|
||||||
toolpath=[join("$PIOBUILDER_DIR", "tools")],
|
toolpath=[join("$PIOBUILDER_DIR", "tools")],
|
||||||
variables=commonvars,
|
variables=commonvars,
|
||||||
|
|
||||||
|
@ -7,6 +7,7 @@ from shutil import copyfile
|
|||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
|
from platformio import app
|
||||||
from platformio.exception import ProjectInitialized
|
from platformio.exception import ProjectInitialized
|
||||||
from platformio.util import get_source_dir
|
from platformio.util import get_source_dir
|
||||||
|
|
||||||
@ -25,7 +26,7 @@ def cli(project_dir):
|
|||||||
|
|
||||||
if project_dir == getcwd():
|
if project_dir == getcwd():
|
||||||
click.secho("The current working directory", fg="yellow", nl=False)
|
click.secho("The current working directory", fg="yellow", nl=False)
|
||||||
click.secho(" %s " % project_dir, fg="blue", nl=False)
|
click.secho(" %s " % project_dir, fg="cyan", nl=False)
|
||||||
click.secho(
|
click.secho(
|
||||||
"will be used for the new project.\n"
|
"will be used for the new project.\n"
|
||||||
"You can specify another project directory via\n"
|
"You can specify another project directory via\n"
|
||||||
@ -34,7 +35,7 @@ def cli(project_dir):
|
|||||||
)
|
)
|
||||||
|
|
||||||
click.echo("The next files/directories will be created in %s" %
|
click.echo("The next files/directories will be created in %s" %
|
||||||
click.style(project_dir, fg="blue"))
|
click.style(project_dir, fg="cyan"))
|
||||||
click.echo("%s - Project Configuration File" %
|
click.echo("%s - Project Configuration File" %
|
||||||
click.style("platformio.ini", fg="cyan"))
|
click.style("platformio.ini", fg="cyan"))
|
||||||
click.echo("%s - a source directory. Put your source code here" %
|
click.echo("%s - a source directory. Put your source code here" %
|
||||||
@ -42,7 +43,8 @@ def cli(project_dir):
|
|||||||
click.echo("%s - a directory for the project specific libraries" %
|
click.echo("%s - a directory for the project specific libraries" %
|
||||||
click.style("lib", fg="cyan"))
|
click.style("lib", fg="cyan"))
|
||||||
|
|
||||||
if click.confirm("Do you want to continue?"):
|
if (not app.get_setting("enable_prompts") or
|
||||||
|
click.confirm("Do you want to continue?")):
|
||||||
for d in (src_dir, lib_dir):
|
for d in (src_dir, lib_dir):
|
||||||
if not isdir(d):
|
if not isdir(d):
|
||||||
makedirs(d)
|
makedirs(d)
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
|
from platformio import app
|
||||||
from platformio.exception import (LibAlreadyInstalledError,
|
from platformio.exception import (LibAlreadyInstalledError,
|
||||||
LibInstallDependencyError)
|
LibInstallDependencyError)
|
||||||
from platformio.libmanager import LibraryManager
|
from platformio.libmanager import LibraryManager
|
||||||
@ -69,7 +70,8 @@ def lib_search(query, **filters):
|
|||||||
if int(result['page'])*int(result['perpage']) >= int(result['total']):
|
if int(result['page'])*int(result['perpage']) >= int(result['total']):
|
||||||
break
|
break
|
||||||
|
|
||||||
if click.confirm("Show next libraries?"):
|
if (app.get_setting("enable_prompts") and
|
||||||
|
click.confirm("Show next libraries?")):
|
||||||
result = get_api_result(
|
result = get_api_result(
|
||||||
"/lib/search",
|
"/lib/search",
|
||||||
dict(query=query, page=str(int(result['page']) + 1))
|
dict(query=query, page=str(int(result['page']) + 1))
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
from platformio import exception, telemetry
|
from platformio import app, exception, telemetry
|
||||||
from platformio.commands.install import cli as cmd_install
|
from platformio.commands.install import cli as cmd_install
|
||||||
from platformio.platforms.base import PlatformFactory
|
from platformio.platforms.base import PlatformFactory
|
||||||
from platformio.util import get_project_config
|
from platformio.util import get_project_config
|
||||||
@ -68,7 +68,8 @@ def process_environment(ctx, name, options, targets, upload_port):
|
|||||||
|
|
||||||
telemetry.on_run_environment(options, envtargets)
|
telemetry.on_run_environment(options, envtargets)
|
||||||
|
|
||||||
if (platform not in PlatformFactory.get_platforms(installed=True) and
|
if (app.get_setting("enable_prompts") and
|
||||||
|
platform not in PlatformFactory.get_platforms(installed=True) and
|
||||||
click.confirm("The platform '%s' has not been installed yet. "
|
click.confirm("The platform '%s' has not been installed yet. "
|
||||||
"Would you like to install it now?" % platform)):
|
"Would you like to install it now?" % platform)):
|
||||||
ctx.invoke(cmd_install, platforms=[platform])
|
ctx.invoke(cmd_install, platforms=[platform])
|
||||||
|
@ -5,6 +5,7 @@ from datetime import datetime
|
|||||||
|
|
||||||
import click
|
import click
|
||||||
|
|
||||||
|
from platformio import app
|
||||||
from platformio.commands.install import cli as cmd_install
|
from platformio.commands.install import cli as cmd_install
|
||||||
from platformio.exception import PlatformNotInstalledYet
|
from platformio.exception import PlatformNotInstalledYet
|
||||||
from platformio.pkgmanager import PackageManager
|
from platformio.pkgmanager import PackageManager
|
||||||
@ -20,8 +21,9 @@ def cli(ctx, platform):
|
|||||||
installed=True).keys()
|
installed=True).keys()
|
||||||
|
|
||||||
if platform not in installed_platforms:
|
if platform not in installed_platforms:
|
||||||
if click.confirm("The platform '%s' has not been installed yet. "
|
if (app.get_setting("enable_prompts") and
|
||||||
"Would you like to install it now?" % platform):
|
click.confirm("The platform '%s' has not been installed yet. "
|
||||||
|
"Would you like to install it now?" % platform)):
|
||||||
ctx.invoke(cmd_install, platforms=[platform])
|
ctx.invoke(cmd_install, platforms=[platform])
|
||||||
else:
|
else:
|
||||||
raise PlatformNotInstalledYet(platform)
|
raise PlatformNotInstalledYet(platform)
|
||||||
|
@ -92,11 +92,11 @@ def after_upgrade(ctx):
|
|||||||
"- %s us on Twitter to stay up-to-date "
|
"- %s us on Twitter to stay up-to-date "
|
||||||
"on the latest project news > %s" %
|
"on the latest project news > %s" %
|
||||||
(click.style("follow", fg="cyan"),
|
(click.style("follow", fg="cyan"),
|
||||||
click.style("https://twitter.com/platformiotool", fg="blue"))
|
click.style("https://twitter.com/platformiotool", fg="cyan"))
|
||||||
)
|
)
|
||||||
click.echo("- %s us a star on GitHub > %s" % (
|
click.echo("- %s us a star on GitHub > %s" % (
|
||||||
click.style("give", fg="cyan"),
|
click.style("give", fg="cyan"),
|
||||||
click.style("https://github.com/ivankravets/platformio", fg="blue")
|
click.style("https://github.com/ivankravets/platformio", fg="cyan")
|
||||||
))
|
))
|
||||||
click.secho("Thanks a lot!\n", fg="green", blink=True)
|
click.secho("Thanks a lot!\n", fg="green", blink=True)
|
||||||
|
|
||||||
@ -138,10 +138,10 @@ def check_platformio_upgrade():
|
|||||||
click.secho("There is a new version %s of PlatformIO available.\n"
|
click.secho("There is a new version %s of PlatformIO available.\n"
|
||||||
"Please upgrade it via " % latest_version,
|
"Please upgrade it via " % latest_version,
|
||||||
fg="yellow", nl=False)
|
fg="yellow", nl=False)
|
||||||
click.secho("`platformio upgrade`", fg="cyan", nl=False)
|
click.secho("platformio upgrade", fg="cyan", nl=False)
|
||||||
click.secho(" command.\nChanges: ", fg="yellow", nl=False)
|
click.secho(" command.\nChanges: ", fg="yellow", nl=False)
|
||||||
click.secho("http://docs.platformio.ikravets.com/en/latest/history.html\n",
|
click.secho("http://docs.platformio.ikravets.com/en/latest/history.html\n",
|
||||||
fg="blue")
|
fg="cyan")
|
||||||
|
|
||||||
|
|
||||||
def check_internal_updates(ctx, what):
|
def check_internal_updates(ctx, what):
|
||||||
|
@ -110,6 +110,9 @@ class MeasurementProtocol(TelemetryBase):
|
|||||||
self['cd3'] = " ".join(args)
|
self['cd3'] = " ".join(args)
|
||||||
|
|
||||||
def send(self, hittype):
|
def send(self, hittype):
|
||||||
|
if not app.get_setting("enable_telemetry"):
|
||||||
|
return
|
||||||
|
|
||||||
self['t'] = hittype
|
self['t'] = hittype
|
||||||
|
|
||||||
# correct queue time
|
# correct queue time
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
click==3.3
|
click==3.3
|
||||||
colorama==0.3.2
|
colorama==0.3.2
|
||||||
pyserial==2.7
|
pyserial==2.7
|
||||||
requests==2.4.3
|
requests==2.5.0
|
||||||
scons==2.3.0
|
scons==2.3.0
|
||||||
|
Reference in New Issue
Block a user