Skip to content

Commit 628145b

Browse files
author
Erick Friis
authored
infra: fix api build (#29274)
1 parent 97a5bc7 commit 628145b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/scripts/prep_api_docs_build.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ def main():
8282
and p["repo"] != "langchain-ai/langchain"
8383
])
8484

85+
# Delete ones without a pyproject.toml
86+
for partner in Path("langchain/libs/partners").iterdir():
87+
if partner.is_dir() and not (partner / "pyproject.toml").exists():
88+
print(f"Removing {partner} as it does not have a pyproject.toml")
89+
shutil.rmtree(partner)
90+
8591
print("Library sync completed successfully!")
8692

8793
except Exception as e:

0 commit comments

Comments
 (0)