From 0bb39826a5a57da0b3e4966fabbc4a135c1180e2 Mon Sep 17 00:00:00 2001 From: Martin Hammarstedt Date: Wed, 29 Nov 2023 17:13:36 +0100 Subject: [PATCH] Accept pre-release versions of Sparv when checking plugin compatibility --- sparv/core/registry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sparv/core/registry.py b/sparv/core/registry.py index f4b24a55..b8699475 100644 --- a/sparv/core/registry.py +++ b/sparv/core/registry.py @@ -154,6 +154,7 @@ def find_modules(no_import: bool = False, find_custom: bool = False) -> list: for requirement in entry_point.dist.requires: req = Requirement(requirement) if req.name == "sparv-pipeline": + req.specifier.prereleases = True # Accept pre-release versions of Sparv if not sparv_version in req.specifier: console.print( f"[red]:warning-emoji: The plugin {entry_point.name} ({entry_point.dist.name}) could not "