From 2df3a1427cbdcee3639bdd767e9fb22462965db6 Mon Sep 17 00:00:00 2001 From: JonSolow <45522044+JonSolow@users.noreply.github.com> Date: Fri, 12 Jul 2024 15:31:32 -0400 Subject: [PATCH] Replace distutils.dir_util.copy_tree with shutil.copytree --- sdk/python/feast/repo_operations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/python/feast/repo_operations.py b/sdk/python/feast/repo_operations.py index 05a7d05e235..866b5b9015a 100644 --- a/sdk/python/feast/repo_operations.py +++ b/sdk/python/feast/repo_operations.py @@ -384,7 +384,7 @@ def cli_check_repo(repo_path: Path, fs_yaml_file: Path): def init_repo(repo_name: str, template: str): import os - from distutils.dir_util import copy_tree + from shutil import copytree from pathlib import Path from colorama import Fore, Style @@ -412,7 +412,7 @@ def init_repo(repo_name: str, template: str): template_path = str(Path(Path(__file__).parent / "templates" / template).absolute()) if not os.path.exists(template_path): raise IOError(f"Could not find template {template}") - copy_tree(template_path, str(repo_path)) + copytree(template_path, str(repo_path)) # Seed the repository bootstrap_path = repo_path / "bootstrap.py"