idf-build-apps 1.1.3__py2.py3-none-any.whl → 1.1.4__py2.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.
@@ -7,7 +7,7 @@ Tools for building ESP-IDF related apps.
7
7
 
8
8
  import logging
9
9
 
10
- __version__ = '1.1.3'
10
+ __version__ = '1.1.4'
11
11
 
12
12
  LOGGER = logging.getLogger('idf_build_apps')
13
13
 
@@ -59,15 +59,17 @@ class FolderRule:
59
59
  ): # type: (...) -> None
60
60
  self.folder = folder.resolve()
61
61
 
62
- for group in [enable, disable, disable_test]:
63
- if group:
64
- for d in group:
65
- d['stmt'] = d['if'] # avoid keyword `if`
66
- del d['if']
67
-
68
- self.enable = [IfClause(**clause) for clause in enable] if enable else []
69
- self.disable = [IfClause(**clause) for clause in disable] if disable else []
70
- self.disable_test = [IfClause(**clause) for clause in disable_test] if disable_test else []
62
+ def _clause_to_if_clause(clause): # type: (dict[str, str]) -> IfClause
63
+ _kwargs = {'stmt': clause['if']}
64
+ if 'temporary' in clause:
65
+ _kwargs['temporary'] = clause['temporary']
66
+ if 'reason' in clause:
67
+ _kwargs['reason'] = clause['reason']
68
+ return IfClause(**_kwargs)
69
+
70
+ self.enable = [_clause_to_if_clause(clause) for clause in enable] if enable else []
71
+ self.disable = [_clause_to_if_clause(clause) for clause in disable] if disable else []
72
+ self.disable_test = [_clause_to_if_clause(clause) for clause in disable_test] if disable_test else []
71
73
  self.depends_components = depends_components or []
72
74
  self.depends_filepatterns = depends_filepatterns or []
73
75
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: idf-build-apps
3
- Version: 1.1.3
3
+ Version: 1.1.4
4
4
  Summary: Tools for building ESP-IDF related apps.
5
5
  Author-email: Fu Hanxi <fuhanxi@espressif.com>
6
6
  Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
@@ -1,4 +1,4 @@
1
- idf_build_apps/__init__.py,sha256=YAml8qJ-XBVV_2WGv41nOeQbIufxVYDMr8XKrZsJfj4,481
1
+ idf_build_apps/__init__.py,sha256=Y48pGaQsOQLgpW2rvmv4G3IgEhzpoFgC53WHSTLpEAg,481
2
2
  idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
3
3
  idf_build_apps/app.py,sha256=E45_j95EcU2WQcrOfyZDFMXZZ5juUfvLYDgy8f6h6vk,28020
4
4
  idf_build_apps/config.py,sha256=FCr1oqk8OJLNXUKxuIi4aJRWaRYalubOzQEQ0YCY2kk,2794
@@ -9,10 +9,10 @@ idf_build_apps/main.py,sha256=k3u4Q6rLmjmjU6zVsR7XtYtN38JOA1O9t_6fvCJLroQ,30232
9
9
  idf_build_apps/utils.py,sha256=dKiZsGtJ024qT0CNsO_QjHkVHVjOgvWgYDUsC02JoVU,7232
10
10
  idf_build_apps/manifest/__init__.py,sha256=Q2-cb3ngNjnl6_zWhUfzZZB10f_-Rv2JYNck3Lk7UkQ,133
11
11
  idf_build_apps/manifest/if_parser.py,sha256=KEJQReWJBizOxREbhXNb--O6sTTiP2oGyuQ0s3dsCyw,6368
12
- idf_build_apps/manifest/manifest.py,sha256=Rbq2yIMPP0KwJP4X3gKTrUnMhlXuvhEBLrdoIJS07oM,6841
12
+ idf_build_apps/manifest/manifest.py,sha256=R-KfJBw9ulY6-orqxoJfMLSpjWxmPm75VSq1wW2LCrg,7018
13
13
  idf_build_apps/manifest/soc_header.py,sha256=W8h7ymknRg_qpNvp3Dl9dsnAk_IVxyvsA7IenT3-Zks,3888
14
- idf_build_apps-1.1.3.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
15
- idf_build_apps-1.1.3.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
16
- idf_build_apps-1.1.3.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
17
- idf_build_apps-1.1.3.dist-info/METADATA,sha256=gGqZu01DP2BJH8DyLOe0K-_5IwJqRwpLtpi1n9yUmG8,5620
18
- idf_build_apps-1.1.3.dist-info/RECORD,,
14
+ idf_build_apps-1.1.4.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
15
+ idf_build_apps-1.1.4.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
16
+ idf_build_apps-1.1.4.dist-info/WHEEL,sha256=Sgu64hAMa6g5FdzHxXv9Xdse9yxpGGMeagVtPMWpJQY,99
17
+ idf_build_apps-1.1.4.dist-info/METADATA,sha256=vcUUrIsnkRW2pW-10lMN3aIYN0RablyJI1q2NJIZ8lQ,5620
18
+ idf_build_apps-1.1.4.dist-info/RECORD,,