diff --git a/features/steps/cli_steps.py b/features/steps/cli_steps.py index 8a8c2875a6..f4f6e887fd 100644 --- a/features/steps/cli_steps.py +++ b/features/steps/cli_steps.py @@ -11,6 +11,7 @@ import toml import yaml from behave import given, then, when +from packaging.requirements import Requirement import kedro from features.steps import util @@ -414,7 +415,7 @@ def update_kedro_req(context: behave.runner.Context): old_reqs = reqs_path.read_text().splitlines() new_reqs = [] for req in old_reqs: - if req.startswith("kedro"): + if req.startswith("kedro") and Requirement(req).name.lower() == "kedro": # Do not include kedro as it's preinstalled in the environment pass else: diff --git a/features/windows_reqs.txt b/features/windows_reqs.txt index 5a5fbe8649..9d9c461b56 100644 --- a/features/windows_reqs.txt +++ b/features/windows_reqs.txt @@ -7,3 +7,4 @@ psutil~=5.8 requests~=2.20 toml~=0.10.1 PyYAML>=4.2, <7.0 +packaging>=20.0