File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 2020from ruamel .yaml import YAML , CommentedMap
2121
2222from idf_component_manager .utils import ComponentSource , VersionSolverResolution
23- from idf_component_tools import ComponentManagerSettings
23+ from idf_component_tools import ComponentManagerSettings , debug
2424from idf_component_tools .archive_tools import pack_archive , unpack_archive
2525from idf_component_tools .build_system_tools import build_name , is_component
2626from idf_component_tools .config import root_managed_components_dir
8888from .local_component_list import parse_component_list
8989from .sync import sync_components
9090
91+ try :
92+ import truststore
93+
94+ truststore .inject_into_ssl ()
95+ debug ('Use truststore as a source of trusted certificates' )
96+ except ImportError :
97+ debug (
98+ 'Failed to import truststore, '
99+ "the 'certifi' package will be used as a source of trusted certificates"
100+ )
101+
91102CHECK_INTERVAL = 3
92103MAX_PROGRESS = 100 # Expected progress is in percent
93104
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ dependencies = [
4848 " pydantic-core" ,
4949 " pydantic-settings" ,
5050 " typing-extensions; python_version < '3.12'" ,
51+ " truststore; python_version >= '3.10'"
5152]
5253
5354[project .optional-dependencies ]
You can’t perform that action at this time.
0 commit comments