Temporary disable checking for PlatformIO Core engine (allow PIO Core 3 dev/platforms for PIO Core 4)

This commit is contained in:
Ivan Kravets
2019-01-11 14:11:54 +02:00
parent 2b467f3fee
commit c7949ecd07
2 changed files with 9 additions and 9 deletions

View File

@ -99,10 +99,10 @@ class PkgRepoMixin(object):
for v in versions:
if not self.is_system_compatible(v.get("system")):
continue
if "platformio" in v.get("engines", {}):
if PkgRepoMixin.PIO_VERSION not in self.parse_semver_spec(
v['engines']['platformio'], raise_exception=True):
continue
# if "platformio" in v.get("engines", {}):
# if PkgRepoMixin.PIO_VERSION not in self.parse_semver_spec(
# v['engines']['platformio'], raise_exception=True):
# continue
specver = semantic_version.Version(v['version'])
if reqspec and specver not in reqspec:
continue

View File

@ -474,11 +474,11 @@ class PlatformBase( # pylint: disable=too-many-public-methods
self.silent = False
self.verbose = False
if self.engines and "platformio" in self.engines:
if self.PIO_VERSION not in semantic_version.Spec(
self.engines['platformio']):
raise exception.IncompatiblePlatform(self.name,
str(self.PIO_VERSION))
# if self.engines and "platformio" in self.engines:
# if self.PIO_VERSION not in semantic_version.Spec(
# self.engines['platformio']):
# raise exception.IncompatiblePlatform(self.name,
# str(self.PIO_VERSION))
@property
def name(self):