From 52ba58c782b7d49e350d3358b313bc70ea279980 Mon Sep 17 00:00:00 2001 From: Allen Porter Date: Thu, 8 Jun 2023 00:41:45 -0700 Subject: [PATCH] Require pydantic 1.10.8 or higher (#94208) * Requied pydantic 1.10.9 or higher * Simplify constraint to 2.0 * Drop constraint by one patch release to 1.10.8 or higher * Add package constraints to gen requirements script --- homeassistant/package_constraints.txt | 5 ++--- script/gen_requirements_all.py | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index d183395ebfc..0d46744d2ad 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -128,9 +128,8 @@ authlib<1.0 # Version 2.0 added typing, prevent accidental fallbacks backoff>=2.0 -# Breaking change in version -# https://github.com/samuelcolvin/pydantic/issues/4092 -pydantic!=1.9.1 +# Require to avoid issues with decorators (#93904). v2 has breaking changes. +pydantic>=1.10.8,<2.0 # Breaks asyncio # https://github.com/pubnub/python/issues/130 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index ca39d78c4c6..e71cdcf7bc1 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -132,9 +132,8 @@ authlib<1.0 # Version 2.0 added typing, prevent accidental fallbacks backoff>=2.0 -# Breaking change in version -# https://github.com/samuelcolvin/pydantic/issues/4092 -pydantic!=1.9.1 +# Require to avoid issues with decorators (#93904). v2 has breaking changes. +pydantic>=1.10.8,<2.0 # Breaks asyncio # https://github.com/pubnub/python/issues/130