Include version constraint in parent package requirement

This commit is contained in:
Matthew Honnibal 2024-09-29 14:22:21 +02:00
parent 3b165a8716
commit 6255cb985f

View File

@ -370,7 +370,7 @@ def get_meta(
reqs = get_third_party_dependencies(nlp.config, exclude=existing_reqs) reqs = get_third_party_dependencies(nlp.config, exclude=existing_reqs)
meta["requirements"].extend(reqs) meta["requirements"].extend(reqs)
if require_parent and about.__title__ not in meta["requirements"]: if require_parent and about.__title__ not in meta["requirements"]:
meta["requirements"].append(about.__title__) meta["requirements"].append(about.__title__ + meta["spacy_version"])
return meta return meta