Skip to content

Commit

Permalink
Accept pre-release versions of Sparv when checking plugin compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinHammarstedt committed Nov 29, 2023
1 parent 123c0d5 commit 0bb3982
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sparv/core/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 0bb3982

Please sign in to comment.