mirror of
https://github.com/hwchase17/langchain.git
synced 2025-04-27 03:31:51 +00:00
infra: support third-party integration packages in API ref build (#31021)
This commit is contained in:
parent
a82d987f09
commit
04a899ebe3
4
.github/scripts/prep_api_docs_build.py
vendored
4
.github/scripts/prep_api_docs_build.py
vendored
@ -69,7 +69,7 @@ def main():
|
|||||||
clean_target_directories([
|
clean_target_directories([
|
||||||
p
|
p
|
||||||
for p in package_yaml["packages"]
|
for p in package_yaml["packages"]
|
||||||
if p["repo"].startswith("langchain-ai/")
|
if (p["repo"].startswith("langchain-ai/") or p.get("include_in_api_ref"))
|
||||||
and p["repo"] != "langchain-ai/langchain"
|
and p["repo"] != "langchain-ai/langchain"
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -78,7 +78,7 @@ def main():
|
|||||||
p
|
p
|
||||||
for p in package_yaml["packages"]
|
for p in package_yaml["packages"]
|
||||||
if not p.get("disabled", False)
|
if not p.get("disabled", False)
|
||||||
and p["repo"].startswith("langchain-ai/")
|
and (p["repo"].startswith("langchain-ai/") or p.get("include_in_api_ref"))
|
||||||
and p["repo"] != "langchain-ai/langchain"
|
and p["repo"] != "langchain-ai/langchain"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
23
.github/workflows/api_doc_build.yml
vendored
23
.github/workflows/api_doc_build.yml
vendored
@ -26,7 +26,20 @@ jobs:
|
|||||||
id: get-unsorted-repos
|
id: get-unsorted-repos
|
||||||
uses: mikefarah/yq@master
|
uses: mikefarah/yq@master
|
||||||
with:
|
with:
|
||||||
cmd: yq '.packages[].repo' langchain/libs/packages.yml
|
cmd: |
|
||||||
|
yq '
|
||||||
|
.packages[]
|
||||||
|
| select(
|
||||||
|
(
|
||||||
|
(.repo | test("^langchain-ai/"))
|
||||||
|
and
|
||||||
|
(.repo != "langchain-ai/langchain")
|
||||||
|
)
|
||||||
|
or
|
||||||
|
(.include_in_api_ref // false)
|
||||||
|
)
|
||||||
|
| .repo
|
||||||
|
' langchain/libs/packages.yml
|
||||||
|
|
||||||
- name: Parse YAML and checkout repos
|
- name: Parse YAML and checkout repos
|
||||||
env:
|
env:
|
||||||
@ -38,11 +51,9 @@ jobs:
|
|||||||
|
|
||||||
# Checkout each unique repository that is in langchain-ai org
|
# Checkout each unique repository that is in langchain-ai org
|
||||||
for repo in $REPOS; do
|
for repo in $REPOS; do
|
||||||
if [[ "$repo" != "langchain-ai/langchain" && "$repo" == langchain-ai/* ]]; then
|
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
||||||
REPO_NAME=$(echo $repo | cut -d'/' -f2)
|
echo "Checking out $repo to $REPO_NAME"
|
||||||
echo "Checking out $repo to $REPO_NAME"
|
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
||||||
git clone --depth 1 https://github.com/$repo.git $REPO_NAME
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
|
|
||||||
- name: Setup python ${{ env.PYTHON_VERSION }}
|
- name: Setup python ${{ env.PYTHON_VERSION }}
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
httpx
|
httpx
|
||||||
grpcio
|
grpcio
|
||||||
|
aiohttp<3.11
|
||||||
|
protobuf<3.21
|
||||||
|
@ -549,6 +549,7 @@ packages:
|
|||||||
- name: langchain-tavily
|
- name: langchain-tavily
|
||||||
path: .
|
path: .
|
||||||
repo: tavily-ai/langchain-tavily
|
repo: tavily-ai/langchain-tavily
|
||||||
|
include_in_api_ref: true
|
||||||
downloads: 13796
|
downloads: 13796
|
||||||
downloads_updated_at: '2025-04-22T15:25:24.644345+00:00'
|
downloads_updated_at: '2025-04-22T15:25:24.644345+00:00'
|
||||||
- name: langchain-zotero-retriever
|
- name: langchain-zotero-retriever
|
||||||
|
Loading…
Reference in New Issue
Block a user