From 215a878316e5bb81e68185dfc01e399a19fc224f Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Fri, 2 Jun 2017 16:01:58 +0100 Subject: [PATCH] Coerce versions so that 1.X matches 1.X.0 --- lewis/core/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lewis/core/utils.py b/lewis/core/utils.py index eaabee53..d065bf2a 100644 --- a/lewis/core/utils.py +++ b/lewis/core/utils.py @@ -374,6 +374,6 @@ def is_compatible_with_framework(version): if version is None: return None - lewis_version = Version(__version__) + lewis_version = Version.coerce(__version__) - return lewis_version == Version(''.join(version.split())) + return lewis_version == Version.coerce(version.strip())