mirror of https://github.com/explosion/spaCy.git
Strip dev suffixes from version for compatibility check
This commit is contained in:
parent
51639214a1
commit
de45702bbe
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue