idf-build-apps 2.7.0__py3-none-any.whl → 2.8.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- idf_build_apps/__init__.py +1 -1
- idf_build_apps/args.py +17 -1
- {idf_build_apps-2.7.0.dist-info → idf_build_apps-2.8.0.dist-info}/METADATA +3 -2
- {idf_build_apps-2.7.0.dist-info → idf_build_apps-2.8.0.dist-info}/RECORD +7 -7
- {idf_build_apps-2.7.0.dist-info → idf_build_apps-2.8.0.dist-info}/WHEEL +1 -1
- {idf_build_apps-2.7.0.dist-info → idf_build_apps-2.8.0.dist-info}/entry_points.txt +0 -0
- {idf_build_apps-2.7.0.dist-info → idf_build_apps-2.8.0.dist-info/licenses}/LICENSE +0 -0
idf_build_apps/__init__.py
CHANGED
idf_build_apps/args.py
CHANGED
|
@@ -27,7 +27,7 @@ from pydantic_settings import (
|
|
|
27
27
|
from typing_extensions import Concatenate, ParamSpec
|
|
28
28
|
|
|
29
29
|
from . import SESSION_ARGS, App, setup_logging
|
|
30
|
-
from .constants import ALL_TARGETS, IDF_BUILD_APPS_TOML_FN
|
|
30
|
+
from .constants import ALL_TARGETS, IDF_BUILD_APPS_TOML_FN, SUPPORTED_TARGETS
|
|
31
31
|
from .manifest.manifest import FolderRule, Manifest
|
|
32
32
|
from .utils import InvalidCommand, files_matches_patterns, semicolon_separated_str_to_list, to_absolute_path, to_list
|
|
33
33
|
from .vendors.pydantic_sources import PyprojectTomlConfigSettingsSource, TomlConfigSettingsSource
|
|
@@ -500,6 +500,14 @@ class FindBuildArguments(DependencyDrivenBuildArguments):
|
|
|
500
500
|
'including the preview targets. As the targets defined in `idf.py --list-targets --preview`',
|
|
501
501
|
default=False, # type: ignore
|
|
502
502
|
)
|
|
503
|
+
disable_targets: t.Optional[t.List[str]] = field(
|
|
504
|
+
FieldMetadata(
|
|
505
|
+
validate_method=[ValidateMethod.TO_LIST],
|
|
506
|
+
nargs='+',
|
|
507
|
+
),
|
|
508
|
+
description='space-separated list of targets that should be disabled to all apps.',
|
|
509
|
+
default=None, # type: ignore
|
|
510
|
+
)
|
|
503
511
|
include_skipped_apps: bool = field(
|
|
504
512
|
FieldMetadata(
|
|
505
513
|
action='store_true',
|
|
@@ -549,6 +557,14 @@ class FindBuildArguments(DependencyDrivenBuildArguments):
|
|
|
549
557
|
self.default_build_targets = deepcopy(ALL_TARGETS)
|
|
550
558
|
LOGGER.info('Overriding default build targets to %s', self.default_build_targets)
|
|
551
559
|
FolderRule.DEFAULT_BUILD_TARGETS = self.default_build_targets
|
|
560
|
+
else:
|
|
561
|
+
# restore default build targets
|
|
562
|
+
FolderRule.DEFAULT_BUILD_TARGETS = SUPPORTED_TARGETS
|
|
563
|
+
|
|
564
|
+
if self.disable_targets and FolderRule.DEFAULT_BUILD_TARGETS:
|
|
565
|
+
LOGGER.info('Disable targets: %s', self.disable_targets)
|
|
566
|
+
self.default_build_targets = [t for t in FolderRule.DEFAULT_BUILD_TARGETS if t not in self.disable_targets]
|
|
567
|
+
FolderRule.DEFAULT_BUILD_TARGETS = self.default_build_targets
|
|
552
568
|
|
|
553
569
|
if self.override_sdkconfig_items or self.override_sdkconfig_items:
|
|
554
570
|
SESSION_ARGS.set(self)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: idf-build-apps
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.8.0
|
|
4
4
|
Summary: Tools for building ESP-IDF related apps.
|
|
5
5
|
Author-email: Fu Hanxi <fuhanxi@espressif.com>
|
|
6
6
|
Requires-Python: >=3.7
|
|
@@ -13,6 +13,7 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
15
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
License-File: LICENSE
|
|
16
17
|
Requires-Dist: pyparsing
|
|
17
18
|
Requires-Dist: pyyaml
|
|
18
19
|
Requires-Dist: packaging
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
idf_build_apps/__init__.py,sha256=
|
|
1
|
+
idf_build_apps/__init__.py,sha256=3vewJdf7GgnX4UdkV0BSVMYz4HAtn8XxAO46J7o6C3E,650
|
|
2
2
|
idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
|
|
3
3
|
idf_build_apps/app.py,sha256=DKofid9Z0DqoDL1DcsO05rVBtgSd5O9SoCDqKzl8iFQ,36674
|
|
4
|
-
idf_build_apps/args.py,sha256=
|
|
4
|
+
idf_build_apps/args.py,sha256=VELrteHp7oGCG2yrJ-he3CoeT0iCMXrcuWKzk5UgTWg,34955
|
|
5
5
|
idf_build_apps/autocompletions.py,sha256=g-bx0pzXoFKI0VQqftkHyGVWN6MLjuFOdozeuAf45yo,2138
|
|
6
6
|
idf_build_apps/constants.py,sha256=2iwLPZRhSQcn1v4RAcOJnHbqp1fDTp6A1gHaxn5ciTE,2166
|
|
7
7
|
idf_build_apps/finder.py,sha256=hY6uSMB2s65MqMKIDBSHABOfa93mOLT7x5hlMxC43EQ,5794
|
|
@@ -20,8 +20,8 @@ idf_build_apps/vendors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
20
20
|
idf_build_apps/vendors/pydantic_sources.py,sha256=cxSIPRc3eI5peVMhDxwf58YaGhuG4SCwPRVX2znFEek,4553
|
|
21
21
|
idf_build_apps/yaml/__init__.py,sha256=W-3z5no07RQ6eYKGyOAPA8Z2CLiMPob8DD91I4URjrA,162
|
|
22
22
|
idf_build_apps/yaml/parser.py,sha256=b3LvogO6do-eJPRsYzT-8xk8AT2MnXpLCzQutJqyC7M,2128
|
|
23
|
-
idf_build_apps-2.
|
|
24
|
-
idf_build_apps-2.
|
|
25
|
-
idf_build_apps-2.
|
|
26
|
-
idf_build_apps-2.
|
|
27
|
-
idf_build_apps-2.
|
|
23
|
+
idf_build_apps-2.8.0.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
|
|
24
|
+
idf_build_apps-2.8.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
25
|
+
idf_build_apps-2.8.0.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
|
|
26
|
+
idf_build_apps-2.8.0.dist-info/METADATA,sha256=FqHvNLG5L4QX-RDPpRv4uDXVkLebT18jvvPlWiJcTAg,4735
|
|
27
|
+
idf_build_apps-2.8.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|