Skip to content

Commit d562055

Browse files
cpsievertgadenbuie
andauthored
Fix CI (#1830)
Co-authored-by: Garrick Aden-Buie <[email protected]>
1 parent 230940c commit d562055

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ test = [
7575
"seaborn",
7676
"plotnine",
7777
"plotly",
78+
"anywidget",
7879
"duckdb",
7980
"holoviews",
8081
"bokeh",
@@ -116,6 +117,11 @@ dev = [
116117
"anthropic",
117118
"google-generativeai;python_version>='3.9'",
118119
"langchain_core",
120+
# langsmith (needed for langchain_core) versions >= 0.3
121+
# (up to at least 0.3.2 as of 2025-01-29)
122+
# cause an `argparse.ArgumentError` when running `pytest`.
123+
# https://github.com/posit-dev/py-shiny/issues/1829
124+
"langsmith<0.3",
119125
"openai",
120126
"ollama",
121127
"tokenizers",

shiny/_autoreload.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,6 @@ async def process_request(
251251
status_code=http.HTTPStatus.MOVED_PERMANENTLY,
252252
reason_phrase="Moved Permanently",
253253
headers=websockets.Headers(Location=app_url),
254-
body=None,
255254
)
256255
else:
257256
return None
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
pandas
22
plotly
3+
anywidget
34
htmltools
45
git+https://github.com/posit-dev/py-shinywidgets.git#egg=shinywidgets
56

tests/pytest/test_chat.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def test_google_normalization():
206206
if sys.version_info < (3, 9):
207207
return
208208

209-
from google.generativeai import ( # pyright: ignore[reportMissingTypeStubs]
209+
from google.generativeai.generative_models import ( # pyright: ignore[reportMissingTypeStubs]
210210
GenerativeModel,
211211
)
212212

@@ -382,7 +382,7 @@ def test_as_google_message():
382382
if sys.version_info < (3, 9):
383383
return
384384

385-
from google.generativeai import ( # pyright: ignore[reportMissingTypeStubs]
385+
from google.generativeai.generative_models import ( # pyright: ignore[reportMissingTypeStubs]
386386
GenerativeModel,
387387
)
388388

@@ -403,7 +403,9 @@ def test_as_google_message():
403403

404404

405405
def test_as_langchain_message():
406-
from langchain_core.language_models.base import LanguageModelInput
406+
from langchain_core.language_models.base import (
407+
LanguageModelInput,
408+
)
407409
from langchain_core.language_models.base import (
408410
Sequence as LangchainSequence, # pyright: ignore[reportPrivateImportUsage]
409411
)

0 commit comments

Comments
 (0)