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-09-30 17:57:42 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-minio (Old) and /work/SRC/openSUSE:Factory/.python-minio.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-minio" Fri Sep 30 17:57:42 2022 rev:15 rq:1007059 version:7.1.11 Changes: -------- --- /work/SRC/openSUSE:Factory/python-minio/python-minio.changes 2022-06-16 18:22:26.680270454 +0200 +++ /work/SRC/openSUSE:Factory/.python-minio.new.2275/python-minio.changes 2022-09-30 17:58:01.561278312 +0200 @@ -1,0 +2,19 @@ +Thu Sep 29 16:28:14 UTC 2022 - Yogalakshmi Arunachalam <yarunacha...@suse.com> + +- Update to version 7.1.12: + What's Changed + fix documentation display composing by @j13tw in #1231 + fget_object(): add progress support by @moon-jong in #1235 + Updating documentation links to new URLs by @djwfyi in #1239 + list_objects: fix parsing user metadata as per MinIO server by @harshavardhana in #1240 + +- Update to version 7.1.11: + select: yield available payload fully by requested num_bytes by @kldtz in #1225 + +- Update to version 7.1.10: + fget_object(): remove resume support. by @balamurugana in #1215 + fix lifecycle config rule validation by @balamurugana in #1217 + error out if lifecycle rule has null filter by @balamurugana in #1219 + EventIterable: Reconnect on closed response. by @balamurugana in #1222 + +------------------------------------------------------------------- Old: ---- minio-7.1.9.tar.gz New: ---- minio-7.1.11.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-minio.spec ++++++ --- /var/tmp/diff_new_pack.02O3Dc/_old 2022-09-30 17:58:01.989279227 +0200 +++ /var/tmp/diff_new_pack.02O3Dc/_new 2022-09-30 17:58:01.997279245 +0200 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-minio -Version: 7.1.9 +Version: 7.1.11 Release: 0 Summary: Minio library for Amazon S3 compatible cloud storage License: Apache-2.0 ++++++ minio-7.1.9.tar.gz -> minio-7.1.11.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/PKG-INFO new/minio-7.1.11/PKG-INFO --- old/minio-7.1.9/PKG-INFO 2022-06-11 23:34:02.843320600 +0200 +++ new/minio-7.1.11/PKG-INFO 2022-07-25 07:47:56.479161000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.9 +Version: 7.1.11 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/minio/__init__.py new/minio-7.1.11/minio/__init__.py --- old/minio-7.1.9/minio/__init__.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/minio/__init__.py 2022-07-25 07:46:29.000000000 +0200 @@ -33,7 +33,7 @@ __title__ = "minio-py" __author__ = "MinIO, Inc." -__version__ = "7.1.9" +__version__ = "7.1.11" __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.9/minio/api.py new/minio-7.1.11/minio/api.py --- old/minio-7.1.9/minio/api.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/minio/api.py 2022-07-25 07:46:29.000000000 +0200 @@ -1047,27 +1047,18 @@ tmp_file_path = ( tmp_file_path or file_path + "." + stat.etag + ".part.minio" ) - try: - tmp_file_stat = os.stat(tmp_file_path) - except IOError: - tmp_file_stat = None # Ignore this error. - offset = tmp_file_stat.st_size if tmp_file_stat else 0 - if offset > stat.size: - os.remove(tmp_file_path) - offset = 0 response = None try: response = self.get_object( bucket_name, object_name, - offset=offset, request_headers=request_headers, ssec=ssec, version_id=version_id, extra_query_params=extra_query_params, ) - with open(tmp_file_path, "ab") as tmp_file: + with open(tmp_file_path, "wb") as tmp_file: for data in response.stream(amt=1024*1024): tmp_file.write(data) if os.path.exists(file_path): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/minio/datatypes.py new/minio-7.1.11/minio/datatypes.py --- old/minio-7.1.9/minio/datatypes.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/minio/datatypes.py 2022-07-25 07:46:29.000000000 +0200 @@ -840,7 +840,7 @@ def __next__(self): records = None while not records: - if not self._response: + if not self._response or self._response.closed: self._response = self._func() records = self._get_records() return records diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/minio/lifecycleconfig.py new/minio-7.1.11/minio/lifecycleconfig.py --- old/minio-7.1.9/minio/lifecycleconfig.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/minio/lifecycleconfig.py 2022-07-25 07:46:29.000000000 +0200 @@ -246,6 +246,15 @@ noncurrent_version_transition=None, transition=None): check_status(status) + if (not abort_incomplete_multipart_upload and not expiration + and not noncurrent_version_expiration + and not noncurrent_version_transition + and not transition): + raise ValueError( + "at least one of action (AbortIncompleteMultipartUpload, " + "Expiration, NoncurrentVersionExpiration, " + "NoncurrentVersionTransition or Transition) must be specified " + "in a rule") if not rule_filter: raise ValueError("Rule filter must be provided") diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/minio/select.py new/minio-7.1.11/minio/select.py --- old/minio-7.1.9/minio/select.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/minio/select.py 2022-07-25 07:46:29.000000000 +0200 @@ -420,13 +420,10 @@ Stream extracted payload from response data. Upon completion, caller should call self.close() to release network resources. """ - while True: - if self._payload: + while self._read() > 0: + while self._payload: result = self._payload if num_bytes < len(self._payload): result = self._payload[:num_bytes] self._payload = self._payload[len(result):] yield result - - if self._read() <= 0: - break diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/minio.egg-info/PKG-INFO new/minio-7.1.11/minio.egg-info/PKG-INFO --- old/minio-7.1.9/minio.egg-info/PKG-INFO 2022-06-11 23:33:59.000000000 +0200 +++ new/minio-7.1.11/minio.egg-info/PKG-INFO 2022-07-25 07:47:55.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: minio -Version: 7.1.9 +Version: 7.1.11 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 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/minio-7.1.9/tests/functional/tests.py new/minio-7.1.11/tests/functional/tests.py --- old/minio-7.1.9/tests/functional/tests.py 2022-06-11 23:29:34.000000000 +0200 +++ new/minio-7.1.11/tests/functional/tests.py 2022-07-25 07:46:29.000000000 +0200 @@ -281,7 +281,7 @@ data = _CLIENT.select_object_content(bucket_name, csvfile, request) # Get the records records = io.BytesIO() - for data_bytes in data.stream(10*KB): + for data_bytes in data.stream(16): records.write(data_bytes) expected_crc = crc32(content.getvalue()) & 0xffffffff