mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
Do not claim that library.properties packages is compatible with any dev-platform if "architectures" field is not defined
This commit is contained in:
@ -479,14 +479,13 @@ class LibraryPropertiesManifestParser(BaseManifestParser):
|
||||
homepage=homepage,
|
||||
repository=repository or None,
|
||||
description=self._parse_description(data),
|
||||
platforms=self._parse_platforms(data) or ["*"],
|
||||
platforms=self._parse_platforms(data) or None,
|
||||
keywords=self._parse_keywords(data) or None,
|
||||
export=self._parse_export(),
|
||||
)
|
||||
)
|
||||
if "includes" in data:
|
||||
data["headers"] = self.str_to_list(data["includes"], sep=",", unique=True)
|
||||
del data["includes"]
|
||||
if "author" in data:
|
||||
data["authors"] = self._parse_authors(data)
|
||||
for key in ("author", "maintainer"):
|
||||
|
@ -199,10 +199,10 @@ def test_install_from_registry(isolated_pio_core, tmpdir_factory):
|
||||
# Libraries
|
||||
lm = LibraryPackageManager(str(tmpdir_factory.mktemp("lib-storage")))
|
||||
# library with dependencies
|
||||
lm.install("AsyncMqttClient-esphome @ 0.8.4", silent=True)
|
||||
lm.install("AsyncMqttClient-esphome @ 0.8.6", silent=True)
|
||||
assert len(lm.get_installed()) == 3
|
||||
pkg = lm.get_package("AsyncTCP-esphome")
|
||||
assert pkg.metadata.spec.owner == "ottowinter"
|
||||
assert pkg.metadata.spec.owner == "esphome"
|
||||
assert not lm.get_package("non-existing-package")
|
||||
# mbed library
|
||||
assert lm.install("wolfSSL", silent=True)
|
||||
|
@ -80,7 +80,6 @@ def test_library_json_parser():
|
||||
"keywords": ["sound", "audio", "music", "SD", "card", "playback"],
|
||||
"headers": ["include 1.h", "include Space.hpp"],
|
||||
"frameworks": "arduino",
|
||||
"platforms": "atmelavr",
|
||||
"export": {
|
||||
"exclude": "audio_samples"
|
||||
},
|
||||
@ -100,7 +99,6 @@ def test_library_json_parser():
|
||||
"headers": ["include 1.h", "include Space.hpp"],
|
||||
"frameworks": ["arduino"],
|
||||
"export": {"exclude": ["audio_samples"]},
|
||||
"platforms": ["atmelavr"],
|
||||
"dependencies": [
|
||||
{"name": "deps1", "version": "1.0.0"},
|
||||
{
|
||||
@ -221,7 +219,6 @@ includes=Arduino.h, Arduino Space.hpp
|
||||
"version": "1.2.3",
|
||||
"description": "This is Arduino library",
|
||||
"sentence": "This is Arduino library",
|
||||
"platforms": ["*"],
|
||||
"frameworks": ["arduino"],
|
||||
"export": {
|
||||
"exclude": ["extras", "docs", "tests", "test", "*.doxyfile", "*.pdf"]
|
||||
@ -233,6 +230,7 @@ includes=Arduino.h, Arduino Space.hpp
|
||||
"category": "Signal Input/Output",
|
||||
"keywords": ["signal", "input", "output"],
|
||||
"headers": ["Arduino.h", "Arduino Space.hpp"],
|
||||
"includes": "Arduino.h, Arduino Space.hpp",
|
||||
"customField": "Custom Value",
|
||||
"depends": "First Library (=2.0.0), Second Library (>=1.2.0), Third",
|
||||
"dependencies": [
|
||||
|
Reference in New Issue
Block a user