From e87b45379384dfff50478d1f5c801bc10ce0cdbf Mon Sep 17 00:00:00 2001 From: Yishi Wang Date: Tue, 23 Mar 2021 14:36:18 +0800 Subject: [PATCH] {0.6.2} Fix import issue for filedatalake (#45) * update filedatalake * version * changelog * Fix import issue for filedatalake * azure.core.exception --- README.rst | 4 ++++ .../storagev2/filedatalake/v2020_02_10/_upload_helper.py | 2 +- scripts/updatev2_1.sh | 1 + setup.py | 2 +- 4 files changed, 7 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index 88b5230..732d0d0 100644 --- a/README.rst +++ b/README.rst @@ -17,6 +17,10 @@ Handles multi-API versions of Azure Storage Data Plane originally from https://g Change Log ---------- +0.6.2 ++++++ +* Fix import issue for filedatalake + 0.6.1 +++++ * Support undelete filesystem diff --git a/azure/multiapi/storagev2/filedatalake/v2020_02_10/_upload_helper.py b/azure/multiapi/storagev2/filedatalake/v2020_02_10/_upload_helper.py index 5f35770..77db8bf 100644 --- a/azure/multiapi/storagev2/filedatalake/v2020_02_10/_upload_helper.py +++ b/azure/multiapi/storagev2/filedatalake/v2020_02_10/_upload_helper.py @@ -11,7 +11,7 @@ from ._shared.uploads import ( upload_data_chunks, DataLakeFileChunkUploader) -from ...core.exceptions import HttpResponseError +from azure.core.exceptions import HttpResponseError def _any_conditions(modified_access_conditions=None, **kwargs): # pylint: disable=unused-argument diff --git a/scripts/updatev2_1.sh b/scripts/updatev2_1.sh index 5539afe..d4e56f5 100755 --- a/scripts/updatev2_1.sh +++ b/scripts/updatev2_1.sh @@ -50,6 +50,7 @@ for service in blob fileshare filedatalake queue; do namespace=azure.storage.$service sed -i "s/from $namespace./from ./g" $f + sed -i "s/from ...core.exceptions/from azure.core.exceptions/g" $f done done diff --git a/setup.py b/setup.py index 6683cd9..4ce2252 100644 --- a/setup.py +++ b/setup.py @@ -35,7 +35,7 @@ setup( name='azure-multiapi-storage', - version='0.6.1', + version='0.6.2', description='Microsoft Azure Storage Client Library for Python with multi API version support.', long_description=open('README.rst', 'r').read(), license='MIT',