idf-build-apps 2.7.0__py3-none-any.whl → 2.8.1__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.
@@ -8,7 +8,7 @@ Tools for building ESP-IDF related apps.
8
8
  # ruff: noqa: E402
9
9
  # avoid circular imports
10
10
 
11
- __version__ = '2.7.0'
11
+ __version__ = '2.8.1'
12
12
 
13
13
  from .session_args import (
14
14
  SessionArgs,
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,8 +557,16 @@ 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
- if self.override_sdkconfig_items or self.override_sdkconfig_items:
569
+ if self.override_sdkconfig_files or self.override_sdkconfig_items:
554
570
  SESSION_ARGS.set(self)
555
571
 
556
572
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.3
1
+ Metadata-Version: 2.4
2
2
  Name: idf-build-apps
3
- Version: 2.7.0
3
+ Version: 2.8.1
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=BfvfLYTWG1Y1Uy05w7PkCywbLswdIL5d-xh54mKeoGM,650
1
+ idf_build_apps/__init__.py,sha256=IMmTkYj0ST-jiyD0xXbUAvlIxu66jnXXcicRuu9tL-k,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=rNOzetQYyfCfz9RQq_bzLXL6FrFpJllvLU2VooL_p9s,34178
4
+ idf_build_apps/args.py,sha256=4sDupbemB66vwX60Dr5FTqfz5MvBqtyk_OPwKNidAFM,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.7.0.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
24
- idf_build_apps-2.7.0.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
25
- idf_build_apps-2.7.0.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
26
- idf_build_apps-2.7.0.dist-info/METADATA,sha256=QGSjoUnmfFJk9l7bxO-QfOeIR-dKxgeZAsEihosMPpQ,4713
27
- idf_build_apps-2.7.0.dist-info/RECORD,,
23
+ idf_build_apps-2.8.1.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
24
+ idf_build_apps-2.8.1.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
25
+ idf_build_apps-2.8.1.dist-info/WHEEL,sha256=_2ozNFCLWc93bK4WKHCO-eDUENDlo-dgc9cU3qokYO4,82
26
+ idf_build_apps-2.8.1.dist-info/METADATA,sha256=kQq1NI7VocSdPZtH66DlY5E1pj3D4ULgtNaIsmEkAto,4735
27
+ idf_build_apps-2.8.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: flit 3.10.1
2
+ Generator: flit 3.11.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any