Skip to content

Commit 8814f4e

Browse files
committed
Merge branch 'release/v6.1.4'
2 parents 8dc20f9 + 43dd429 commit 8814f4e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+383
-374
lines changed

HISTORY.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,19 @@ PlatformIO Core 6
1313

1414
**A professional collaborative platform for declarative, safety-critical, and test-driven embedded development.**
1515

16+
6.1.4 (2022-08-12)
17+
~~~~~~~~~~~~~~~~~~
18+
19+
* Added support for accepting the original FileNode environment in a "callback" function when using `Build Middlewares <https://docs.platformio.org/en/latest/scripting/middlewares.html>`__ (`pull #4380 <https://github.com/platformio/platformio-core/pull/4380>`_)
20+
* Improved device port finder when using dual channel UART converter (`issue #4367 <https://github.com/platformio/platformio-core/issues/4367>`_)
21+
* Improved project dependency resolving when using the `pio project init --ide <https://docs.platformio.org/en/latest/core/userguide/project/cmd_init.html>`__ command
22+
* Upgraded build engine to the SCons 4.4.0 (`release notes <https://github.com/SCons/scons/releases/tag/4.4.0>`__)
23+
* Keep custom "unwantedRecommendations" when generating projects for VSCode (`issue #4383 <https://github.com/platformio/platformio-core/issues/4383>`_)
24+
* Do not resolve project dependencies for the ``cleanall`` target (`issue #4344 <https://github.com/platformio/platformio-core/issues/4344>`_)
25+
* Warn about calling "env.BuildSources" in a POST-type script (`issue #4385 <https://github.com/platformio/platformio-core/issues/4385>`_)
26+
* Fixed an issue when escaping macros/defines for IDE integration (`issue #4360 <https://github.com/platformio/platformio-core/issues/4360>`_)
27+
* Fixed an issue when the "cleanall" target removes dependencies from all working environments (`issue #4386 <https://github.com/platformio/platformio-core/issues/4386>`_)
28+
1629
6.1.3 (2022-07-18)
1730
~~~~~~~~~~~~~~~~~~
1831

README.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg
2-
:target: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
3-
:alt: SWUbanner
4-
51
PlatformIO Core
62
===============
73

@@ -99,3 +95,7 @@ Copyright (c) 2014-present PlatformIO <[email protected]>
9995

10096
The PlatformIO is licensed under the permissive Apache 2.0 license,
10197
so you can use it in both commercial and personal projects with confidence.
98+
99+
.. image:: https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/banner-direct.svg
100+
:target: https://github.com/vshymanskyy/StandWithUkraine/blob/main/docs/README.md
101+
:alt: SWUbanner

docs

Submodule docs updated 151 files

examples

platformio/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import sys
1616

17-
VERSION = (6, 1, 3)
17+
VERSION = (6, 1, 4)
1818
__version__ = ".".join([str(s) for s in VERSION])
1919

2020
__title__ = "platformio"
@@ -49,7 +49,7 @@
4949
__core_packages__ = {
5050
"contrib-piohome": "~3.4.2",
5151
"contrib-pysite": "~2.%d%d.0" % (sys.version_info.major, sys.version_info.minor),
52-
"tool-scons": "~4.40300.0",
52+
"tool-scons": "~4.40400.0",
5353
"tool-cppcheck": "~1.270.0",
5454
"tool-clangtidy": "~1.120001.0",
5555
"tool-pvs-studio": "~7.18.0",

platformio/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
@click.option("--caller", "-c", help="Caller ID (service)")
3232
@click.option("--no-ansi", is_flag=True, help="Do not print ANSI control characters")
3333
@click.pass_context
34-
def cli(ctx, force, caller, no_ansi):
34+
def cli(ctx, force, caller, no_ansi): # pylint: disable=unused-argument
3535
try:
3636
if (
3737
no_ansi
@@ -53,7 +53,7 @@ def cli(ctx, force, caller, no_ansi):
5353
except: # pylint: disable=bare-except
5454
pass
5555

56-
maintenance.on_platformio_start(ctx, force, caller)
56+
maintenance.on_platformio_start(ctx, caller)
5757

5858

5959
@cli.result_callback()

platformio/app.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from __future__ import absolute_import
16-
1715
import getpass
1816
import hashlib
1917
import json
@@ -64,7 +62,6 @@ def projects_dir_validate(projects_dir):
6462

6563
SESSION_VARS = {
6664
"command_ctx": None,
67-
"force_option": False,
6865
"caller_id": None,
6966
"custom_project_conf": None,
7067
}
@@ -229,13 +226,7 @@ def set_session_var(name, value):
229226

230227

231228
def is_disabled_progressbar():
232-
return any(
233-
[
234-
get_session_var("force_option"),
235-
proc.is_ci(),
236-
os.getenv("PLATFORMIO_DISABLE_PROGRESSBAR") == "true",
237-
]
238-
)
229+
return os.getenv("PLATFORMIO_DISABLE_PROGRESSBAR") == "true"
239230

240231

241232
def get_cid():

platformio/builder/main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"link",
5656
"piohooks",
5757
"pioasm",
58-
"platformio",
58+
"piobuild",
5959
"pioproject",
6060
"pioplatform",
6161
"piotest",
@@ -82,7 +82,6 @@
8282
PROGPATH=os.path.join("$BUILD_DIR", "$PROGNAME$PROGSUFFIX"),
8383
PROG_PATH="$PROGPATH", # deprecated
8484
PYTHONEXE=get_pythonexe_path(),
85-
IDE_EXTRA_DATA={},
8685
)
8786

8887
# Declare command verbose messages
@@ -127,6 +126,7 @@
127126
PROJECT_DATA_DIR=config.get("platformio", "data_dir"),
128127
PROJECTDATA_DIR="$PROJECT_DATA_DIR", # legacy for dev/platform
129128
PROJECT_BUILD_DIR=config.get("platformio", "build_dir"),
129+
BUILD_TYPE=env.GetBuildType(),
130130
BUILD_CACHE_DIR=config.get("platformio", "build_cache_dir"),
131131
LIBSOURCE_DIRS=[
132132
config.get("platformio", "lib_dir"),

platformio/builder/tools/compilation_db.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@
2323
# pylint: disable=unused-argument, protected-access, unused-variable, import-error
2424
# Original: https://github.com/mongodb/mongo/blob/master/site_scons/site_tools/compilation_db.py
2525

26-
from __future__ import absolute_import
27-
2826
import itertools
2927
import json
3028
import os
3129

3230
import SCons
3331

34-
from platformio.builder.tools.platformio import SRC_ASM_EXT, SRC_C_EXT, SRC_CXX_EXT
32+
from platformio.builder.tools.piobuild import SRC_ASM_EXT, SRC_C_EXT, SRC_CXX_EXT
3533
from platformio.proc import where_is_program
3634

3735
# Implements the ability for SCons to emit a compilation database for the MongoDB project. See

platformio/builder/tools/pioasm.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
from __future__ import absolute_import
16-
1715
import SCons.Tool.asm # pylint: disable=import-error
1816

1917
#

0 commit comments

Comments
 (0)