From 89f5b8abb34d081f48399e86956db2c512b00d3c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 23 Aug 2020 21:14:44 +0200 Subject: [PATCH] Fix project push --- spacy/cli/project/push.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spacy/cli/project/push.py b/spacy/cli/project/push.py index 0b070c9d8..e09ee6e1a 100644 --- a/spacy/cli/project/push.py +++ b/spacy/cli/project/push.py @@ -34,6 +34,9 @@ def project_push(project_dir: Path, remote: str): remote = config["remotes"][remote] storage = RemoteStorage(project_dir, remote) for cmd in config.get("commands", []): + deps = [project_dir / dep for dep in cmd.get("deps", [])] + if any(not dep.exists() for dep in deps): + continue cmd_hash = get_command_hash( "", "", [project_dir / dep for dep in cmd.get("deps", [])], cmd["script"] )