Skip to content

Commit

Permalink
⬆️ 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalil Estell authored and kammce committed Nov 28, 2023
1 parent 38a4a1c commit 9d60539
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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")

Expand Down

0 comments on commit 9d60539

Please sign in to comment.