idf-build-apps 2.4.2__py3-none-any.whl → 2.4.3__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.4.2'
11
+ __version__ = '2.4.3'
12
12
 
13
13
  from .session_args import (
14
14
  SessionArgs,
idf_build_apps/main.py CHANGED
@@ -458,8 +458,12 @@ def get_parser() -> argparse.ArgumentParser:
458
458
  help='Path to the default configuration file, toml file',
459
459
  )
460
460
 
461
- common_args.add_argument('-p', '--paths', nargs='+', help='One or more paths to look for apps')
462
- common_args.add_argument('-t', '--target', help='filter apps by given target')
461
+ common_args.add_argument(
462
+ '-p', '--paths', nargs='*', help='One or more paths to look for apps. By default build the current directory.'
463
+ )
464
+ common_args.add_argument(
465
+ '-t', '--target', default='all', help='filter apps by given target. By default build all supported targets.'
466
+ )
463
467
  common_args.add_argument(
464
468
  '--build-system', default='cmake', choices=['cmake', 'make'], help='filter apps by given build system'
465
469
  )
@@ -759,15 +763,13 @@ def validate_args(parser: argparse.ArgumentParser, args: argparse.Namespace) ->
759
763
  raise InvalidCommand('subcommand is required. {find, build, completions}')
760
764
 
761
765
  if not args.paths:
762
- raise InvalidCommand(
763
- 'Must specify at least one path to search for the apps ' 'with CLI option "-p <path>" or "--path <path>"'
764
- )
766
+ cur_dir = os.getcwd()
767
+ LOGGER.debug(f'--paths is missing. Set --path as current directory "{cur_dir}".')
768
+ args.paths = [cur_dir]
765
769
 
766
770
  if not args.target:
767
- raise InvalidCommand(
768
- 'Must specify current build target with CLI option "-t <target>" or "--target <target>". '
769
- '(choices: [{}]'.format(','.join([*ALL_TARGETS, 'all']))
770
- )
771
+ LOGGER.debug('--target is missing. Set --target as "all".')
772
+ args.target = 'all'
771
773
 
772
774
  default_build_targets = []
773
775
  if args.default_build_targets:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: idf-build-apps
3
- Version: 2.4.2
3
+ Version: 2.4.3
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
@@ -1,4 +1,4 @@
1
- idf_build_apps/__init__.py,sha256=BwKVA9OBak7HwLAOrcfYb-ir3L5sCQDsB_FC7GO4KjE,650
1
+ idf_build_apps/__init__.py,sha256=f_NYZ6u3CevDB7l3_nWGaHJRQ0GfuVDJSl8LcgjCDCw,650
2
2
  idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
3
3
  idf_build_apps/app.py,sha256=q9udvZyBG3qWrNxlyuG3iTiLcayOSrSwRuyL2n7QALY,37002
4
4
  idf_build_apps/autocompletions.py,sha256=g-bx0pzXoFKI0VQqftkHyGVWN6MLjuFOdozeuAf45yo,2138
@@ -7,7 +7,7 @@ idf_build_apps/config.py,sha256=I75uOQGarCWVKGi16ZYpo0qTVU25BUP4eh6-RWCtbvw,2924
7
7
  idf_build_apps/constants.py,sha256=8Bh99xGFpyLkEovQMglS2KydxoEZesAHQSgdpsUnSTM,4000
8
8
  idf_build_apps/finder.py,sha256=2TOQ6fq9q3MtsLnG4o0VvA2aMd3Zb6w6CL-U_tQrT3k,6362
9
9
  idf_build_apps/log.py,sha256=JysogBHoompfW9E9w0U4wZH7tt8dBdfoh-stPXQz1hw,2573
10
- idf_build_apps/main.py,sha256=wKDt5iQKjpDmxJecPJMMMYb2kDI2qIRH_Qlkg3u6jlY,39199
10
+ idf_build_apps/main.py,sha256=u2MiVuGFL72-43DdwXs2BgRG90MZuxbjfJRsbxP8BSg,39201
11
11
  idf_build_apps/session_args.py,sha256=2WDTy40IFAc0KQ57HaeBcYj_k10eUXRKkDOWLrFCaHY,2985
12
12
  idf_build_apps/utils.py,sha256=dYxNXPe7FRWxzUFlTzOb3G-LpKpRUrNWdQrsO5MXAB8,9702
13
13
  idf_build_apps/junit/__init__.py,sha256=IxvdaS6eSXp7kZxRuXqyZyGxuA_A1nOW1jF1HMi8Gns,231
@@ -19,8 +19,8 @@ idf_build_apps/manifest/manifest.py,sha256=P5ZaUd72A_HOVF6iuwap__Bw-w7WI72ugiTUR
19
19
  idf_build_apps/manifest/soc_header.py,sha256=PzJ37xFspt5f0AXWvAFNA_avHZA9fMXHBrwDYLi3qEI,4344
20
20
  idf_build_apps/yaml/__init__.py,sha256=W-3z5no07RQ6eYKGyOAPA8Z2CLiMPob8DD91I4URjrA,162
21
21
  idf_build_apps/yaml/parser.py,sha256=Y2OyB4g1DCC7C7jrvpIyZV9lgeCB_XvuB75iGmqiTaM,2093
22
- idf_build_apps-2.4.2.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
23
- idf_build_apps-2.4.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
- idf_build_apps-2.4.2.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
25
- idf_build_apps-2.4.2.dist-info/METADATA,sha256=wk_YDe56T2b3qXhknNIRzcBtCpvcDQCqku22o7IbYIU,4608
26
- idf_build_apps-2.4.2.dist-info/RECORD,,
22
+ idf_build_apps-2.4.3.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
23
+ idf_build_apps-2.4.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
24
+ idf_build_apps-2.4.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
25
+ idf_build_apps-2.4.3.dist-info/METADATA,sha256=tfLthnRioC7cNvQ51g1VjXcI5qZ8DxhR00kDh0hn_0Y,4608
26
+ idf_build_apps-2.4.3.dist-info/RECORD,,