mirror of
https://github.com/esphome/esphome.git
synced 2026-08-22 22:26:21 +00:00
Merge branch 'esp8266-native-ninja-emission' into esp8266-arduino-toolchain
This commit is contained in:
@@ -35,7 +35,6 @@ from esphome.platformio.library import (
|
||||
IncompatiblePlatform,
|
||||
InvalidLibrary,
|
||||
LibraryBackend,
|
||||
_node_key,
|
||||
check_library_data,
|
||||
collect_filtered_files,
|
||||
convert_libraries,
|
||||
@@ -46,6 +45,7 @@ from esphome.platformio.library import (
|
||||
normalize_dependencies,
|
||||
parse_library_json,
|
||||
parse_library_properties,
|
||||
request_key,
|
||||
)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
@@ -327,10 +327,7 @@ def resolve_libraries(
|
||||
# "bitbank2__pngle"); diff the request-side node keys instead
|
||||
resolved_keys = {c.node_key or c.name for c in resolved}
|
||||
dropped = [
|
||||
str(lib)
|
||||
for lib in external
|
||||
if _node_key(lib.name, lib.version, lib.repository)[0]
|
||||
not in resolved_keys
|
||||
str(lib) for lib in external if request_key(lib) not in resolved_keys
|
||||
]
|
||||
_LOGGER.warning(
|
||||
"%d of %d requested libraries were not resolved (missing: %s)",
|
||||
|
||||
@@ -776,6 +776,15 @@ def is_lib_ignored(name: str | None, lib_ignore: set[str]) -> bool:
|
||||
)
|
||||
|
||||
|
||||
def request_key(library: Library) -> str:
|
||||
"""The node key a library spec resolves under.
|
||||
|
||||
Pairs with ``ConvertedLibrary.node_key``: diff requests against resolved
|
||||
components with these, not against the canonical ``name``.
|
||||
"""
|
||||
return _node_key(library.name, library.version, library.repository)[0]
|
||||
|
||||
|
||||
def convert_libraries(
|
||||
libraries: list[Library], backend: LibraryBackend
|
||||
) -> list[ConvertedLibrary]:
|
||||
|
||||
Reference in New Issue
Block a user