Skip to content

Commit

Permalink
replace pkg_resources for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Apr 25, 2024
1 parent de12463 commit 606494d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions snakemake/utils.py
Expand Up @@ -468,10 +468,10 @@ def read_job_properties(

def min_version(version):
"""Require minimum snakemake version, raise workflow error if not met."""
import pkg_resources
from packaging.version import parse
from snakemake.common import __version__

if pkg_resources.parse_version(__version__) < pkg_resources.parse_version(version):
if parse(__version__) < parse(version):
raise WorkflowError(
"Expecting Snakemake version {} or higher (you are currently using {}).".format(
version, __version__
Expand Down

0 comments on commit 606494d

Please sign in to comment.