From c8bbf7452d37b584c9760bf5f6a895a3a4d36834 Mon Sep 17 00:00:00 2001 From: Liu An Date: Mon, 18 Aug 2025 12:04:16 +0800 Subject: [PATCH] Env: Update dependencies for proxy support (#9519) ### What problem does this PR solve? - Update httpx dependency to include socks support in pyproject.toml - Update lockfile with new socksio dependency ### Type of change - [x] Update dependencies for proxy support --- pyproject.toml | 2 +- uv.lock | 18 ++++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3b4b46e84..2289d5031 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -43,7 +43,7 @@ dependencies = [ "groq==0.9.0", "hanziconv==0.3.2", "html-text==0.6.2", - "httpx==0.27.2", + "httpx[socks]==0.27.2", "huggingface-hub>=0.25.0,<0.26.0", "infinity-sdk==0.6.0-dev4", "infinity-emb>=0.0.66,<0.0.67", diff --git a/uv.lock b/uv.lock index 53f891047..683dc6509 100644 --- a/uv.lock +++ b/uv.lock @@ -2422,6 +2422,11 @@ wheels = [ { url = "https://mirrors.aliyun.com/pypi/packages/56/95/9377bcb415797e44274b51d46e3249eba641711cf3348050f76ee7b15ffc/httpx-0.27.2-py3-none-any.whl", hash = "sha256:7bb2708e112d8fdd7829cd4243970f0c223274051cb35ee80c03301ee29a3df0" }, ] +[package.optional-dependencies] +socks = [ + { name = "socksio" }, +] + [[package]] name = "httpx-sse" version = "0.4.1" @@ -5308,7 +5313,7 @@ dependencies = [ { name = "groq" }, { name = "hanziconv" }, { name = "html-text" }, - { name = "httpx" }, + { name = "httpx", extra = ["socks"] }, { name = "huggingface-hub" }, { name = "infinity-emb" }, { name = "infinity-sdk" }, @@ -5463,7 +5468,7 @@ requires-dist = [ { name = "groq", specifier = "==0.9.0" }, { name = "hanziconv", specifier = "==0.3.2" }, { name = "html-text", specifier = "==0.6.2" }, - { name = "httpx", specifier = "==0.27.2" }, + { name = "httpx", extras = ["socks"], specifier = "==0.27.2" }, { name = "huggingface-hub", specifier = ">=0.25.0,<0.26.0" }, { name = "infinity-emb", specifier = ">=0.0.66,<0.0.67" }, { name = "infinity-sdk", specifier = "==0.6.0.dev4" }, @@ -6216,6 +6221,15 @@ wheels = [ { url = "https://mirrors.aliyun.com/pypi/packages/ed/dc/c02e01294f7265e63a7315fe086dd1df7dacb9f840a804da846b96d01b96/snowballstemmer-2.2.0-py2.py3-none-any.whl", hash = "sha256:c8e1716e83cc398ae16824e5572ae04e0d9fc2c6b985fb0f900f5f0c96ecba1a" }, ] +[[package]] +name = "socksio" +version = "1.0.0" +source = { registry = "https://mirrors.aliyun.com/pypi/simple" } +sdist = { url = "https://mirrors.aliyun.com/pypi/packages/f8/5c/48a7d9495be3d1c651198fd99dbb6ce190e2274d0f28b9051307bdec6b85/socksio-1.0.0.tar.gz", hash = "sha256:f88beb3da5b5c38b9890469de67d0cb0f9d494b78b106ca1845f96c10b91c4ac" } +wheels = [ + { url = "https://mirrors.aliyun.com/pypi/packages/37/c3/6eeb6034408dac0fa653d126c9204ade96b819c936e136c5e8a6897eee9c/socksio-1.0.0-py3-none-any.whl", hash = "sha256:95dc1f15f9b34e8d7b16f06d74b8ccf48f609af32ab33c608d08761c5dcbb1f3" }, +] + [[package]] name = "sortedcontainers" version = "2.4.0"