From 8cc2ca503ffb2001538ff9d992f9e2cd2ea44b55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Wed, 12 Jul 2023 16:41:44 +0200 Subject: [PATCH] Do not replace kedro plugins in e2e tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Luis Cano Rodríguez --- features/steps/cli_steps.py | 3 ++- features/windows_reqs.txt | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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