Skip to content

Commit

Permalink
fix task
Browse files Browse the repository at this point in the history
  • Loading branch information
gsheni committed May 1, 2024
1 parent 5111111 commit 0e550c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import sys
from pathlib import Path

import pkg_resources
from packaging.version import Version
import tomli
from invoke import task
from packaging.requirements import Requirement
Expand Down Expand Up @@ -56,8 +56,8 @@ def _validate_python_version(line):
version_number = python_version.split(comparison)[-1].replace("'", '')
comparison_function = COMPARISONS[comparison]
is_valid = is_valid and comparison_function(
pkg_resources.parse_version(platform.python_version()),
pkg_resources.parse_version(version_number),
Version(platform.python_version()),
Version(version_number),
)

return is_valid
Expand Down

0 comments on commit 0e550c0

Please sign in to comment.