Skip to content

Commit 30ccd99

Browse files
committed
[v1.x] build: restrict httpx to <1.0.0
Backport of #2345 to the v1.x release branch. httpx publishes 1.0.devN pre-releases on PyPI which are a ground-up rewrite with an incompatible API (no AsyncClient, Auth, Timeout, or TransportError). With the previous unbounded `httpx>=0.27.1` constraint, `pip install --pre` of any package depending on mcp resolves httpx 1.0.dev3, which makes `import mcp` fail at `httpx_sse._exceptions` with: AttributeError: module 'httpx' has no attribute 'TransportError' Pin to `<1.0.0` until we explicitly add httpx 1.x support. Reported-by: SyncTekLLC Github-Issue: #2543
1 parent 73d458b commit 30ccd99

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ classifiers = [
2323
]
2424
dependencies = [
2525
"anyio>=4.5",
26-
"httpx>=0.27.1",
26+
"httpx>=0.27.1,<1.0.0",
2727
"httpx-sse>=0.4",
2828
"pydantic>=2.11.0,<3.0.0",
2929
"starlette>=0.27",

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)