Skip to content

Commit

Permalink
upload 3.19.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
x00403408 committed Sep 18, 2019
1 parent 5c19bfd commit 4b2c8e9
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 7 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@

Version 3.19.7.2

New Features:

Documentation & Demo:
1. Fixed the issue that package import method using the relative path is incompatible with Python 3.x versions.

Resolved Issues:
-------------------------------------------------------------------------------------------------

Version 3.19.7.1

New Features:
Expand Down
10 changes: 9 additions & 1 deletion README_CN.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
Version 3.19.7.1
Version 3.19.7.2

资料&demo:

修复问题:
1. 修复包相对导入方式在Python3.x版本不兼容的问题;
-------------------------------------------------------------------------------------------------

Version 3.19.7.1

新特性:
1. 创建OBS客户端接口(ObsClient)新增对以自定义方式获取访问秘钥创建OBS客户端的支持。当前提供从环境变量中获取访问秘钥及从ECS服务器上获取临时访问秘钥两种获取方式,允许自定义其他获取方式。同时支持多种获取方式的组合,对多种获取方式的组合,支持以链式方式或指定方式的形式获取访问秘钥创建OBS客户端;
Expand Down
Binary file removed release/huaweicloud-obs-sdk-python_3.19.7.1.tar.gz
Binary file not shown.
1 change: 0 additions & 1 deletion release/huaweicloud-obs-sdk-python_3.19.7.1.tar.gz.sha256

This file was deleted.

Binary file not shown.
1 change: 1 addition & 0 deletions release/huaweicloud-obs-sdk-python_3.19.7.2.tar.gz.sha256
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
139bb335b059fc61432b017e3afa72c50a450242dda71bb58a3d564160aae011 *huaweicloud-obs-sdk-python_3.19.7.2.tar.gz
4 changes: 2 additions & 2 deletions src/obs/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
from obs.model import CopyObjectHeader
from obs.model import SetObjectMetadataHeader
from obs.bucket import BucketClient
import loadtoken
from obs import loadtoken
from inspect import isfunction

if const.IS_PYTHON2:
Expand Down Expand Up @@ -269,7 +269,7 @@ def __init__(self, access_key_id='', secret_access_key='', is_secure=True, serve
self.convertor = convertor.Convertor(self.signature, self.ha)

def _get_token(self):
from searchmethod import get_token
from obs.searchmethod import get_token
try:
if self.security_provider_policy is not None:
if self.securityProvider.access_key_id!='' and self.securityProvider.secret_access_key!='':
Expand Down
2 changes: 1 addition & 1 deletion src/obs/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
DEFAULT_TASK_QUEUE_SIZE = 20000


OBS_SDK_VERSION = '3.19.7.1'
OBS_SDK_VERSION = '3.19.7.2'

V2_META_HEADER_PREFIX = 'x-amz-meta-'
V2_HEADER_PREFIX = 'x-amz-'
Expand Down
2 changes: 1 addition & 1 deletion src/obs/searchmethod.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
# specific language governing permissions and limitations under the License.

from loadtoken import NoneTokenException
from obs.loadtoken import NoneTokenException

def get_token(security_providers, name='OBS_DEFAULT'):
if name == 'OBS_DEFAULT':
Expand Down
2 changes: 1 addition & 1 deletion src/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

setup(
name='esdk-obs-python',
version='3.19.7.1',
version='3.19.7.2',
packages=find_packages(),
zip_safe=False,
description='OBS Python SDK',
Expand Down

0 comments on commit 4b2c8e9

Please sign in to comment.