mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-15 10:42:34 +03:00
Strip out .dev versions in spacy validate [ci skip]
This commit is contained in:
parent
a611b32fbf
commit
226db621d0
|
@ -29,10 +29,12 @@ def validate():
|
||||||
)
|
)
|
||||||
msg.good("Loaded compatibility table")
|
msg.good("Loaded compatibility table")
|
||||||
compat = r.json()["spacy"]
|
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:
|
if not current_compat:
|
||||||
msg.fail(
|
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__,
|
about.__compatibility__,
|
||||||
exits=1,
|
exits=1,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user