Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-minio for openSUSE:Factory checked in at 2022-10-29 20:16:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-minio (Old) and /work/SRC/openSUSE:Factory/.python-minio.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-minio" Sat Oct 29 20:16:58 2022 rev:16 rq:1032092 version:7.1.12 Changes: -------- --- /work/SRC/openSUSE:Factory/python-minio/python-minio.changes 2022-09-30 17:58:01.561278312 +0200 +++ /work/SRC/openSUSE:Factory/.python-minio.new.2275/python-minio.changes 2022-10-29 20:18:20.298604364 +0200 @@ -2 +2 @@ -Thu Sep 29 16:28:14 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> +Fri Oct 28 18:30:41 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> @@ -9,0 +10,3 @@ + +------------------------------------------------------------------- +Thu Sep 29 16:28:14 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> Old: ---- minio-7.1.11.tar.gz New: ---- minio-7.1.12.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-minio.spec ++++++ --- /var/tmp/diff_new_pack.XjdVJZ/_old 2022-10-29 20:18:20.806607071 +0200 +++ /var/tmp/diff_new_pack.XjdVJZ/_new 2022-10-29 20:18:20.814607114 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-minio -Version: 7.1.11 +Version: 7.1.12 Release: 0 Summary: Minio library for Amazon S3 compatible cloud storage License: Apache-2.0 ++++++ minio-7.1.11.tar.gz -> minio-7.1.12.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/PKG-INFO new/minio-7.1.12/PKG-INFO --- old/minio-7.1.11/PKG-INFO 2022-07-25 07:47:56.479161000 +0200 +++ new/minio-7.1.12/PKG-INFO 2022-09-28 09:55:32.456371000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.11 +Version: 7.1.12 Summary: MinIO Python SDK for Amazon S3 Compatible Cloud Storage Home-page: https://github.com/minio/minio-py Download-URL: https://github.com/minio/minio-py/releases @@ -25,7 +25,7 @@ MinIO Python SDK is Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service. -For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) ## Minimum Requirements Python 3.7 or higher. @@ -107,11 +107,11 @@ ``` ## More References -* [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +* [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) * [Examples](https://github.com/minio/minio-py/tree/release/examples) ## Explore Further -* [Complete Documentation](https://docs.min.io) +* [Complete Documentation](https://min.io/docs/minio/kubernetes/upstream/index.html) ## Contribute Please refer [Contributors Guide](https://github.com/minio/minio-py/blob/release/CONTRIBUTING.md) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/README.md new/minio-7.1.12/README.md --- old/minio-7.1.11/README.md 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/README.md 2022-09-28 09:54:03.000000000 +0200 @@ -2,7 +2,7 @@ MinIO Python SDK is Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service. -For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) ## Minimum Requirements Python 3.7 or higher. @@ -84,11 +84,11 @@ ``` ## More References -* [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +* [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) * [Examples](https://github.com/minio/minio-py/tree/release/examples) ## Explore Further -* [Complete Documentation](https://docs.min.io) +* [Complete Documentation](https://min.io/docs/minio/kubernetes/upstream/index.html) ## Contribute Please refer [Contributors Guide](https://github.com/minio/minio-py/blob/release/CONTRIBUTING.md) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/README_zh_CN.md new/minio-7.1.12/README_zh_CN.md --- old/minio-7.1.11/README_zh_CN.md 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/README_zh_CN.md 2022-09-28 09:54:03.000000000 +0200 @@ -2,7 +2,7 @@ MinIO Python Client SDK???????????????API??????????????????Amazon S3?????????????????????????????? -?????????????????????????????????MinIO client SDK??????????????????python?????????????????????????????????API????????????????????????[Python Client API Reference](https://docs.min.io/docs/python-client-api-reference)??? +?????????????????????????????????MinIO client SDK??????????????????python?????????????????????????????????API????????????????????????[Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html)??? ?????????????????????????????????????????? [Python](https://www.python.org/downloads/)??????????????? @@ -93,51 +93,51 @@ ## API?????? ?????????API?????????????????? -* [??????API??????](https://docs.min.io/docs/python-client-api-reference) +* [??????API??????](https://min.io/docs/minio/linux/developers/python/API.html) ### API?????? : ??????????????? -* [`make_bucket`](https://docs.min.io/docs/python-client-api-reference#make_bucket) -* [`list_buckets`](https://docs.min.io/docs/python-client-api-reference#list_buckets) -* [`bucket_exists`](https://docs.min.io/docs/python-client-api-reference#bucket_exists) -* [`remove_bucket`](https://docs.min.io/docs/python-client-api-reference#remove_bucket) -* [`list_objects`](https://docs.min.io/docs/python-client-api-reference#list_objects) -* [`list_objects_v2`](https://docs.min.io/docs/python-client-api-reference#list_objects_v2) -* [`list_incomplete_uploads`](https://docs.min.io/docs/python-client-api-reference#list_incomplete_uploads) +* [`make_bucket`](https://min.io/docs/minio/linux/developers/python/API.html#make_bucket) +* [`list_buckets`](https://min.io/docs/minio/linux/developers/python/API.html#list_buckets) +* [`bucket_exists`](https://min.io/docs/minio/linux/developers/python/API.html#bucket_exists) +* [`remove_bucket`](https://min.io/docs/minio/linux/developers/python/API.html#remove_bucket) +* [`list_objects`](https://min.io/docs/minio/linux/developers/python/API.html#list_objects) +* [`list_objects_v2`](https://min.io/docs/minio/linux/developers/python/API.html#list_objects_v2) +* [`list_incomplete_uploads`](https://min.io/docs/minio/linux/developers/python/API.html#list_incomplete_uploads) ### API?????? : ??????????????? -* [`get_bucket_policy`](https://docs.min.io/docs/python-client-api-reference#get_bucket_policy) -* [`set_bucket_policy`](https://docs.min.io/docs/python-client-api-reference#set_bucket_policy) +* [`get_bucket_policy`](https://min.io/docs/minio/linux/developers/python/API.html#get_bucket_policy) +* [`set_bucket_policy`](https://min.io/docs/minio/linux/developers/python/API.html#set_bucket_policy) ### API?????? : ??????????????? -* [`set_bucket_notification`](https://docs.min.io/docs/python-client-api-reference#set_bucket_notification) -* [`get_bucket_notification`](https://docs.min.io/docs/python-client-api-reference#get_bucket_notification) -* [`remove_all_bucket_notification`](https://docs.min.io/docs/python-client-api-reference#remove_all_bucket_notification) -* [`listen_bucket_notification`](https://docs.min.io/docs/python-client-api-reference#listen_bucket_notification) +* [`set_bucket_notification`](https://min.io/docs/minio/linux/developers/python/API.html#set_bucket_notification) +* [`get_bucket_notification`](https://min.io/docs/minio/linux/developers/python/API.html#get_bucket_notification) +* [`remove_all_bucket_notification`](https://min.io/docs/minio/linux/developers/python/API.html#remove_all_bucket_notification) +* [`listen_bucket_notification`](https://min.io/docs/minio/linux/developers/python/API.html#listen_bucket_notification) ### API?????? : ?????????????????? -* [`fput_object`](https://docs.min.io/docs/python-client-api-reference#fput_object) -* [`fget_object`](https://docs.min.io/docs/python-client-api-reference#fget_object) +* [`fput_object`](https://min.io/docs/minio/linux/developers/python/API.html#fput_object) +* [`fget_object`](https://min.io/docs/minio/linux/developers/python/API.html#fget_object) ### API?????? : ???????????? -* [`get_object`](https://docs.min.io/docs/python-client-api-reference#get_object) -* [`put_object`](https://docs.min.io/docs/python-client-api-reference#put_object) -* [`stat_object`](https://docs.min.io/docs/python-client-api-reference#stat_object) -* [`copy_object`](https://docs.min.io/docs/python-client-api-reference#copy_object) -* [`get_partial_object`](https://docs.min.io/docs/python-client-api-reference#get_partial_object) -* [`remove_object`](https://docs.min.io/docs/python-client-api-reference#remove_object) -* [`remove_objects`](https://docs.min.io/docs/python-client-api-reference#remove_objects) -* [`remove_incomplete_upload`](https://docs.min.io/docs/python-client-api-reference#remove_incomplete_upload) +* [`get_object`](https://min.io/docs/minio/linux/developers/python/API.html#get_object) +* [`put_object`](https://min.io/docs/minio/linux/developers/python/API.html#put_object) +* [`stat_object`](https://min.io/docs/minio/linux/developers/python/API.html#stat_object) +* [`copy_object`](https://min.io/docs/minio/linux/developers/python/API.html#copy_object) +* [`get_partial_object`](https://min.io/docs/minio/linux/developers/python/API.html#get_partial_object) +* [`remove_object`](https://min.io/docs/minio/linux/developers/python/API.html#remove_object) +* [`remove_objects`](https://min.io/docs/minio/linux/developers/python/API.html#remove_objects) +* [`remove_incomplete_upload`](https://min.io/docs/minio/linux/developers/python/API.html#remove_incomplete_upload) ### API?????? : Presigned?????? -* [`presigned_get_object`](https://docs.min.io/docs/python-client-api-reference#presigned_get_object) -* [`presigned_put_object`](https://docs.min.io/docs/python-client-api-reference#presigned_put_object) -* [`presigned_post_policy`](https://docs.min.io/docs/python-client-api-reference#presigned_post_policy) +* [`presigned_get_object`](https://min.io/docs/minio/linux/developers/python/API.html#presigned_get_object) +* [`presigned_put_object`](https://min.io/docs/minio/linux/developers/python/API.html#presigned_put_object) +* [`presigned_post_policy`](https://min.io/docs/minio/linux/developers/python/API.html#presigned_post_policy) ## ???????????? @@ -186,8 +186,8 @@ ## ???????????? -* [????????????](https://docs.min.io) -* [MinIO Python SDK API??????](https://docs.min.io/docs/python-client-api-reference) +* [????????????](https://min.io/docs/minio/kubernetes/upstream/index.html) +* [MinIO Python SDK API??????](https://min.io/docs/minio/linux/developers/python/API.html) ## ?????? diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/docs/API.md new/minio-7.1.12/docs/API.md --- old/minio-7.1.11/docs/API.md 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/docs/API.md 2022-09-28 09:54:03.000000000 +0200 @@ -1793,6 +1793,7 @@ Get presigned URL of an object for HTTP method, expiry time and custom request parameters. __Parameters__ + | Param | Type | Description | |:---------------------|:---------------------|:---------------------------------------------------------------------------------------------------------------------| | `method` | _str_ | HTTP method. | @@ -1848,6 +1849,6 @@ ## 5. Explore Further -- [MinIO Golang Client SDK Quickstart Guide](https://docs.min.io/docs/golang-client-quickstart-guide) -- [MinIO Java Client SDK Quickstart Guide](https://docs.min.io/docs/java-client-quickstart-guide) -- [MinIO JavaScript Client SDK Quickstart Guide](https://docs.min.io/docs/javascript-client-quickstart-guide) +- [MinIO Golang Client SDK Quickstart Guide](https://min.io/docs/minio/linux/developers/go/minio-go.html) +- [MinIO Java Client SDK Quickstart Guide](https://min.io/docs/minio/linux/developers/java/minio-java.html) +- [MinIO JavaScript Client SDK Quickstart Guide](https://min.io/docs/minio/linux/developers/javascript/minio-javascript.html) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/docs/zh_CN/API.md new/minio-7.1.12/docs/zh_CN/API.md --- old/minio-7.1.11/docs/zh_CN/API.md 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/docs/zh_CN/API.md 2022-09-28 09:54:03.000000000 +0200 @@ -1044,6 +1044,6 @@ ## 5. ???????????? -- [MinIO Golang Client SDK????????????](https://docs.min.io/docs/golang-client-quickstart-guide) -- [MinIO Java Client SDK????????????](https://docs.min.io/docs/java-client-quickstart-guide) -- [MinIO JavaScript Client SDK????????????](https://docs.min.io/docs/javascript-client-quickstart-guide) +- [MinIO Golang Client SDK????????????](https://min.io/docs/minio/linux/developers/go/minio-go.html) +- [MinIO Java Client SDK????????????](https://min.io/docs/minio/linux/developers/java/minio-java.html) +- [MinIO JavaScript Client SDK????????????](https://min.io/docs/minio/linux/developers/javascript/minio-javascript.html) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/minio/__init__.py new/minio-7.1.12/minio/__init__.py --- old/minio-7.1.11/minio/__init__.py 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/minio/__init__.py 2022-09-28 09:54:03.000000000 +0200 @@ -33,7 +33,7 @@ __title__ = "minio-py" __author__ = "MinIO, Inc." -__version__ = "7.1.11" +__version__ = "7.1.12" __license__ = "Apache 2.0" __copyright__ = "Copyright 2015, 2016, 2017, 2018, 2019, 2020 MinIO, Inc." diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/minio/api.py new/minio-7.1.12/minio/api.py --- old/minio-7.1.11/minio/api.py 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/minio/api.py 2022-09-28 09:54:03.000000000 +0200 @@ -996,7 +996,7 @@ def fget_object(self, bucket_name, object_name, file_path, request_headers=None, ssec=None, version_id=None, - extra_query_params=None, tmp_file_path=None): + extra_query_params=None, tmp_file_path=None, progress=None): """ Downloads data of an object to file. @@ -1009,6 +1009,7 @@ :param version_id: Version-ID of the object. :param extra_query_params: Extra query parameters for advanced usage. :param tmp_file_path: Path to a temporary file. + :param progress: A progress object :return: Object information. Example:: @@ -1029,6 +1030,8 @@ """ check_bucket_name(bucket_name) check_non_empty_string(object_name) + if progress and not isinstance(progress, Thread): + raise TypeError("progress object must be instance of Thread") if os.path.isdir(file_path): raise ValueError(f"file {file_path} is a directory") @@ -1058,9 +1061,17 @@ version_id=version_id, extra_query_params=extra_query_params, ) + + if progress: + # Set progress bar length and object name before upload + length = int(response.headers.get('content-length', 0)) + progress.set_meta(object_name=object_name, total_length=length) + with open(tmp_file_path, "wb") as tmp_file: for data in response.stream(amt=1024*1024): - tmp_file.write(data) + size = tmp_file.write(data) + if progress: + progress.update(size) if os.path.exists(file_path): os.remove(file_path) # For windows compatibility. os.rename(tmp_file_path, file_path) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/minio/datatypes.py new/minio-7.1.12/minio/datatypes.py --- old/minio-7.1.11/minio/datatypes.py 2022-07-25 07:46:29.000000000 +0200 +++ new/minio-7.1.12/minio/datatypes.py 2022-09-28 09:54:03.000000000 +0200 @@ -214,11 +214,13 @@ else (findtext(tag, "ID"), findtext(tag, "DisplayName")) ) - tag = find(element, "UserMetadata") or [] metadata = {} - for child in tag: - key = child.tag.split("}")[1] if "}" in child.tag else child.tag - metadata[key] = child.text + selement = find(element, "UserMetadata") + if selement: + for child in findall(selement, "Items"): + key = findtext(child, "Key", True) + value = findtext(child, "Value", True) + metadata[key] = value object_name = findtext(element, "Key", True) if encoding_type == "url": diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.11/minio.egg-info/PKG-INFO new/minio-7.1.12/minio.egg-info/PKG-INFO --- old/minio-7.1.11/minio.egg-info/PKG-INFO 2022-07-25 07:47:55.000000000 +0200 +++ new/minio-7.1.12/minio.egg-info/PKG-INFO 2022-09-28 09:55:31.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.11 +Version: 7.1.12 Summary: MinIO Python SDK for Amazon S3 Compatible Cloud Storage Home-page: https://github.com/minio/minio-py Download-URL: https://github.com/minio/minio-py/releases @@ -25,7 +25,7 @@ MinIO Python SDK is Simple Storage Service (aka S3) client to perform bucket and object operations to any Amazon S3 compatible object storage service. -For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +For a complete list of APIs and examples, please take a look at the [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) ## Minimum Requirements Python 3.7 or higher. @@ -107,11 +107,11 @@ ``` ## More References -* [Python Client API Reference](https://docs.min.io/docs/python-client-api-reference) +* [Python Client API Reference](https://min.io/docs/minio/linux/developers/python/API.html) * [Examples](https://github.com/minio/minio-py/tree/release/examples) ## Explore Further -* [Complete Documentation](https://docs.min.io) +* [Complete Documentation](https://min.io/docs/minio/kubernetes/upstream/index.html) ## Contribute Please refer [Contributors Guide](https://github.com/minio/minio-py/blob/release/CONTRIBUTING.md)