From 0db39ccfbd853f4ba9863aeffbc2976ee8b72f87 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Wed, 26 Aug 2020 06:40:22 +0300 Subject: [PATCH] Automatically accept PIO. Core 4.0 compatible dev-platforms --- platformio/platform/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio/platform/base.py b/platformio/platform/base.py index ffafd61c..d5bcbcc2 100644 --- a/platformio/platform/base.py +++ b/platformio/platform/base.py @@ -114,8 +114,8 @@ class PlatformBase( # pylint: disable=too-many-instance-attributes,too-many-pub core_spec = semantic_version.SimpleSpec(self.engines["platformio"]) if self.CORE_SEMVER in core_spec: return True - # PIO Core 4 is compatible with dev-platforms for PIO Core 2.0 & 3.0 - if any(semantic_version.Version.coerce(str(v)) in core_spec for v in (2, 3)): + # PIO Core 4 is compatible with dev-platforms for PIO Core 2.0, 3.0, 4.0 + if any(semantic_version.Version.coerce(str(v)) in core_spec for v in (2, 3, 4)): return True raise IncompatiblePlatform(self.name, str(self.CORE_SEMVER), str(core_spec))