From e221f9fc909b55c11a3e089745eea5059fd46689 Mon Sep 17 00:00:00 2001 From: Niels Bantilan Date: Fri, 8 Dec 2023 13:20:38 -0500 Subject: [PATCH] manually create flytekit/_version.py file in docs build (#4556) Signed-off-by: Niels Bantilan --- docs/_ext/import_projects.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/_ext/import_projects.py b/docs/_ext/import_projects.py index b4cb011012..8962c40855 100644 --- a/docs/_ext/import_projects.py +++ b/docs/_ext/import_projects.py @@ -33,6 +33,11 @@ class Project: def update_sys_path_for_flytekit(import_project_config: ImportProjectsConfig): + # create flytekit/_version.py file manually + with open(f"{import_project_config.flytekit_api_dir}/flytekit/_version.py", "w") as f: + f.write(f'__version__ = "dev"') + + # add flytekit to python path flytekit_dir = os.path.abspath(import_project_config.flytekit_api_dir) flytekit_src_dir = os.path.abspath(os.path.join(flytekit_dir, "flytekit"))