From b18e9b17e9e3a694784900cf2a42037f09b74350 Mon Sep 17 00:00:00 2001
From: cunshunxia <cunshunxia@tencent.com>
Date: Fri, 19 Jul 2024 16:18:58 +0800
Subject: [PATCH] make 'anyio' optional requirement.

'anyio' is only used in tests, so there is no need to require it in main
process.

Signed-off-by: cunshunxia <cunshunxia@tencent.com>
---
 pyproject.toml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pyproject.toml b/pyproject.toml
index c4c188052e..bb35b2205d 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -30,7 +30,6 @@ classifiers = [
 dependencies = [
     "certifi",
     "httpcore==1.*",
-    "anyio",
     "idna",
     "sniffio",
 ]
@@ -55,6 +54,9 @@ socks = [
 zstd = [
   "zstandard>=0.18.0",
 ]
+test = [
+    "anyio",
+]
 
 [project.scripts]
 httpx = "httpx:main"