This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 59cba36db0 Update azure-storage-blob version (#25426)
59cba36db0 is described below
commit 59cba36db0b91238c35e9b6b385fb5980509ddb8
Author: eladkal <[email protected]>
AuthorDate: Thu Oct 13 14:20:09 2022 +0300
Update azure-storage-blob version (#25426)
We restricted version in https://github.com/apache/airflow/pull/18443
due to error in static checks
https://github.com/apache/airflow/pull/17068#issuecomment-925264410
Tests pass locally with the updated version
---
airflow/providers/microsoft/azure/hooks/wasb.py | 4 ++--
airflow/providers/microsoft/azure/provider.yaml | 3 +--
generated/provider_dependencies.json | 2 +-
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/airflow/providers/microsoft/azure/hooks/wasb.py
b/airflow/providers/microsoft/azure/hooks/wasb.py
index 8283bd8ef5..21caa3d6dc 100644
--- a/airflow/providers/microsoft/azure/hooks/wasb.py
+++ b/airflow/providers/microsoft/azure/hooks/wasb.py
@@ -220,7 +220,7 @@ class WasbHook(BaseHook):
container_name: str,
prefix: str | None = None,
include: list[str] | None = None,
- delimiter: str | None = '/',
+ delimiter: str = '/',
**kwargs,
) -> list:
"""
@@ -348,7 +348,7 @@ class WasbHook(BaseHook):
return blob_client.upload_blob(data, blob_type, length=length,
**kwargs)
def download(
- self, container_name, blob_name, offset: int | None = None, length:
int | None = None, **kwargs
+ self, container_name, blob_name, offset: int, length: int, **kwargs
) -> StorageStreamDownloader:
"""
Downloads a blob to the StorageStreamDownloader
diff --git a/airflow/providers/microsoft/azure/provider.yaml
b/airflow/providers/microsoft/azure/provider.yaml
index f88ae8085b..e5f2cecd81 100644
--- a/airflow/providers/microsoft/azure/provider.yaml
+++ b/airflow/providers/microsoft/azure/provider.yaml
@@ -58,8 +58,7 @@ dependencies:
- azure-mgmt-datafactory>=1.0.0,<2.0
- azure-mgmt-datalake-store>=0.5.0
- azure-mgmt-resource>=2.2.0
- # limited due to https://github.com/Azure/azure-sdk-for-python/pull/18801
implementation released in 12.9
- - azure-storage-blob>=12.7.0,<12.9.0
+ - azure-storage-blob>=12.14.0
- azure-storage-common>=2.1.0
- azure-storage-file>=2.1.0
# Limited due to https://github.com/Azure/azure-uamqp-python/issues/191
diff --git a/generated/provider_dependencies.json
b/generated/provider_dependencies.json
index 097de0f47c..851a3de73c 100644
--- a/generated/provider_dependencies.json
+++ b/generated/provider_dependencies.json
@@ -447,7 +447,7 @@
"azure-mgmt-datalake-store>=0.5.0",
"azure-mgmt-resource>=2.2.0",
"azure-servicebus>=7.6.1; platform_machine != \"aarch64\"",
- "azure-storage-blob>=12.7.0,<12.9.0",
+ "azure-storage-blob>=12.14.0",
"azure-storage-common>=2.1.0",
"azure-storage-file>=2.1.0",
"azure-synapse-spark"