mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-23 15:19:33 +00:00
infra: fix api build (#29274)
This commit is contained in:
parent
97a5bc7fc7
commit
628145b172
6
.github/scripts/prep_api_docs_build.py
vendored
6
.github/scripts/prep_api_docs_build.py
vendored
@ -82,6 +82,12 @@ def main():
|
|||||||
and p["repo"] != "langchain-ai/langchain"
|
and p["repo"] != "langchain-ai/langchain"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# Delete ones without a pyproject.toml
|
||||||
|
for partner in Path("langchain/libs/partners").iterdir():
|
||||||
|
if partner.is_dir() and not (partner / "pyproject.toml").exists():
|
||||||
|
print(f"Removing {partner} as it does not have a pyproject.toml")
|
||||||
|
shutil.rmtree(partner)
|
||||||
|
|
||||||
print("Library sync completed successfully!")
|
print("Library sync completed successfully!")
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user