Strip dev suffixes from version for compatibility check

This commit is contained in:
Matthew Honnibal 2017-11-08 18:40:21 +01:00
parent 51639214a1
commit de45702bbe

View File

@ -64,6 +64,7 @@ def get_json(url, desc):
def get_compatibility(): def get_compatibility():
version = about.__version__ version = about.__version__
version = version.rsplit('.dev', 1)[0]
comp_table = get_json(about.__compatibility__, "compatibility table") comp_table = get_json(about.__compatibility__, "compatibility table")
comp = comp_table['spacy'] comp = comp_table['spacy']
if version not in comp: if version not in comp: