From 9d60539d0f313feb9a5f606b3f634173a6c90540 Mon Sep 17 00:00:00 2001 From: Khalil Estell Date: Mon, 27 Nov 2023 19:41:52 -0800 Subject: [PATCH] :arrow_up: 2.0.2 --- conanfile.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/conanfile.py b/conanfile.py index cb56710..6ff351c 100644 --- a/conanfile.py +++ b/conanfile.py @@ -25,7 +25,7 @@ class libhal_mock_conan(ConanFile): name = "libhal-mock" - version = "2.0.1" + version = "2.0.2" license = "Apache-2.0" url = "https://github.com/conan-io/conan-center-index" homepage = "https://libhal.github.io/libhal-mock" @@ -53,20 +53,6 @@ def validate(self): if self.settings.get_safe("compiler.cppstd"): check_min_cppstd(self, self._min_cppstd) - def lazy_lt_semver(v1, v2): - lv1 = [int(v) for v in v1.split(".")] - lv2 = [int(v) for v in v2.split(".")] - min_length = min(len(lv1), len(lv2)) - return lv1[:min_length] < lv2[:min_length] - - compiler = str(self.settings.compiler) - version = str(self.settings.compiler.version) - minimum_version = self._compilers_minimum_version.get(compiler, False) - - if minimum_version and lazy_lt_semver(version, minimum_version): - raise ConanInvalidConfiguration( - f"{self.name} {self.version} requires C++{self._min_cppstd}, which your compiler ({compiler}-{version}) does not support") - def build_requirements(self): self.test_requires("boost-ext-ut/1.1.9")