Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions libs/community/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
authors = []

version = "3.0.0"
requires-python = ">=3.10.0,<3.13.0"
requires-python = ">=3.10.0,<3.14.0"
dependencies = [
"langchain-core>=1.0.0,<2.0.0",
"langchain-community>=0.4.0,<2.0.0",
Expand All @@ -31,12 +31,12 @@ Slack = "https://www.langchain.com/join-community"
Reddit = "https://www.reddit.com/r/LangChain/"

[project.optional-dependencies]
bigquery = ["google-cloud-bigquery>=3.21.0,<4.0.0"]
#bigquery = ["google-cloud-bigquery>=3.21.0,<4.0.0"]
calendar = ["google-auth>=2.36.0,<3.0.0", "google-auth-oauthlib>=1.2.0,<2.0.0"]
docai = [
"google-cloud-documentai>=2.26.0,<3.0.0",
"google-cloud-contentwarehouse>=0.7.7,<1.0.0",
"google-cloud-documentai-toolbox>=0.13.3a0,<1.0.0",
#"google-cloud-documentai-toolbox>=0.13.3a0,<1.0.0",
"gapic-google-longrunning>=0.11.2,<1.0.0",
]
drive = ["google-auth-httplib2>=0.2.0,<1.0.0", "google-auth-oauthlib>=1.2.0,<2.0.0"]
Expand All @@ -61,8 +61,8 @@ test = [
"pytest-retry>=1.7.0,<2.0.0",
"pytest-socket>=0.7.0,<1.0.0",
"google-cloud-documentai>=2.24.2,<3.0.0",
"google-cloud-documentai-toolbox>=0.13.3a0,<1.0.0; python_version<'3.13'",
"google-cloud-bigquery>=3.19.0,<4.0.0",
#"google-cloud-documentai-toolbox>=0.13.3a0,<1.0.0",
#"google-cloud-bigquery>=3.21.0,<4.0.0",
"google-cloud-discoveryengine>=0.11.14,<1.0.0",
"cloudpickle>=3.0.0,<4.0.0",
]
Expand All @@ -72,7 +72,7 @@ test_integration = [
]

lint = [
"ruff>=0.12.10,<1",
"ruff>=0.14.0,<1",
]

typing = [
Expand All @@ -92,7 +92,6 @@ dev = [
]

[tool.ruff]
target-version = "py39"
fix = true

[tool.ruff.format]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def store_bq_vectorstore(request: pytest.FixtureRequest) -> BigQueryVectorStore:
Example:
export PROJECT_ID=...
"""
from google.cloud import bigquery
from google.cloud import bigquery # type: ignore[attr-defined]

embedding_model = FakeEmbeddings(size=EMBEDDING_SIZE)
TestBigQueryVectorStore_bq_vectorstore.store_bq_vectorstore = BigQueryVectorStore(
Expand Down Expand Up @@ -68,7 +68,7 @@ def existing_store_bq_vectorstore(
Example:
export PROJECT_ID=...
"""
from google.cloud import bigquery
from google.cloud import bigquery # type: ignore[attr-defined]

embedding_model = FakeEmbeddings(size=EMBEDDING_SIZE)
TestBigQueryVectorStore_bq_vectorstore.existing_store_bq_vectorstore = (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def store_fs_vectorstore(request: pytest.FixtureRequest) -> VertexFSVectorStore:
Example:
export PROJECT_ID=...
"""
from google.cloud import bigquery
from google.cloud import bigquery # type: ignore[attr-defined]

embedding_model = FakeEmbeddings(size=EMBEDDING_SIZE)

Expand Down
3 changes: 3 additions & 0 deletions libs/community/tests/integration_tests/test_bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


@pytest.mark.extended
@pytest.mark.xfail(reason="TEMPORARY until dependency issues are resolved.")
def test_bigquery_loader_no_options() -> None:
loader = BigQueryLoader("SELECT 1 AS a, 2 AS b")
docs = loader.load()
Expand All @@ -14,6 +15,7 @@ def test_bigquery_loader_no_options() -> None:


@pytest.mark.extended
@pytest.mark.xfail(reason="TEMPORARY until dependency issues are resolved.")
def test_bigquery_loader_page_content_columns() -> None:
loader = BigQueryLoader(
"SELECT 1 AS a, 2 AS b UNION ALL SELECT 3 AS a, 4 AS b",
Expand All @@ -30,6 +32,7 @@ def test_bigquery_loader_page_content_columns() -> None:


@pytest.mark.extended
@pytest.mark.xfail(reason="TEMPORARY until dependency issues are resolved.")
def test_bigquery_loader_metadata_columns() -> None:
loader = BigQueryLoader(
"SELECT 1 AS a, 2 AS b",
Expand Down
1 change: 1 addition & 0 deletions libs/community/tests/integration_tests/test_docai.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@


@pytest.mark.extended
@pytest.mark.xfail(reason="TEMPORARY until dependency issues are resolved.")
def test_docai_layout_parser() -> None:
processor_name = os.environ["PROCESSOR_NAME"]
parser = DocAIParser(processor_name=processor_name, location="us")
Expand Down
Loading