Skip to content

Commit

Permalink
🐛 check if the version of Snakemake installed is greater than or equa…
Browse files Browse the repository at this point in the history
…l to the minimum version
  • Loading branch information
Wytamma committed Apr 22, 2024
1 parent 2e6ff84 commit ccd446e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion snk/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,11 +643,13 @@ def check_for_snakemake_min_version(self, workflow_path: Path):
min_version = match.group(1).strip().strip('"').strip("'")
break
if min_version:
# check if the version of Snakemake installed is greater than or equal to the minimum version
from packaging import version
from snakemake.common import __version__
if version.parse(__version__) >= version.parse(min_version):
return None
return f">={min_version}"
return f">={min_version}"
return None

def validate_Snakemake_repo(self, repo: Repo):
"""
Expand Down

0 comments on commit ccd446e

Please sign in to comment.