Skip to content

chore: raise fastapi to 0.141.1 and move tests to httpx2 - #82

Merged
gordonmurray merged 1 commit into
lance-format:mainfrom
gordonmurray:chore/bump-fastapi
Aug 5, 2026
Merged

chore: raise fastapi to 0.141.1 and move tests to httpx2#82
gordonmurray merged 1 commit into
lance-format:mainfrom
gordonmurray:chore/bump-fastapi

Conversation

@gordonmurray

Copy link
Copy Markdown
Collaborator

Raises fastapi from 0.104.1 to 0.141.1 and moves the test dependency from httpx to httpx2.

fastapi 0.104.1 brought starlette 0.27.0. Its TestClient passed both app= and transport= to httpx.Client. The app= argument is redundant, because the transport already wraps the application, and httpx deprecated it. Every test run printed a warning, and the test job had to pin httpx<0.28, the release that removed the argument.

Current starlette asks for httpx2 rather than httpx, and warns on every run when it finds the older package. The test dependency moves with it, in the workflow and in the README.

backend/pyproject.toml carried its own fastapi==0.104.1 pin, separate from backend/requirements.txt. It is raised to match, so pip install . and the container image agree.

Tested against all seven lancedb versions in the matrix: 33 tests pass on each, with no warnings.

Fixes #81

fastapi 0.104.1 brought starlette 0.27, whose TestClient passed both app=
and transport= to httpx.Client. The app= argument is redundant and httpx
deprecated it, so every test run printed a warning and the test job had to
pin httpx below 0.28, the release that removed the argument.

Current starlette asks for httpx2 instead of httpx and warns when it finds
the older package, so the test dependency moves with it.

backend/pyproject.toml carried its own fastapi pin and is raised to match,
so pip install . and the container image agree.

All seven lancedb versions pass, 33 tests each, no warnings.
@gordonmurray
gordonmurray merged commit a739fb4 into lance-format:main Aug 5, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bump FastAPI to clear the httpx app= deprecation warning

1 participant