Skip to content

Commit

Permalink
Fix deprecated Kedro commands after metadata and tests moved
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Luis Cano Rodríguez <juan_luis_cano@mckinsey.com>
  • Loading branch information
astrojuanlu committed Sep 25, 2023
1 parent 5c62481 commit 09f3498
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions kedro/framework/cli/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,18 @@ 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,
"-m",
"build",
"--wheel",
"--outdir",
"../dist",
"dist",
],
cwd=str(source_path),
cwd=str(project_path),
)

directory = (
Expand Down

0 comments on commit 09f3498

Please sign in to comment.