fix(docs): local API reference documentation build (#32271)

ensure all relevant packages are correctly processed - cli wasn't
included, also fix ValueError
This commit is contained in:
Mason Daugherty
2025-07-28 00:50:20 -04:00
committed by GitHub
parent ed682ae62d
commit 12c0e9b7d8
9 changed files with 19 additions and 37 deletions

View File

@@ -67,12 +67,11 @@ def serve(
] = None,
) -> None:
"""Start the LangServe app, whether it's a template or an app."""
# see if is a template
try:
project_dir = get_package_root()
pyproject = project_dir / "pyproject.toml"
get_langserve_export(pyproject)
except KeyError:
except (KeyError, FileNotFoundError):
# not a template
app_namespace.serve(port=port, host=host)
else:

2
libs/cli/uv.lock generated
View File

@@ -408,7 +408,7 @@ wheels = [
[[package]]
name = "langchain"
version = "0.3.26"
version = "0.3.27"
source = { editable = "../langchain" }
dependencies = [
{ name = "async-timeout", marker = "python_full_version < '3.11'" },

View File

@@ -1,8 +1,3 @@
"""This is the langchain_chroma package.
It contains the Chroma class for handling various tasks.
"""
from langchain_chroma.vectorstores import Chroma
__all__ = [

View File

@@ -1,5 +1,3 @@
"""This package provides the Perplexity integration for LangChain."""
from langchain_perplexity.chat_models import ChatPerplexity
__all__ = ["ChatPerplexity"]

View File

@@ -1,5 +1,3 @@
"""This package provides the xAI integration for LangChain."""
from langchain_xai.chat_models import ChatXAI
__all__ = ["ChatXAI"]

View File

@@ -55,7 +55,7 @@ target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "I", "D", "UP", "S"]
ignore = [ "UP007", ]
ignore = [ "UP007", "D104", ]
[tool.coverage.run]
omit = ["tests/*"]
@@ -79,4 +79,4 @@ convention = "google"
"tests/**/*.py" = [
"S101", # Tests need assertions
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
]
]

View File

@@ -1,6 +1,6 @@
"""Base Test classes for standard testing.
To learn how to use these classes, see the
`Integration standard testing <https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/>`_
`integration standard testing <https://python.langchain.com/docs/contributing/how_to/integrations/standard_tests/>`__
guide.
"""