From ce31af5b42fb046337ed9100a5c0048d3e0052c3 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 5 Jan 2022 22:50:11 +0100 Subject: [PATCH] Revert "Bump google-cloud-pubsub to 2.9.0 (to bump grpcio)" (#63517) --- homeassistant/components/google_pubsub/manifest.json | 2 +- homeassistant/package_constraints.txt | 10 ++++++++++ requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- script/gen_requirements_all.py | 10 ++++++++++ 5 files changed, 23 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/google_pubsub/manifest.json b/homeassistant/components/google_pubsub/manifest.json index cd68e17b59d..1a289e04bed 100644 --- a/homeassistant/components/google_pubsub/manifest.json +++ b/homeassistant/components/google_pubsub/manifest.json @@ -2,7 +2,7 @@ "domain": "google_pubsub", "name": "Google Pub/Sub", "documentation": "https://www.home-assistant.io/integrations/google_pubsub", - "requirements": ["google-cloud-pubsub==2.9.0"], + "requirements": ["google-cloud-pubsub==2.1.0"], "codeowners": [], "iot_class": "cloud_push" } diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index ec43c1e50eb..ae9efb17c1c 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -53,6 +53,16 @@ h11>=0.12.0 # https://github.com/advisories/GHSA-93xj-8mrv-444m httplib2>=0.19.0 +# gRPC 1.32+ currently causes issues on ARMv7, see: +# https://github.com/home-assistant/core/issues/40148 +# Newer versions of some other libraries pin a higher version of grpcio, +# so those also need to be kept at an old version until the grpcio pin +# is reverted, see: +# https://github.com/home-assistant/core/issues/53427 +grpcio==1.31.0 +google-cloud-pubsub==2.1.0 +google-api-core<=1.31.2 + # This is a old unmaintained library and is replaced with pycryptodome pycrypto==1000000000.0.0 diff --git a/requirements_all.txt b/requirements_all.txt index 9cb1759abcf..5003d7e28bc 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -746,7 +746,7 @@ goodwe==0.2.10 google-api-python-client==1.6.4 # homeassistant.components.google_pubsub -google-cloud-pubsub==2.9.0 +google-cloud-pubsub==2.1.0 # homeassistant.components.google_cloud google-cloud-texttospeech==0.4.0 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index f3f0795841b..1cc1071253c 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -474,7 +474,7 @@ goodwe==0.2.10 google-api-python-client==1.6.4 # homeassistant.components.google_pubsub -google-cloud-pubsub==2.9.0 +google-cloud-pubsub==2.1.0 # homeassistant.components.nest google-nest-sdm==1.3.0 diff --git a/script/gen_requirements_all.py b/script/gen_requirements_all.py index 062b6544050..02ef8d929da 100755 --- a/script/gen_requirements_all.py +++ b/script/gen_requirements_all.py @@ -79,6 +79,16 @@ h11>=0.12.0 # https://github.com/advisories/GHSA-93xj-8mrv-444m httplib2>=0.19.0 +# gRPC 1.32+ currently causes issues on ARMv7, see: +# https://github.com/home-assistant/core/issues/40148 +# Newer versions of some other libraries pin a higher version of grpcio, +# so those also need to be kept at an old version until the grpcio pin +# is reverted, see: +# https://github.com/home-assistant/core/issues/53427 +grpcio==1.31.0 +google-cloud-pubsub==2.1.0 +google-api-core<=1.31.2 + # This is a old unmaintained library and is replaced with pycryptodome pycrypto==1000000000.0.0