From 5654490aa8959fd88072363202c6260cbbe27338 Mon Sep 17 00:00:00 2001 From: uvjustin <46082645+uvjustin@users.noreply.github.com> Date: Sun, 23 Jan 2022 07:52:41 +0800 Subject: [PATCH] Update version requirements for httpcore and anyio (#64711) --- homeassistant/package_constraints.txt | 9 ++++++--- script/gen_requirements_all.py | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index d6ef327ec1d..81d219b8ad3 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -80,9 +80,12 @@ pandas==1.3.0 # This is fixed in 2021.8.28 regex==2021.8.28 -# anyio has a bug that was fixed in 3.3.1 -# can remove after httpx/httpcore updates its anyio version pin -anyio>=3.3.1 +# httpx requires httpcore, and httpcore requires anyio, but the version constraints on +# these requirements are quite loose. As these requirements have some outstanding issues +# which may be addressed by version updates, we can tighten their minimum version +# requirements here. +httpcore>=0.14.5 +anyio>=3.5.0 # pytest_asyncio breaks our test suite. We rely on pytest-aiohttp instead pytest_asyncio==1000000000.0.0 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 7452af2ba2f..952bd8b8f48 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -105,9 +105,12 @@ pandas==1.3.0 # This is fixed in 2021.8.28 regex==2021.8.28 -# anyio has a bug that was fixed in 3.3.1 -# can remove after httpx/httpcore updates its anyio version pin -anyio>=3.3.1 +# httpx requires httpcore, and httpcore requires anyio, but the version constraints on +# these requirements are quite loose. As these requirements have some outstanding issues +# which may be addressed by version updates, we can tighten their minimum version +# requirements here. +httpcore>=0.14.5 +anyio>=3.5.0 # pytest_asyncio breaks our test suite. We rely on pytest-aiohttp instead pytest_asyncio==1000000000.0.0