From 6255cb985f27e88461e5af3e4760ca6663d58bc0 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 29 Sep 2024 14:22:21 +0200 Subject: [PATCH] Include version constraint in parent package requirement --- spacy/cli/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/package.py b/spacy/cli/package.py index a18f4de03..837eb4118 100644 --- a/spacy/cli/package.py +++ b/spacy/cli/package.py @@ -370,7 +370,7 @@ def get_meta( reqs = get_third_party_dependencies(nlp.config, exclude=existing_reqs) meta["requirements"].extend(reqs) 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