idf-build-apps 2.5.2__py3-none-any.whl → 2.5.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.
- idf_build_apps/__init__.py +1 -1
- idf_build_apps/args.py +21 -0
- {idf_build_apps-2.5.2.dist-info → idf_build_apps-2.5.3.dist-info}/METADATA +1 -1
- {idf_build_apps-2.5.2.dist-info → idf_build_apps-2.5.3.dist-info}/RECORD +7 -7
- {idf_build_apps-2.5.2.dist-info → idf_build_apps-2.5.3.dist-info}/LICENSE +0 -0
- {idf_build_apps-2.5.2.dist-info → idf_build_apps-2.5.3.dist-info}/WHEEL +0 -0
- {idf_build_apps-2.5.2.dist-info → idf_build_apps-2.5.3.dist-info}/entry_points.txt +0 -0
idf_build_apps/__init__.py
CHANGED
idf_build_apps/args.py
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import argparse
|
|
5
5
|
import enum
|
|
6
|
+
import glob
|
|
6
7
|
import inspect
|
|
7
8
|
import logging
|
|
8
9
|
import os
|
|
@@ -191,6 +192,15 @@ class DependencyDrivenBuildArguments(GlobalArguments):
|
|
|
191
192
|
validation_alias=AliasChoices('manifest_files', 'manifest_file'),
|
|
192
193
|
default=None,
|
|
193
194
|
)
|
|
195
|
+
manifest_filepatterns: t.Optional[t.List[str]] = field(
|
|
196
|
+
FieldMetadata(
|
|
197
|
+
validate_method=[ValidateMethod.TO_LIST],
|
|
198
|
+
nargs='+',
|
|
199
|
+
),
|
|
200
|
+
description='space-separated list of file patterns to search for the manifest files. '
|
|
201
|
+
'The matched files will be loaded as the manifest files.',
|
|
202
|
+
default=None,
|
|
203
|
+
)
|
|
194
204
|
manifest_rootpath: str = field(
|
|
195
205
|
None,
|
|
196
206
|
description='Root path to resolve the relative paths defined in the manifest files. '
|
|
@@ -279,6 +289,17 @@ class DependencyDrivenBuildArguments(GlobalArguments):
|
|
|
279
289
|
def model_post_init(self, __context: Any) -> None:
|
|
280
290
|
super().model_post_init(__context)
|
|
281
291
|
|
|
292
|
+
if self.manifest_filepatterns:
|
|
293
|
+
matched_paths = set()
|
|
294
|
+
for pat in [to_absolute_path(p, self.manifest_rootpath) for p in self.manifest_filepatterns]:
|
|
295
|
+
matched_paths.update(glob.glob(str(pat), recursive=True))
|
|
296
|
+
|
|
297
|
+
if matched_paths:
|
|
298
|
+
if self.manifest_files:
|
|
299
|
+
self.manifest_files.extend(matched_paths)
|
|
300
|
+
else:
|
|
301
|
+
self.manifest_files = list(matched_paths)
|
|
302
|
+
|
|
282
303
|
Manifest.CHECK_MANIFEST_RULES = self.check_manifest_rules
|
|
283
304
|
if self.manifest_files:
|
|
284
305
|
App.MANIFEST = Manifest.from_files(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
idf_build_apps/__init__.py,sha256=
|
|
1
|
+
idf_build_apps/__init__.py,sha256=NC4Y3XHI515eQBX8WScygPjZaCgogb4zOZjjg_UEyaY,650
|
|
2
2
|
idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
|
|
3
3
|
idf_build_apps/app.py,sha256=F-MKOsaz7cJ0H2wsEE4gpO4kkkEdkyFmIZBHDoM2qgs,37359
|
|
4
|
-
idf_build_apps/args.py,sha256=
|
|
4
|
+
idf_build_apps/args.py,sha256=3lSzUZIkfJzzmhCJ8GICtKQQ1iY-dDotIOmmqwwUrF8,32762
|
|
5
5
|
idf_build_apps/autocompletions.py,sha256=g-bx0pzXoFKI0VQqftkHyGVWN6MLjuFOdozeuAf45yo,2138
|
|
6
6
|
idf_build_apps/constants.py,sha256=07ve2FtWuLBuc_6LFzbs1XncB1VNi9HJUqGjQQauRNM,3952
|
|
7
7
|
idf_build_apps/finder.py,sha256=Wv0QYArXmVZZDslLxfPwGgt202s94112AlAHk0s3N1g,5710
|
|
@@ -20,8 +20,8 @@ idf_build_apps/vendors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
|
20
20
|
idf_build_apps/vendors/pydantic_sources.py,sha256=2IN6opo6qjCwaqhERFbgA4PtEwqKaTtEkccy5_fYAT0,4130
|
|
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.5.
|
|
24
|
-
idf_build_apps-2.5.
|
|
25
|
-
idf_build_apps-2.5.
|
|
26
|
-
idf_build_apps-2.5.
|
|
27
|
-
idf_build_apps-2.5.
|
|
23
|
+
idf_build_apps-2.5.3.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
|
|
24
|
+
idf_build_apps-2.5.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
|
25
|
+
idf_build_apps-2.5.3.dist-info/WHEEL,sha256=EZbGkh7Ie4PoZfRQ8I0ZuP9VklN_TvcZ6DSE5Uar4z4,81
|
|
26
|
+
idf_build_apps-2.5.3.dist-info/METADATA,sha256=XZLgJfyaJgEl6rULmN0zIeG9quKVH9EhuigO1hnQOvk,4610
|
|
27
|
+
idf_build_apps-2.5.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|