Hello community,
here is the log from the commit of package python-oslo.concurrency for
openSUSE:Factory checked in at 2018-02-14 10:51:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.concurrency (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.concurrency.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.concurrency"
Wed Feb 14 10:51:40 2018 rev:10 rq:576276 version:3.25.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-oslo.concurrency/python-oslo.concurrency.changes
2018-01-17 21:59:33.959685102 +0100
+++
/work/SRC/openSUSE:Factory/.python-oslo.concurrency.new/python-oslo.concurrency.changes
2018-02-14 10:51:46.373358017 +0100
@@ -1,0 +2,8 @@
+Tue Jan 30 15:13:47 UTC 2018 - [email protected]
+
+- update to version 3.25.0
+ - Add python_exec kwarg to processutils.execute()
+ - Updated from global requirements
+ - add bandit to pep8 job
+
+-------------------------------------------------------------------
Old:
----
oslo.concurrency-3.24.0.tar.gz
New:
----
oslo.concurrency-3.25.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.concurrency.spec ++++++
--- /var/tmp/diff_new_pack.lfIoPR/_old 2018-02-14 10:51:46.897339159 +0100
+++ /var/tmp/diff_new_pack.lfIoPR/_new 2018-02-14 10:51:46.901339015 +0100
@@ -17,13 +17,13 @@
Name: python-oslo.concurrency
-Version: 3.24.0
+Version: 3.25.0
Release: 0
Summary: OpenStack oslo.concurrency library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/oslo.concurrency
-Source0:
https://files.pythonhosted.org/packages/source/o/oslo.concurrency/oslo.concurrency-3.24.0.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.concurrency/oslo.concurrency-3.25.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-enum34 >= 1.0.4
@@ -32,10 +32,10 @@
BuildRequires: python2-fixtures >= 3.0.0
BuildRequires: python2-futures >= 3.0.0
BuildRequires: python2-mock >= 2.0.0
-BuildRequires: python2-oslo.config >= 4.6.0
+BuildRequires: python2-oslo.config >= 5.1.0
BuildRequires: python2-oslo.i18n >= 3.15.3
-BuildRequires: python2-oslo.utils >= 3.31.0
-BuildRequires: python2-oslotest >= 1.10.0
+BuildRequires: python2-oslo.utils >= 3.33.0
+BuildRequires: python2-oslotest >= 3.2.0
BuildRequires: python2-pbr >= 2.0.0
BuildRequires: python2-testrepository >= 0.0.18
BuildRequires: python2-testscenarios >= 0.4
@@ -44,19 +44,19 @@
BuildRequires: python3-fasteners >= 0.7.0
BuildRequires: python3-fixtures >= 3.0.0
BuildRequires: python3-mock >= 2.0.0
-BuildRequires: python3-oslo.config >= 4.6.0
+BuildRequires: python3-oslo.config >= 5.1.0
BuildRequires: python3-oslo.i18n >= 3.15.3
-BuildRequires: python3-oslo.utils >= 3.31.0
-BuildRequires: python3-oslotest >= 1.10.0
+BuildRequires: python3-oslo.utils >= 3.33.0
+BuildRequires: python3-oslotest >= 3.2.0
BuildRequires: python3-pbr >= 2.0.0
BuildRequires: python3-testrepository >= 0.0.18
BuildRequires: python3-testscenarios >= 0.4
BuildRequires: python3-testtools >= 2.2.0
Requires: python-fasteners >= 0.7.0
Requires: python-iso8601 >= 0.1.11
-Requires: python-oslo.config >= 4.6.0
+Requires: python-oslo.config >= 5.1.0
Requires: python-oslo.i18n >= 3.15.3
-Requires: python-oslo.utils >= 3.31.0
+Requires: python-oslo.utils >= 3.33.0
Requires: python-retrying >= 1.2.3
Requires: python-six >= 1.10.0
BuildArch: noarch
@@ -91,7 +91,7 @@
This package contains the documentation.
%prep
-%autosetup -p1 -n oslo.concurrency-3.24.0
+%autosetup -p1 -n oslo.concurrency-3.25.0
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
++++++ oslo.concurrency-3.24.0.tar.gz -> oslo.concurrency-3.25.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/AUTHORS
new/oslo.concurrency-3.25.0/AUTHORS
--- old/oslo.concurrency-3.24.0/AUTHORS 2017-12-12 15:48:36.000000000 +0100
+++ new/oslo.concurrency-3.25.0/AUTHORS 2018-01-15 17:44:32.000000000 +0100
@@ -53,6 +53,7 @@
Lucian Petrut <[email protected]>
Mark McLoughlin <[email protected]>
Matt Riedemann <[email protected]>
+Matthew Treinish <[email protected]>
Matthew Treinish <[email protected]>
Michael Still <[email protected]>
Monty Taylor <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/ChangeLog
new/oslo.concurrency-3.25.0/ChangeLog
--- old/oslo.concurrency-3.24.0/ChangeLog 2017-12-12 15:48:36.000000000
+0100
+++ new/oslo.concurrency-3.25.0/ChangeLog 2018-01-15 17:44:32.000000000
+0100
@@ -1,6 +1,13 @@
CHANGES
=======
+3.25.0
+------
+
+* Add python\_exec kwarg to processutils.execute()
+* Updated from global requirements
+* add bandit to pep8 job
+
3.24.0
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/PKG-INFO
new/oslo.concurrency-3.25.0/PKG-INFO
--- old/oslo.concurrency-3.24.0/PKG-INFO 2017-12-12 15:48:37.000000000
+0100
+++ new/oslo.concurrency-3.25.0/PKG-INFO 2018-01-15 17:44:33.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: oslo.concurrency
-Version: 3.24.0
+Version: 3.25.0
Summary: Oslo Concurrency library
Home-page: https://docs.openstack.org/oslo.concurrency/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/PKG-INFO
new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/PKG-INFO
--- old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/PKG-INFO
2017-12-12 15:48:36.000000000 +0100
+++ new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/PKG-INFO
2018-01-15 17:44:32.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: oslo.concurrency
-Version: 3.24.0
+Version: 3.25.0
Summary: Oslo Concurrency library
Home-page: https://docs.openstack.org/oslo.concurrency/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/SOURCES.txt
new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/SOURCES.txt
--- old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/SOURCES.txt
2017-12-12 15:48:37.000000000 +0100
+++ new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/SOURCES.txt
2018-01-15 17:44:33.000000000 +0100
@@ -54,6 +54,7 @@
oslo_concurrency/tests/unit/test_lockutils.py
oslo_concurrency/tests/unit/test_lockutils_eventlet.py
oslo_concurrency/tests/unit/test_processutils.py
+releasenotes/notes/add-python-exec-kwarg-3a7a0c0849f9bb21.yaml
releasenotes/notes/add_reno-3b4ae0789e9c45b4.yaml
releasenotes/source/conf.py
releasenotes/source/index.rst
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/pbr.json
new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/pbr.json
--- old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/pbr.json
2017-12-12 15:48:36.000000000 +0100
+++ new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/pbr.json
2018-01-15 17:44:32.000000000 +0100
@@ -1 +1 @@
-{"git_version": "9584101", "is_release": true}
\ No newline at end of file
+{"git_version": "55e0626", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/requires.txt
new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/requires.txt
--- old/oslo.concurrency-3.24.0/oslo.concurrency.egg-info/requires.txt
2017-12-12 15:48:36.000000000 +0100
+++ new/oslo.concurrency-3.25.0/oslo.concurrency.egg-info/requires.txt
2018-01-15 17:44:32.000000000 +0100
@@ -2,6 +2,6 @@
enum34>=1.0.4
oslo.config>=5.1.0
oslo.i18n>=3.15.3
-oslo.utils>=3.31.0
+oslo.utils>=3.33.0
six>=1.10.0
fasteners>=0.7.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo_concurrency/processutils.py
new/oslo.concurrency-3.25.0/oslo_concurrency/processutils.py
--- old/oslo.concurrency-3.24.0/oslo_concurrency/processutils.py
2017-12-12 15:42:51.000000000 +0100
+++ new/oslo.concurrency-3.25.0/oslo_concurrency/processutils.py
2018-01-15 17:41:33.000000000 +0100
@@ -262,6 +262,10 @@
:param prlimit: Set resource limits on the child process. See
below for a detailed description.
:type prlimit: :class:`ProcessLimits`
+ :param python_exec: The python executable to use for enforcing
+ prlimits. If this is not set it will default to use
+ sys.executable.
+ :type python_exec: string
:returns: (stdout, stderr) from process execution
:raises: :class:`UnknownArgumentError` on
receiving unknown arguments
@@ -314,6 +318,7 @@
on_completion = kwargs.pop('on_completion', None)
preexec_fn = kwargs.pop('preexec_fn', None)
prlimit = kwargs.pop('prlimit', None)
+ python_exec = kwargs.pop('python_exec', sys.executable)
if isinstance(check_exit_code, bool):
ignore_exit_code = not check_exit_code
@@ -350,7 +355,7 @@
_('Process resource limits are ignored as '
'this feature is not supported on Windows.'))
else:
- args = [sys.executable, '-m', 'oslo_concurrency.prlimit']
+ args = [python_exec, '-m', 'oslo_concurrency.prlimit']
args.extend(prlimit.prlimit_args())
args.append('--')
args.extend(cmd)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/oslo_concurrency/tests/unit/test_processutils.py
new/oslo.concurrency-3.25.0/oslo_concurrency/tests/unit/test_processutils.py
---
old/oslo.concurrency-3.24.0/oslo_concurrency/tests/unit/test_processutils.py
2017-12-12 15:42:51.000000000 +0100
+++
new/oslo.concurrency-3.25.0/oslo_concurrency/tests/unit/test_processutils.py
2018-01-15 17:41:33.000000000 +0100
@@ -968,3 +968,16 @@
stderr=mock.ANY, close_fds=mock.ANY,
preexec_fn=mock.ANY, shell=mock.ANY,
cwd=mock.ANY, env=mock.ANY)
+
+ @mock.patch.object(processutils.subprocess, 'Popen')
+ def test_python_exec(self, sub_mock):
+ mock_subprocess = mock.MagicMock()
+ mock_subprocess.communicate.return_value = (b'', b'')
+ sub_mock.return_value = mock_subprocess
+ args = ['/a/command']
+ prlimit = self.limit_address_space()
+
+ processutils.execute(*args, prlimit=prlimit, check_exit_code=False,
+ python_exec='/fake_path')
+ python_path = sub_mock.mock_calls[0][1][0][0]
+ self.assertEqual('/fake_path', python_path)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.concurrency-3.24.0/releasenotes/notes/add-python-exec-kwarg-3a7a0c0849f9bb21.yaml
new/oslo.concurrency-3.25.0/releasenotes/notes/add-python-exec-kwarg-3a7a0c0849f9bb21.yaml
---
old/oslo.concurrency-3.24.0/releasenotes/notes/add-python-exec-kwarg-3a7a0c0849f9bb21.yaml
1970-01-01 01:00:00.000000000 +0100
+++
new/oslo.concurrency-3.25.0/releasenotes/notes/add-python-exec-kwarg-3a7a0c0849f9bb21.yaml
2018-01-15 17:41:33.000000000 +0100
@@ -0,0 +1,5 @@
+---
+features:
+ - A new kwarg, ``python_exec`` is added to the execute() function in the
+ processutils module. This option is used to specify the path to the python
+ executable to use for prlimits enforcement.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/requirements.txt
new/oslo.concurrency-3.25.0/requirements.txt
--- old/oslo.concurrency-3.24.0/requirements.txt 2017-12-12
15:42:51.000000000 +0100
+++ new/oslo.concurrency-3.25.0/requirements.txt 2018-01-15
17:41:02.000000000 +0100
@@ -6,6 +6,6 @@
enum34>=1.0.4;python_version=='2.7' or python_version=='2.6' or
python_version=='3.3' # BSD
oslo.config>=5.1.0 # Apache-2.0
oslo.i18n>=3.15.3 # Apache-2.0
-oslo.utils>=3.31.0 # Apache-2.0
+oslo.utils>=3.33.0 # Apache-2.0
six>=1.10.0 # MIT
fasteners>=0.7.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/test-requirements.txt
new/oslo.concurrency-3.25.0/test-requirements.txt
--- old/oslo.concurrency-3.24.0/test-requirements.txt 2017-12-12
15:42:51.000000000 +0100
+++ new/oslo.concurrency-3.25.0/test-requirements.txt 2018-01-15
17:41:02.000000000 +0100
@@ -14,3 +14,6 @@
reno>=2.5.0 # Apache-2.0
eventlet!=0.18.3,!=0.20.1,<0.21.0,>=0.18.2 # MIT
+
+# Bandit security code scanner
+bandit>=1.1.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.concurrency-3.24.0/tox.ini
new/oslo.concurrency-3.25.0/tox.ini
--- old/oslo.concurrency-3.24.0/tox.ini 2017-12-12 15:42:51.000000000 +0100
+++ new/oslo.concurrency-3.25.0/tox.ini 2018-01-15 17:41:02.000000000 +0100
@@ -14,7 +14,12 @@
env TEST_EVENTLET=1 lockutils-wrapper python setup.py testr --slowest
--testr-args='{posargs}'
[testenv:pep8]
-commands = flake8
+deps =
+ -r{toxinidir}/test-requirements.txt
+commands =
+ flake8
+ # Run security linter
+ bandit -r oslo_concurrency -x tests -n5 --skip B311,B404,B603,B606
[testenv:venv]
commands = {posargs}