mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Bump aiobotocore to 3.10.0, botocore and boto3 to 1.43.117 (#189848)
This commit is contained in:
@@ -7,5 +7,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["boto3", "botocore", "s3transfer"],
|
||||
"quality_scale": "legacy",
|
||||
"requirements": ["boto3==1.42.97"]
|
||||
"requirements": ["boto3==1.43.117"]
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["aiobotocore", "botocore"],
|
||||
"quality_scale": "legacy",
|
||||
"requirements": ["aiobotocore==3.7.0"]
|
||||
"requirements": ["aiobotocore==3.10.0"]
|
||||
}
|
||||
|
||||
@@ -10,5 +10,5 @@
|
||||
"iot_class": "cloud_polling",
|
||||
"loggers": ["aiobotocore"],
|
||||
"quality_scale": "bronze",
|
||||
"requirements": ["aiobotocore==3.7.0"]
|
||||
"requirements": ["aiobotocore==3.10.0"]
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["aiobotocore"],
|
||||
"quality_scale": "bronze",
|
||||
"requirements": ["aiobotocore==3.7.0"]
|
||||
"requirements": ["aiobotocore==3.10.0"]
|
||||
}
|
||||
|
||||
@@ -9,5 +9,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["aiobotocore"],
|
||||
"quality_scale": "bronze",
|
||||
"requirements": ["aiobotocore==3.7.0", "idrive-e2-client==0.1.1"]
|
||||
"requirements": ["aiobotocore==3.10.0", "idrive-e2-client==0.1.1"]
|
||||
}
|
||||
|
||||
@@ -7,5 +7,5 @@
|
||||
"iot_class": "cloud_push",
|
||||
"loggers": ["boto3", "botocore", "s3transfer"],
|
||||
"quality_scale": "legacy",
|
||||
"requirements": ["boto3==1.42.97"]
|
||||
"requirements": ["boto3==1.43.117"]
|
||||
}
|
||||
|
||||
@@ -100,8 +100,8 @@ grpcio-reflection==1.83.1
|
||||
# runtime requirement install cannot pull in a botocore version that is
|
||||
# incompatible with aiobotocore.
|
||||
# see https://github.com/home-assistant/core/issues/167399
|
||||
boto3==1.42.97
|
||||
botocore==1.42.97
|
||||
boto3==1.43.117
|
||||
botocore==1.43.117
|
||||
|
||||
# This is a old unmaintained library and is replaced with pycryptodome
|
||||
pycrypto==1000000000.0.0
|
||||
|
||||
Generated
+2
-2
@@ -233,7 +233,7 @@ aiobafi6==0.9.0
|
||||
# homeassistant.components.aws_s3
|
||||
# homeassistant.components.cloudflare_r2
|
||||
# homeassistant.components.idrive_e2
|
||||
aiobotocore==3.7.0
|
||||
aiobotocore==3.10.0
|
||||
|
||||
# homeassistant.components.centriconnect
|
||||
aiocentriconnect==0.2.3
|
||||
@@ -765,7 +765,7 @@ boschshcpy==0.6.25
|
||||
|
||||
# homeassistant.components.amazon_polly
|
||||
# homeassistant.components.route53
|
||||
boto3==1.42.97
|
||||
boto3==1.43.117
|
||||
|
||||
# homeassistant.components.bring
|
||||
bring-api==1.1.2
|
||||
|
||||
@@ -74,8 +74,8 @@ grpcio-reflection==1.83.1
|
||||
# runtime requirement install cannot pull in a botocore version that is
|
||||
# incompatible with aiobotocore.
|
||||
# see https://github.com/home-assistant/core/issues/167399
|
||||
boto3==1.42.97
|
||||
botocore==1.42.97
|
||||
boto3==1.43.117
|
||||
botocore==1.43.117
|
||||
|
||||
# This is a old unmaintained library and is replaced with pycryptodome
|
||||
pycrypto==1000000000.0.0
|
||||
|
||||
@@ -771,7 +771,9 @@ async def test_agent_download_backup_parametrized(
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def downloaded_bodies(
|
||||
mock_client: MagicMock, monkeypatch: pytest.MonkeyPatch
|
||||
) -> list[StreamingBody]:
|
||||
"""Return the bodies of downloaded backup archives."""
|
||||
bodies: list[StreamingBody] = []
|
||||
get_object = mock_client.get_object.side_effect
|
||||
@@ -779,7 +781,10 @@ def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def get_object_and_track(**kwargs: Any) -> dict[str, Any]:
|
||||
response = get_object(**kwargs)
|
||||
if kwargs["Key"].endswith(".tar"):
|
||||
bodies.append(response["Body"])
|
||||
body = response["Body"]
|
||||
# Spy on the real close so tests can assert the body was closed
|
||||
monkeypatch.setattr(body, "close", Mock(wraps=body.close))
|
||||
bodies.append(body)
|
||||
return response
|
||||
|
||||
mock_client.get_object.side_effect = get_object_and_track
|
||||
|
||||
@@ -675,7 +675,9 @@ async def test_agent_list_backups_parametrized(
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def downloaded_bodies(
|
||||
mock_client: MagicMock, monkeypatch: pytest.MonkeyPatch
|
||||
) -> list[StreamingBody]:
|
||||
"""Return the bodies of downloaded backup archives."""
|
||||
bodies: list[StreamingBody] = []
|
||||
get_object = mock_client.get_object.side_effect
|
||||
@@ -683,7 +685,10 @@ def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def get_object_and_track(**kwargs: Any) -> dict[str, Any]:
|
||||
response = get_object(**kwargs)
|
||||
if kwargs["Key"].endswith(".tar"):
|
||||
bodies.append(response["Body"])
|
||||
body = response["Body"]
|
||||
# Spy on the real close so tests can assert the body was closed
|
||||
monkeypatch.setattr(body, "close", Mock(wraps=body.close))
|
||||
bodies.append(body)
|
||||
return response
|
||||
|
||||
mock_client.get_object.side_effect = get_object_and_track
|
||||
|
||||
@@ -599,7 +599,9 @@ async def test_list_backups_with_pagination(
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def downloaded_bodies(
|
||||
mock_client: MagicMock, monkeypatch: pytest.MonkeyPatch
|
||||
) -> list[StreamingBody]:
|
||||
"""Return the bodies of downloaded backup archives."""
|
||||
bodies: list[StreamingBody] = []
|
||||
get_object = mock_client.get_object.side_effect
|
||||
@@ -607,7 +609,10 @@ def downloaded_bodies(mock_client: MagicMock) -> list[StreamingBody]:
|
||||
def get_object_and_track(**kwargs: Any) -> dict[str, Any]:
|
||||
response = get_object(**kwargs)
|
||||
if kwargs["Key"].endswith(".tar"):
|
||||
bodies.append(response["Body"])
|
||||
body = response["Body"]
|
||||
# Spy on the real close so tests can assert the body was closed
|
||||
monkeypatch.setattr(body, "close", Mock(wraps=body.close))
|
||||
bodies.append(body)
|
||||
return response
|
||||
|
||||
mock_client.get_object.side_effect = get_object_and_track
|
||||
|
||||
Reference in New Issue
Block a user