Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install httpx without pulling anyio, trio and socks #3181

Closed
tbarbugli opened this issue Apr 30, 2024 · 1 comment
Closed

Install httpx without pulling anyio, trio and socks #3181

tbarbugli opened this issue Apr 30, 2024 · 1 comment

Comments

@tbarbugli
Copy link

I have these dependencies installed with Poetry

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0.0"
httpx = "^0.27.0"

This adds additional dependencies such as anyio, trio and socks that I am not using in the project. Unfortunately these dependencies come from httpx's httpcore dependency.

Is there a way to only get httpcore with no additional async libs?

@tomchristie
Copy link
Member

tomchristie commented Apr 30, 2024

httpx doesn't pull in trio or socks by default. (Perhaps take a closer look into why these are being included in your Python environment?)

It does currently pull in anyio and sniffio by default, and we're working on removing this. #2858

@encode encode locked and limited conversation to collaborators Apr 30, 2024
@tomchristie tomchristie converted this issue into discussion #3182 Apr 30, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants