Title: [v1.x] build: restrict httpx to <1.0.0 by maxisbey · Pull Request #2559 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: [v1.x] build: restrict httpx to <1.0.0 by maxisbey · Pull Request #2559 · modelcontextprotocol/python-sdk
X Title: [v1.x] build: restrict httpx to <1.0.0 by maxisbey · Pull Request #2559 · modelcontextprotocol/python-sdk
Description: Backport of #2345 to the v1.x release branch. Closes #2543.
Motivation and Context
httpx publishes 1.0.dev1/1.0.dev2/1.0.dev3 pre-releases on PyPI. These are a ground-up rewrite with an incompatible public API — no AsyncClient, Auth, Timeout, BasicAuth, codes, or the TransportError/StreamError exception hierarchy.
The current v1.x constraint is unbounded (httpx>=0.27.1), so when a downstream package is installed with pip install --pre (common for alpha/beta libraries built on mcp), pip resolves httpx 1.0.dev3 and import mcp fails immediately:
File ".../httpx_sse/_exceptions.py", line 4, in
Open Graph Description: Backport of #2345 to the v1.x release branch. Closes #2543. Motivation and Context httpx publishes 1.0.dev1/1.0.dev2/1.0.dev3 pre-releases on PyPI. These are a ground-up rewrite with an incompatibl...
X Description: Backport of #2345 to the v1.x release branch. Closes #2543. Motivation and Context httpx publishes 1.0.dev1/1.0.dev2/1.0.dev3 pre-releases on PyPI. These are a ground-up rewrite with an incompatibl...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2559
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:3f228159-c04a-78f0-4281-f7c027876995 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 91EC:2A4BED:AF70E2:FBDD7F:6A59FADC |
| html-safe-nonce | e79525400c767fb18168090b4ba9574ba9134e91d4575f65a3831fa49a88ba8e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MUVDOjJBNEJFRDpBRjcwRTI6RkJERDdGOjZBNTlGQURDIiwidmlzaXRvcl9pZCI6IjQzMjE0MTY3NDIwMzA0MDkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e8df0c911a6f5509ee74c43699eda83f7d4385c5a21b68d2e4066d1eb7a34839 |
| hovercard-subject-tag | pull_request:3649798550 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2559/files |
| twitter:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/224885523?s=400&v=4 |
| og:image:alt | Backport of #2345 to the v1.x release branch. Closes #2543. Motivation and Context httpx publishes 1.0.dev1/1.0.dev2/1.0.dev3 pre-releases on PyPI. These are a ground-up rewrite with an incompatibl... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4d3f961cfc83a4348ee5be7691cf4ae3515aab3ef5200c13a7e41b048125fb61 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ac4d28603af300ac851b62521abb878ab5d3319a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width