google-vertexai[patch]: integration test fix, release 0.0.5 (#17258)

pull/17252/head^2
Erick Friis 8 months ago committed by GitHub
parent 98176ac982
commit d77bb7b4e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -7,7 +7,7 @@ from typing import Any, Callable, Dict, Optional, Union
import google.api_core
import proto # type: ignore[import-untyped]
from google.api_core.gapic_v1.client_info import ClientInfo
from google.cloud import storage
from google.cloud import storage # type: ignore[attr-defined]
from langchain_core.callbacks import (
AsyncCallbackManagerForLLMRun,
CallbackManagerForLLMRun,

File diff suppressed because it is too large Load Diff

@ -1,6 +1,6 @@
[tool.poetry]
name = "langchain-google-vertexai"
version = "0.0.4"
version = "0.0.5"
description = "An integration package connecting GoogleVertexAI and LangChain"
authors = []
readme = "README.md"
@ -24,11 +24,11 @@ optional = true
[tool.poetry.group.test.dependencies]
pytest = "^7.3.0"
freezegun = "^1.2.2"
pytest-mock = "^3.10.0"
pytest-mock = "^3.10.0"
syrupy = "^4.0.2"
pytest-watcher = "^0.3.4"
pytest-asyncio = "^0.21.1"
langchain-core = {path = "../../core", develop = true}
langchain-core = { path = "../../core", develop = true }
types-requests = "^2.31.0.20231231"
types-protobuf = "^4.24.0.4"
@ -42,8 +42,9 @@ codespell = "^2.2.0"
optional = true
[tool.poetry.group.test_integration.dependencies]
langchain = {path = "../../langchain"}
numexpr = {version = "^2.8.8", python = ">=3.9,<4.0"}
langchain = { path = "../../langchain" }
langchain-community = { path = "../../community" }
numexpr = { version = "^2.8.8", python = ">=3.9,<4.0" }
google-api-python-client = "^2.114.0"
[tool.poetry.group.lint]
@ -54,20 +55,20 @@ ruff = "^0.1.5"
[tool.poetry.group.typing.dependencies]
mypy = "^1"
langchain-core = {path = "../../core", develop = true}
langchain-core = { path = "../../core", develop = true }
types-google-cloud-ndb = "^2.2.0.20240106"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
langchain-core = {path = "../../core", develop = true}
langchain-core = { path = "../../core", develop = true }
[tool.ruff]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"E", # pycodestyle
"F", # pyflakes
"I", # isort
]
[tool.mypy]
@ -83,9 +84,7 @@ warn_unused_configs = true
warn_unused_ignores = true
[tool.coverage.run]
omit = [
"tests/*",
]
omit = ["tests/*"]
[build-system]
requires = ["poetry-core>=1.0.0"]

@ -88,7 +88,7 @@ def test_tools() -> None:
# use regex to find \d+\.\d+
just_numbers = re.findall(r"\d+\.\d+", response["output"])[0]
assert round(float(just_numbers), 3) == 2.161
assert round(float(just_numbers), 2) == 2.16
def test_stream() -> None:

Loading…
Cancel
Save