From 91bc011a09ae6e1713e036ec16d0551ae088e99f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Cano=20Rodr=C3=ADguez?= Date: Fri, 28 Jul 2023 10:28:47 +0200 Subject: [PATCH] Fix deprecated Kedro commands after metadata and tests moved MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Juan Luis Cano Rodríguez --- kedro/framework/cli/project.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/kedro/framework/cli/project.py b/kedro/framework/cli/project.py index e9286e71ad..02ff5db1af 100644 --- a/kedro/framework/cli/project.py +++ b/kedro/framework/cli/project.py @@ -84,7 +84,8 @@ def ipython(metadata: ProjectMetadata, env, args, **kwargs): # noqa: unused-arg @click.pass_obj # this will pass the metadata as first argument def package(metadata: ProjectMetadata): """Package the project as a Python wheel.""" - source_path = metadata.source_dir + # TODO: Detect whether metadata is under project_path or source_path + project_path = metadata.project_path call( [ sys.executable, @@ -92,9 +93,9 @@ def package(metadata: ProjectMetadata): "build", "--wheel", "--outdir", - "../dist", + "dist", ], - cwd=str(source_path), + cwd=str(project_path), ) directory = (