From e348c25e18a019dbdc6992536e2bb23f6b86d009 Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Tue, 7 Feb 2023 01:58:00 +0100 Subject: [PATCH] Pin platformdirs to resolve dependency conflict (#87589) --- .github/workflows/ci.yaml | 2 +- homeassistant/package_constraints.txt | 4 ++++ script/gen_requirements_all.py | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1348f690d3a..3db21d09ce0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -28,7 +28,7 @@ on: type: boolean env: - CACHE_VERSION: 4 + CACHE_VERSION: 5 PIP_CACHE_VERSION: 4 MYPY_CACHE_VERSION: 3 HA_SHORT_VERSION: 2023.3 diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 5c33d3d7c8f..290c7e64364 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -145,3 +145,7 @@ matplotlib==3.6.1 # pyOpenSSL 23.0.0 or later required to avoid import errors when # cryptography 39.0.0 is installed with botocore pyOpenSSL>=23.0.0 + +# virtualenv 20.18 only compatible with <3 +# https://github.com/pypa/virtualenv/issues/2499 +platformdirs<3 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 4456a3312b5..e55479de8ea 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -153,6 +153,10 @@ matplotlib==3.6.1 # pyOpenSSL 23.0.0 or later required to avoid import errors when # cryptography 39.0.0 is installed with botocore pyOpenSSL>=23.0.0 + +# virtualenv 20.18 only compatible with <3 +# https://github.com/pypa/virtualenv/issues/2499 +platformdirs<3 """ IGNORE_PRE_COMMIT_HOOK_ID = (