idf-build-apps 2.6.1__py3-none-any.whl → 2.6.2__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.6.1'
11
+ __version__ = '2.6.2'
12
12
 
13
13
  from .session_args import (
14
14
  SessionArgs,
@@ -17,6 +17,7 @@ Modifications:
17
17
  - recursively find TOML file.
18
18
  """
19
19
 
20
+ import logging
20
21
  import os
21
22
  import sys
22
23
  from abc import ABC, abstractmethod
@@ -30,6 +31,7 @@ from idf_build_apps.constants import IDF_BUILD_APPS_TOML_FN
30
31
 
31
32
  PathType = Union[Path, str, List[Union[Path, str]], Tuple[Union[Path, str], ...]]
32
33
  DEFAULT_PATH = Path('')
34
+ LOGGER = logging.getLogger(__name__)
33
35
 
34
36
 
35
37
  class ConfigFileSourceMixin(ABC):
@@ -94,18 +96,18 @@ class TomlConfigSettingsSource(InitSettingsSource, ConfigFileSourceMixin):
94
96
  """
95
97
  if provided and Path(provided).is_file():
96
98
  fp = provided.resolve()
97
- print(f'Loading config file: {fp}')
99
+ LOGGER.debug(f'Loading config file: {fp}')
98
100
  return fp
99
101
 
100
102
  rv = Path.cwd()
101
103
  count = -1
102
104
  while count < depth:
103
- if str(rv) == rv.root:
105
+ if len(rv.parts) == 1:
104
106
  break
105
107
 
106
108
  fp = rv / filename
107
109
  if fp.is_file():
108
- print(f'Loading config file: {fp}')
110
+ LOGGER.debug(f'Loading config file: {fp}')
109
111
  return fp
110
112
 
111
113
  rv = rv.parent
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: idf-build-apps
3
- Version: 2.6.1
3
+ Version: 2.6.2
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=vUpvuUfhUex6RVt7a3vpSTczJJkHz8qSc2HqbwFW_80,650
1
+ idf_build_apps/__init__.py,sha256=m6Rv6NFbCuro2DEeChOgSIDFGQahhbsPVd6IEqQJY74,650
2
2
  idf_build_apps/__main__.py,sha256=8E-5xHm2MlRun0L88XJleNh5U50dpE0Q1nK5KqomA7I,182
3
3
  idf_build_apps/app.py,sha256=F-MKOsaz7cJ0H2wsEE4gpO4kkkEdkyFmIZBHDoM2qgs,37359
4
4
  idf_build_apps/args.py,sha256=zB08ctBXFz1UkPv4r7kE6E6sBezCFrrzt99HKRDiRTA,34821
@@ -17,11 +17,11 @@ idf_build_apps/manifest/__init__.py,sha256=LYGR9doEKGPEdsJPuHnmJmV-qw2kuAipV0bod
17
17
  idf_build_apps/manifest/manifest.py,sha256=5BIzNzGAk0w5qOCTMGsmvKcN4DQLwUi6JVGt2G4JKQs,14793
18
18
  idf_build_apps/manifest/soc_header.py,sha256=_F6H5-HP6ateAqKUGlRGH-SUtQ8NJ1RI0hBeCFvsDYA,172
19
19
  idf_build_apps/vendors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
- idf_build_apps/vendors/pydantic_sources.py,sha256=cO316vq4wAw51O1-KsYz8jrhiI_lkCghiPCYyH0Ghik,4487
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.6.1.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
24
- idf_build_apps-2.6.1.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
25
- idf_build_apps-2.6.1.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
26
- idf_build_apps-2.6.1.dist-info/METADATA,sha256=z7cnY1oC-PXymCxVYo7_Ao5LvPnFyzblDYVE_sUavbI,4693
27
- idf_build_apps-2.6.1.dist-info/RECORD,,
23
+ idf_build_apps-2.6.2.dist-info/entry_points.txt,sha256=3pVUirUEsb6jsDRikkQWNUt4hqLK2ci1HvW_Vf8b6uE,59
24
+ idf_build_apps-2.6.2.dist-info/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
25
+ idf_build_apps-2.6.2.dist-info/WHEEL,sha256=CpUCUxeHQbRN5UGRQHYRJorO5Af-Qy_fHMctcQ8DSGI,82
26
+ idf_build_apps-2.6.2.dist-info/METADATA,sha256=mKkCtbqE575AjE9JLBbTUeRQ9Cs1gcep0FHeHl0tN8s,4693
27
+ idf_build_apps-2.6.2.dist-info/RECORD,,