From 262f330126da8beb71c684d4f6c276de0c15ed29 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Nov 2024 08:16:22 +0000 Subject: [PATCH 1/3] Add temporary package constaint on flexparser to fix CI --- homeassistant/package_constraints.txt | 3 +++ script/gen_requirements_all.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index e2b04c48b30732..2eaa9172252f3e 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -192,3 +192,6 @@ tenacity!=8.4.0 # 5.0.0 breaks Timeout as a context manager # TypeError: 'Timeout' object does not support the context manager protocol async-timeout==4.0.3 + +# latest pint 0.24.3 is not yet compatible with flexparser 0.4 +flexparser<0.4 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 352b209c5fc7a2..49af18125308e0 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -207,6 +207,9 @@ # 5.0.0 breaks Timeout as a context manager # TypeError: 'Timeout' object does not support the context manager protocol async-timeout==4.0.3 + +# latest pint 0.24.3 is not yet compatible with flexparser 0.4 +flexparser<0.4 """ GENERATED_MESSAGE = ( From d8c76ab58cfffaee3c723037aa0db40663469079 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Nov 2024 08:18:48 +0000 Subject: [PATCH 2/3] Adjust --- homeassistant/package_constraints.txt | 1 + script/gen_requirements_all.py | 1 + 2 files changed, 2 insertions(+) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 2eaa9172252f3e..b756472421d1d2 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -194,4 +194,5 @@ tenacity!=8.4.0 async-timeout==4.0.3 # latest pint 0.24.3 is not yet compatible with flexparser 0.4 +# https://github.com/hgrecco/pint/issues/1969 flexparser<0.4 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 49af18125308e0..e8f317a90aaa4b 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -209,6 +209,7 @@ async-timeout==4.0.3 # latest pint 0.24.3 is not yet compatible with flexparser 0.4 +# https://github.com/hgrecco/pint/issues/1969 flexparser<0.4 """ From 84870db236ca93236c2aadf18e35ed03eba4e051 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 7 Nov 2024 09:24:48 +0100 Subject: [PATCH 3/3] Apply suggestions from code review Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> --- homeassistant/package_constraints.txt | 3 ++- script/gen_requirements_all.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index b756472421d1d2..5da579fa82780b 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -195,4 +195,5 @@ async-timeout==4.0.3 # latest pint 0.24.3 is not yet compatible with flexparser 0.4 # https://github.com/hgrecco/pint/issues/1969 -flexparser<0.4 +flexparser==0.3.1 +pint==0.24.3 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index e8f317a90aaa4b..a71047fddc87b1 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -210,7 +210,8 @@ # latest pint 0.24.3 is not yet compatible with flexparser 0.4 # https://github.com/hgrecco/pint/issues/1969 -flexparser<0.4 +flexparser==0.3.1 +pint==0.24.3 """ GENERATED_MESSAGE = (