Hello community,
here is the log from the commit of package python-oslo.utils for
openSUSE:Factory checked in at 2020-08-10 15:06:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.utils (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.utils.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.utils"
Mon Aug 10 15:06:00 2020 rev:22 rq:825325 version:4.1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.utils/python-oslo.utils.changes
2020-06-05 20:19:36.619743280 +0200
+++
/work/SRC/openSUSE:Factory/.python-oslo.utils.new.3399/python-oslo.utils.changes
2020-08-10 15:06:44.720277578 +0200
@@ -1,0 +2,8 @@
+Mon Aug 10 10:22:43 UTC 2020 - [email protected]
+
+- update to version 4.1.2
+ - Update .gitreview for stable/ussuri
+ - Release greenthread when computing checksum
+ - Update TOX/UPPER_CONSTRAINTS_FILE for stable/ussuri
+
+-------------------------------------------------------------------
Old:
----
oslo.utils-4.1.1.tar.gz
New:
----
oslo.utils-4.1.2.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.utils.spec ++++++
--- /var/tmp/diff_new_pack.bGjIiM/_old 2020-08-10 15:06:47.936279276 +0200
+++ /var/tmp/diff_new_pack.bGjIiM/_new 2020-08-10 15:06:47.940279278 +0200
@@ -17,13 +17,13 @@
Name: python-oslo.utils
-Version: 4.1.1
+Version: 4.1.2
Release: 0
Summary: OpenStack Utils Library
License: Apache-2.0
Group: Development/Languages/Python
URL: https://launchpad.net/oslo.utils
-Source0:
https://files.pythonhosted.org/packages/source/o/oslo.utils/oslo.utils-4.1.1.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.utils/oslo.utils-4.1.2.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-Babel
BuildRequires: python3-ddt
@@ -76,7 +76,7 @@
Documentation for OpenStack utils library.
%prep
-%autosetup -p1 -n oslo.utils-4.1.1
+%autosetup -p1 -n oslo.utils-4.1.2
%py_req_cleanup
@@ -87,7 +87,7 @@
%py3_install
# generate html docs
-PBR_VERSION=4.1.1 %sphinx_build -b html doc/source doc/build/html
+PBR_VERSION=4.1.2 %sphinx_build -b html doc/source doc/build/html
# remove the sphinx-build leftovers
rm -rf doc/build/html/.{doctrees,buildinfo}
++++++ oslo.utils-4.1.1.tar.gz -> oslo.utils-4.1.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/AUTHORS new/oslo.utils-4.1.2/AUTHORS
--- old/oslo.utils-4.1.1/AUTHORS 2020-04-07 12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/AUTHORS 2020-07-02 12:20:25.000000000 +0200
@@ -131,6 +131,7 @@
Victor Sergeyev <[email protected]>
Victor Stinner <[email protected]>
Victor Stinner <[email protected]>
+Vladyslav Drok <[email protected]>
Vu Cong Tuan <[email protected]>
Wen Zhi Yu <[email protected]>
Yaguang Tang <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/ChangeLog
new/oslo.utils-4.1.2/ChangeLog
--- old/oslo.utils-4.1.1/ChangeLog 2020-04-07 12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/ChangeLog 2020-07-02 12:20:25.000000000 +0200
@@ -1,6 +1,13 @@
CHANGES
=======
+4.1.2
+-----
+
+* Release greenthread when computing checksum
+* Update TOX/UPPER\_CONSTRAINTS\_FILE for stable/ussuri
+* Update .gitreview for stable/ussuri
+
4.1.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/PKG-INFO
new/oslo.utils-4.1.2/PKG-INFO
--- old/oslo.utils-4.1.1/PKG-INFO 2020-04-07 12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/PKG-INFO 2020-07-02 12:20:25.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: oslo.utils
-Version: 4.1.1
+Version: 4.1.2
Summary: Oslo Utility library
Home-page: https://docs.openstack.org/oslo.utils/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/oslo.utils.egg-info/PKG-INFO
new/oslo.utils-4.1.2/oslo.utils.egg-info/PKG-INFO
--- old/oslo.utils-4.1.1/oslo.utils.egg-info/PKG-INFO 2020-04-07
12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/oslo.utils.egg-info/PKG-INFO 2020-07-02
12:20:25.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: oslo.utils
-Version: 4.1.1
+Version: 4.1.2
Summary: Oslo Utility library
Home-page: https://docs.openstack.org/oslo.utils/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/oslo.utils.egg-info/pbr.json
new/oslo.utils-4.1.2/oslo.utils.egg-info/pbr.json
--- old/oslo.utils-4.1.1/oslo.utils.egg-info/pbr.json 2020-04-07
12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/oslo.utils.egg-info/pbr.json 2020-07-02
12:20:25.000000000 +0200
@@ -1 +1 @@
-{"git_version": "af89f70", "is_release": true}
\ No newline at end of file
+{"git_version": "eeb7b10", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/oslo.utils.egg-info/requires.txt
new/oslo.utils-4.1.2/oslo.utils.egg-info/requires.txt
--- old/oslo.utils-4.1.1/oslo.utils.egg-info/requires.txt 2020-04-07
12:09:28.000000000 +0200
+++ new/oslo.utils-4.1.2/oslo.utils.egg-info/requires.txt 2020-07-02
12:20:25.000000000 +0200
@@ -1,9 +1,9 @@
-pbr!=2.1.0,>=2.0.0
-six>=1.10.0
+debtcollector>=1.2.0
iso8601>=0.1.11
-oslo.i18n>=3.15.3
-pytz>=2013.6
netaddr>=0.7.18
netifaces>=0.10.4
-debtcollector>=1.2.0
+oslo.i18n>=3.15.3
+pbr!=2.1.0,>=2.0.0
pyparsing>=2.1.0
+pytz>=2013.6
+six>=1.10.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/oslo_utils/fileutils.py
new/oslo.utils-4.1.2/oslo_utils/fileutils.py
--- old/oslo.utils-4.1.1/oslo_utils/fileutils.py 2020-04-07
12:08:13.000000000 +0200
+++ new/oslo.utils-4.1.2/oslo_utils/fileutils.py 2020-07-02
12:19:00.000000000 +0200
@@ -25,6 +25,7 @@
import os
import stat
import tempfile
+import time
from oslo_utils import excutils
@@ -123,6 +124,8 @@
with open(path, 'rb') as f:
for chunk in iter(lambda: f.read(read_chunksize), b''):
checksum.update(chunk)
+ # Release greenthread, if greenthreads are not used it is a noop.
+ time.sleep(0)
return checksum.hexdigest()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/oslo_utils/tests/test_fileutils.py
new/oslo.utils-4.1.2/oslo_utils/tests/test_fileutils.py
--- old/oslo.utils-4.1.1/oslo_utils/tests/test_fileutils.py 2020-04-07
12:08:13.000000000 +0200
+++ new/oslo.utils-4.1.2/oslo_utils/tests/test_fileutils.py 2020-07-02
12:19:00.000000000 +0200
@@ -19,6 +19,8 @@
import shutil
import stat
import tempfile
+import time
+from unittest import mock
import uuid
from oslotest import base as test_base
@@ -215,6 +217,23 @@
self.assertEqual(expected_checksum.hexdigest(), actual_checksum)
+ def test_compute_checksum_sleep_0_called(self):
+ path = fileutils.write_to_tempfile(self.content)
+ self.assertTrue(os.path.exists(path))
+ self.check_file_content(self.content, path)
+
+ expected_checksum = hashlib.sha256()
+ expected_checksum.update(self.content)
+
+ with mock.patch.object(time, "sleep") as sleep_mock:
+ actual_checksum = fileutils.compute_file_checksum(
+ path, read_chunksize=4)
+
+ sleep_mock.assert_has_calls([mock.call(0)] * 3)
+ # Just to make sure that there were exactly 3 calls
+ self.assertEqual(3, sleep_mock.call_count)
+ self.assertEqual(expected_checksum.hexdigest(), actual_checksum)
+
def test_compute_checksum_named_algorithm(self):
path = fileutils.write_to_tempfile(self.content)
self.assertTrue(os.path.exists(path))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.utils-4.1.1/tox.ini new/oslo.utils-4.1.2/tox.ini
--- old/oslo.utils-4.1.1/tox.ini 2020-04-07 12:08:13.000000000 +0200
+++ new/oslo.utils-4.1.2/tox.ini 2020-07-02 12:19:00.000000000 +0200
@@ -6,7 +6,7 @@
[testenv]
basepython = python3
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt
commands = stestr run --slowest {posargs}
@@ -23,7 +23,7 @@
[testenv:docs]
whitelist_externals = rm
deps =
-
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
+
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/ussuri}
-r{toxinidir}/doc/requirements.txt
commands =
rm -fr doc/build