From 226db621d05448605357562f8b1908906bc87821 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 17 Mar 2019 12:16:53 +0100 Subject: [PATCH] Strip out .dev versions in spacy validate [ci skip] --- spacy/cli/validate.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/spacy/cli/validate.py b/spacy/cli/validate.py index 20915caed..f608ccd7f 100644 --- a/spacy/cli/validate.py +++ b/spacy/cli/validate.py @@ -29,10 +29,12 @@ def validate(): ) msg.good("Loaded compatibility table") compat = r.json()["spacy"] - current_compat = compat.get(about.__version__) + version = about.__version__ + version = version.rsplit(".dev", 1)[0] + current_compat = compat.get(version) if not current_compat: msg.fail( - "Can't find spaCy v{} in compatibility table".format(about.__version__), + "Can't find spaCy v{} in compatibility table".format(version), about.__compatibility__, exits=1, )