idf-build-apps 2.3.0__py3-none-any.whl → 2.3.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.
- idf_build_apps/__init__.py +1 -1
- idf_build_apps/app.py +12 -0
- idf_build_apps/main.py +1 -12
- {idf_build_apps-2.3.0.dist-info → idf_build_apps-2.3.1.dist-info}/METADATA +1 -1
- {idf_build_apps-2.3.0.dist-info → idf_build_apps-2.3.1.dist-info}/RECORD +8 -8
- {idf_build_apps-2.3.0.dist-info → idf_build_apps-2.3.1.dist-info}/LICENSE +0 -0
- {idf_build_apps-2.3.0.dist-info → idf_build_apps-2.3.1.dist-info}/WHEEL +0 -0
- {idf_build_apps-2.3.0.dist-info → idf_build_apps-2.3.1.dist-info}/entry_points.txt +0 -0
idf_build_apps/__init__.py
CHANGED
idf_build_apps/app.py
CHANGED
|
@@ -124,6 +124,7 @@ class App(BaseModel):
|
|
|
124
124
|
verbose: bool = False
|
|
125
125
|
check_warnings: bool = False
|
|
126
126
|
preserve: bool = True
|
|
127
|
+
copy_sdkconfig: bool = False
|
|
127
128
|
|
|
128
129
|
# build_apps() related
|
|
129
130
|
build_apps_args: t.Optional[BuildAppsArgs] = None
|
|
@@ -561,6 +562,17 @@ class App(BaseModel):
|
|
|
561
562
|
def _post_build(self) -> None:
|
|
562
563
|
self._build_stage = BuildStage.POST_BUILD
|
|
563
564
|
|
|
565
|
+
if self.copy_sdkconfig:
|
|
566
|
+
try:
|
|
567
|
+
shutil.copy(
|
|
568
|
+
os.path.join(self.work_dir, 'sdkconfig'),
|
|
569
|
+
os.path.join(self.build_path, 'sdkconfig'),
|
|
570
|
+
)
|
|
571
|
+
except Exception as e:
|
|
572
|
+
self._logger.warning('Copy sdkconfig file from failed: %s', e)
|
|
573
|
+
else:
|
|
574
|
+
self._logger.debug('Copied sdkconfig file from %s to %s', self.work_dir, self.build_path)
|
|
575
|
+
|
|
564
576
|
if not os.path.isfile(self.build_log_path):
|
|
565
577
|
return
|
|
566
578
|
|
idf_build_apps/main.py
CHANGED
|
@@ -6,7 +6,6 @@ import json
|
|
|
6
6
|
import logging
|
|
7
7
|
import os
|
|
8
8
|
import re
|
|
9
|
-
import shutil
|
|
10
9
|
import sys
|
|
11
10
|
import textwrap
|
|
12
11
|
import typing as t
|
|
@@ -324,6 +323,7 @@ def build_apps(
|
|
|
324
323
|
app.dry_run = dry_run
|
|
325
324
|
app.index = index
|
|
326
325
|
app.verbose = build_verbose
|
|
326
|
+
app.copy_sdkconfig = copy_sdkconfig
|
|
327
327
|
|
|
328
328
|
LOGGER.info('(%s/%s) Building app: %s', index, len(apps), app)
|
|
329
329
|
|
|
@@ -353,17 +353,6 @@ def build_apps(
|
|
|
353
353
|
fw.write(app.to_json() + '\n')
|
|
354
354
|
LOGGER.debug('Recorded app info in %s', build_apps_args.collect_app_info)
|
|
355
355
|
|
|
356
|
-
if copy_sdkconfig:
|
|
357
|
-
try:
|
|
358
|
-
shutil.copy(
|
|
359
|
-
os.path.join(app.work_dir, 'sdkconfig'),
|
|
360
|
-
os.path.join(app.build_path, 'sdkconfig'),
|
|
361
|
-
)
|
|
362
|
-
except Exception as e:
|
|
363
|
-
LOGGER.warning('Copy sdkconfig file from failed: %s', e)
|
|
364
|
-
else:
|
|
365
|
-
LOGGER.debug('Copied sdkconfig file from %s to %s', app.work_dir, app.build_path)
|
|
366
|
-
|
|
367
356
|
if app.build_status == BuildStatus.FAILED:
|
|
368
357
|
if not keep_going:
|
|
369
358
|
return 1
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
idf_build_apps/__init__.py,sha256=
|
|
1
|
+
idf_build_apps/__init__.py,sha256=z1ITg-Ywq6Ena0ioI98C9E6iK4aFe--1PiSFX-iUHl4,650
|
|
2
2
|
idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
|
|
3
|
-
idf_build_apps/app.py,sha256=
|
|
3
|
+
idf_build_apps/app.py,sha256=z6i55q_XaMjea34_nbAKgNTU-qOEkO_qTHCYSeQNUFw,35887
|
|
4
4
|
idf_build_apps/build_apps_args.py,sha256=r6VCJDdCzE873X8OTputYkCBZPgECaKoNlAejfcamJk,1644
|
|
5
5
|
idf_build_apps/config.py,sha256=I75uOQGarCWVKGi16ZYpo0qTVU25BUP4eh6-RWCtbvw,2924
|
|
6
6
|
idf_build_apps/constants.py,sha256=xqclwUpWE5dEByL4kxdg2HaHjbAfkJtxodFfLZuAk8A,2818
|
|
7
7
|
idf_build_apps/finder.py,sha256=qw5moNq7U5mHSsR0CCfGkKE9p4QsWYNcfkxzeQ73HgM,6252
|
|
8
8
|
idf_build_apps/log.py,sha256=JysogBHoompfW9E9w0U4wZH7tt8dBdfoh-stPXQz1hw,2573
|
|
9
|
-
idf_build_apps/main.py,sha256=
|
|
9
|
+
idf_build_apps/main.py,sha256=lP2rUqtBfU7gxN63owZlAshdXvSFUfElfTsKthhBQus,34651
|
|
10
10
|
idf_build_apps/session_args.py,sha256=2WDTy40IFAc0KQ57HaeBcYj_k10eUXRKkDOWLrFCaHY,2985
|
|
11
11
|
idf_build_apps/utils.py,sha256=n9PNJEDDsA9hbbM0SNPdTFsO2_E8alNrX7CNYzaFHik,9644
|
|
12
12
|
idf_build_apps/junit/__init__.py,sha256=IxvdaS6eSXp7kZxRuXqyZyGxuA_A1nOW1jF1HMi8Gns,231
|
|
@@ -18,8 +18,8 @@ idf_build_apps/manifest/manifest.py,sha256=P5ZaUd72A_HOVF6iuwap__Bw-w7WI72ugiTUR
|
|
|
18
18
|
idf_build_apps/manifest/soc_header.py,sha256=ULLad1TI8mGfdJhB7LJ4T9A_8BugF1TmckgdO7jO7Fg,3956
|
|
19
19
|
idf_build_apps/yaml/__init__.py,sha256=W-3z5no07RQ6eYKGyOAPA8Z2CLiMPob8DD91I4URjrA,162
|
|
20
20
|
idf_build_apps/yaml/parser.py,sha256=Y2OyB4g1DCC7C7jrvpIyZV9lgeCB_XvuB75iGmqiTaM,2093
|
|
21
|
-
idf_build_apps-2.3.
|
|
22
|
-
idf_build_apps-2.3.
|
|
23
|
-
idf_build_apps-2.3.
|
|
24
|
-
idf_build_apps-2.3.
|
|
25
|
-
idf_build_apps-2.3.
|
|
21
|
+
idf_build_apps-2.3.1.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
|
|
22
|
+
idf_build_apps-2.3.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
23
|
+
idf_build_apps-2.3.1.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
24
|
+
idf_build_apps-2.3.1.dist-info/METADATA,sha256=ET5FxoKnaafQWJGkpERufP1p7J_JLzz3gO3ZYLsRPVg,4458
|
|
25
|
+
idf_build_apps-2.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|