Hello community,
here is the log from the commit of package python-oslo.privsep for
openSUSE:Factory checked in at 2018-01-24 15:27:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.privsep (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.privsep.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.privsep"
Wed Jan 24 15:27:52 2018 rev:6 rq:567277 version:1.26.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-oslo.privsep/python-oslo.privsep.changes
2017-08-28 15:31:28.963984881 +0200
+++
/work/SRC/openSUSE:Factory/.python-oslo.privsep.new/python-oslo.privsep.changes
2018-01-24 15:27:53.941673428 +0100
@@ -1,0 +2,14 @@
+Mon Jan 15 11:58:20 UTC 2018 - [email protected]
+
+- update to version 1.26.0
+ - Remove -U from pip install
+ - Expose caps values/names as int enum
+ - Update reno for stable/pike
+ - Remove setting of version/release from releasenotes
+ - Imported Translations from Zanata
+ - Avoid tox_install.sh for constraints support
+ - add bandit to pep8 job
+ - Updated from global requirements
+ - Update capabilities from current kernel source
+
+-------------------------------------------------------------------
Old:
----
oslo.privsep-1.22.0.tar.gz
New:
----
oslo.privsep-1.26.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.privsep.spec ++++++
--- /var/tmp/diff_new_pack.6TICn9/_old 2018-01-24 15:27:54.477648360 +0100
+++ /var/tmp/diff_new_pack.6TICn9/_new 2018-01-24 15:27:54.477648360 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-oslo.privsep
#
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,42 +16,41 @@
#
-%global sname oslo.privsep
Name: python-oslo.privsep
-Version: 1.22.0
+Version: 1.26.0
Release: 0
Summary: OpenStack library for privilege separation
License: Apache-2.0
Group: Development/Languages/Python
-Url: http://launchpad.net/oslo.privsep
-Source0:
https://pypi.io/packages/source/o/%{sname}/%{sname}-%{version}.tar.gz
+Url: https://launchpad.net/oslo.privsep
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.privsep/oslo.privsep-1.26.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-Babel >= 2.3.4
BuildRequires: python-Sphinx
-BuildRequires: python-cffi
+BuildRequires: python-cffi >= 1.7.0
BuildRequires: python-devel
-BuildRequires: python-enum34
+BuildRequires: python-enum34 >= 1.0.4
BuildRequires: python-eventlet >= 0.18.2
-BuildRequires: python-greenlet >= 0.3.2
+BuildRequires: python-greenlet >= 0.4.10
BuildRequires: python-msgpack-python >= 0.4.0
-BuildRequires: python-openstackdocstheme >= 1.11.0
-BuildRequires: python-oslo.config >= 4.0.0
-BuildRequires: python-oslo.i18n >= 2.1.0
-BuildRequires: python-oslo.log >= 3.22.0
-BuildRequires: python-oslo.utils >= 3.20.0
+BuildRequires: python-openstackdocstheme >= 1.17.0
+BuildRequires: python-oslo.config >= 4.6.0
+BuildRequires: python-oslo.i18n >= 3.15.3
+BuildRequires: python-oslo.log >= 3.30.0
+BuildRequires: python-oslo.utils >= 3.31.0
BuildRequires: python-oslotest >= 1.10.0
BuildRequires: python-pbr >= 2.0.0
BuildRequires: python-setuptools >= 16.0
Requires: python-Babel >= 2.3.4
-Requires: python-cffi
-Requires: python-enum34
+Requires: python-cffi >= 1.7.0
+Requires: python-enum34 >= 1.0.4
Requires: python-eventlet >= 0.18.2
-Requires: python-greenlet >= 0.3.2
+Requires: python-greenlet >= 0.4.10
Requires: python-msgpack-python >= 0.4.0
-Requires: python-oslo.config >= 4.0.0
-Requires: python-oslo.i18n >= 2.1.0
-Requires: python-oslo.log >= 3.22.0
-Requires: python-oslo.utils >= 3.20.0
+Requires: python-oslo.config >= 4.6.0
+Requires: python-oslo.i18n >= 3.15.3
+Requires: python-oslo.log >= 3.30.0
+Requires: python-oslo.utils >= 3.31.0
BuildArch: noarch
%description
@@ -66,7 +65,7 @@
Documentation for oslo.privsep
%prep
-%autosetup -n %{sname}-%{version}
+%autosetup -p1 -n oslo.privsep-1.26.0
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
@@ -93,7 +92,7 @@
%license LICENSE
%{_bindir}/privsep-helper
%{python2_sitelib}/oslo_privsep
-%{python2_sitelib}/%{sname}-*-py?.?.egg-info
+%{python2_sitelib}/oslo.privsep-*-py?.?.egg-info
%files doc
%doc doc/build/html
++++++ _service ++++++
--- /var/tmp/diff_new_pack.6TICn9/_old 2018-01-24 15:27:54.513646676 +0100
+++ /var/tmp/diff_new_pack.6TICn9/_new 2018-01-24 15:27:54.513646676 +0100
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/openstack/oslo.privsep/oslo.privsep.spec.j2</param>
+ <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/master/openstack/oslo.privsep/oslo.privsep.spec.j2</param>
<param name="output-name">python-oslo.privsep.spec</param>
- <param
name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/pike/global-requirements.txt</param>
+ <param
name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/master/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,oslo.privsep</param>
</service>
++++++ oslo.privsep-1.22.0.tar.gz -> oslo.privsep-1.26.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/AUTHORS
new/oslo.privsep-1.26.0/AUTHORS
--- old/oslo.privsep-1.22.0/AUTHORS 2017-07-18 15:10:54.000000000 +0200
+++ new/oslo.privsep-1.26.0/AUTHORS 2018-01-08 15:14:21.000000000 +0100
@@ -20,6 +20,7 @@
Vu Cong Tuan <[email protected]>
Walter A. Boring IV <[email protected]>
Zhihai Song <[email protected]>
+Zuul <[email protected]>
avnish <[email protected]>
liangcui <[email protected]>
loooosy <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/ChangeLog
new/oslo.privsep-1.26.0/ChangeLog
--- old/oslo.privsep-1.22.0/ChangeLog 2017-07-18 15:10:54.000000000 +0200
+++ new/oslo.privsep-1.26.0/ChangeLog 2018-01-08 15:14:21.000000000 +0100
@@ -1,6 +1,40 @@
CHANGES
=======
+1.26.0
+------
+
+* Updated from global requirements
+
+1.25.0
+------
+
+* Expose caps values/names as int enum
+* add bandit to pep8 job
+
+1.24.0
+------
+
+* Remove -U from pip install
+* Avoid tox\_install.sh for constraints support
+* Updated from global requirements
+* Remove setting of version/release from releasenotes
+* Updated from global requirements
+* Updated from global requirements
+* Imported Translations from Zanata
+* Updated from global requirements
+* Updated from global requirements
+
+1.23.0
+------
+
+* Updated from global requirements
+* Imported Translations from Zanata
+* Updated from global requirements
+* Update reno for stable/pike
+* Updated from global requirements
+* Update capabilities from current kernel source
+
1.22.0
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/PKG-INFO
new/oslo.privsep-1.26.0/PKG-INFO
--- old/oslo.privsep-1.22.0/PKG-INFO 2017-07-18 15:10:55.000000000 +0200
+++ new/oslo.privsep-1.26.0/PKG-INFO 2018-01-08 15:14:22.000000000 +0100
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: oslo.privsep
-Version: 1.22.0
+Version: 1.26.0
Summary: OpenStack library for privilege separation
Home-page: https://docs.openstack.org/oslo.privsep/latest/
Author: OpenStack
Author-email: [email protected]
License: UNKNOWN
+Description-Content-Type: UNKNOWN
Description: ========================
Team and repository tags
========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/oslo.privsep.egg-info/PKG-INFO
new/oslo.privsep-1.26.0/oslo.privsep.egg-info/PKG-INFO
--- old/oslo.privsep-1.22.0/oslo.privsep.egg-info/PKG-INFO 2017-07-18
15:10:54.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo.privsep.egg-info/PKG-INFO 2018-01-08
15:14:21.000000000 +0100
@@ -1,11 +1,12 @@
Metadata-Version: 1.1
Name: oslo.privsep
-Version: 1.22.0
+Version: 1.26.0
Summary: OpenStack library for privilege separation
Home-page: https://docs.openstack.org/oslo.privsep/latest/
Author: OpenStack
Author-email: [email protected]
License: UNKNOWN
+Description-Content-Type: UNKNOWN
Description: ========================
Team and repository tags
========================
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo.privsep.egg-info/SOURCES.txt
new/oslo.privsep-1.26.0/oslo.privsep.egg-info/SOURCES.txt
--- old/oslo.privsep-1.22.0/oslo.privsep.egg-info/SOURCES.txt 2017-07-18
15:10:55.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo.privsep.egg-info/SOURCES.txt 2018-01-08
15:14:22.000000000 +0100
@@ -36,11 +36,7 @@
oslo_privsep/daemon.py
oslo_privsep/priv_context.py
oslo_privsep/version.py
-oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep-log-warning.po
oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep.po
-oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-error.po
-oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-info.po
-oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-warning.po
oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep.po
oslo_privsep/tests/__init__.py
oslo_privsep/tests/fixture.py
@@ -54,8 +50,9 @@
releasenotes/source/index.rst
releasenotes/source/newton.rst
releasenotes/source/ocata.rst
+releasenotes/source/pike.rst
releasenotes/source/unreleased.rst
releasenotes/source/_static/.placeholder
releasenotes/source/_templates/.placeholder
-releasenotes/source/locale/fr/LC_MESSAGES/releasenotes.po
-tools/tox_install.sh
\ No newline at end of file
+releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
+releasenotes/source/locale/fr/LC_MESSAGES/releasenotes.po
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/oslo.privsep.egg-info/pbr.json
new/oslo.privsep-1.26.0/oslo.privsep.egg-info/pbr.json
--- old/oslo.privsep-1.22.0/oslo.privsep.egg-info/pbr.json 2017-07-18
15:10:54.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo.privsep.egg-info/pbr.json 2018-01-08
15:14:22.000000000 +0100
@@ -1 +1 @@
-{"git_version": "d24b988", "is_release": true}
\ No newline at end of file
+{"git_version": "aa88295", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo.privsep.egg-info/requires.txt
new/oslo.privsep-1.26.0/oslo.privsep.egg-info/requires.txt
--- old/oslo.privsep-1.22.0/oslo.privsep.egg-info/requires.txt 2017-07-18
15:10:54.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo.privsep.egg-info/requires.txt 2018-01-08
15:14:21.000000000 +0100
@@ -1,9 +1,9 @@
-oslo.log>=3.22.0
-oslo.i18n!=3.15.2,>=2.1.0
-oslo.config!=4.3.0,!=4.4.0,>=4.0.0
-oslo.utils>=3.20.0
-enum34
-cffi
+oslo.log>=3.30.0
+oslo.i18n>=3.15.3
+oslo.config>=5.1.0
+oslo.utils>=3.33.0
+enum34>=1.0.4
+cffi>=1.7.0
eventlet!=0.18.3,!=0.20.1,<0.21.0,>=0.18.2
-greenlet>=0.3.2
+greenlet>=0.4.10
msgpack-python>=0.4.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/oslo_privsep/capabilities.py
new/oslo.privsep-1.26.0/oslo_privsep/capabilities.py
--- old/oslo.privsep-1.22.0/oslo_privsep/capabilities.py 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo_privsep/capabilities.py 2018-01-08
15:11:31.000000000 +0100
@@ -12,30 +12,69 @@
# License for the specific language governing permissions and limitations
# under the License.
+import enum
import os
import platform
+import sys
import cffi
-# Expand as necessary
-CAP_CHOWN = 0
-CAP_DAC_OVERRIDE = 1
-CAP_FOWNER = 3
-CAP_KILL = 5
-CAP_SETPCAP = 8
-CAP_NET_BIND_SERVICE = 10
-CAP_NET_BROADCAST = 11
-CAP_NET_ADMIN = 12
-CAP_NET_RAW = 13
-CAP_SYS_ADMIN = 21
-# Convenience dicts for human readable values
+class Capabilities(enum.IntEnum):
+ # Generated with:
+ # awk '/^#define CAP_[A-Z_]+[ \t]+[0-9]+/ {print $2,"=",$3}' \
+ # include/uapi/linux/capability.h
+ # From the 4.11.11 kernel and the kernel git SHA:235b84fc862
+ # Will need to be refreshed as new capabilites are added to the kernel
+ CAP_CHOWN = 0
+ CAP_DAC_OVERRIDE = 1
+ CAP_DAC_READ_SEARCH = 2
+ CAP_FOWNER = 3
+ CAP_FSETID = 4
+ CAP_KILL = 5
+ CAP_SETGID = 6
+ CAP_SETUID = 7
+ CAP_SETPCAP = 8
+ CAP_LINUX_IMMUTABLE = 9
+ CAP_NET_BIND_SERVICE = 10
+ CAP_NET_BROADCAST = 11
+ CAP_NET_ADMIN = 12
+ CAP_NET_RAW = 13
+ CAP_IPC_LOCK = 14
+ CAP_IPC_OWNER = 15
+ CAP_SYS_MODULE = 16
+ CAP_SYS_RAWIO = 17
+ CAP_SYS_CHROOT = 18
+ CAP_SYS_PTRACE = 19
+ CAP_SYS_PACCT = 20
+ CAP_SYS_ADMIN = 21
+ CAP_SYS_BOOT = 22
+ CAP_SYS_NICE = 23
+ CAP_SYS_RESOURCE = 24
+ CAP_SYS_TIME = 25
+ CAP_SYS_TTY_CONFIG = 26
+ CAP_MKNOD = 27
+ CAP_LEASE = 28
+ CAP_AUDIT_WRITE = 29
+ CAP_AUDIT_CONTROL = 30
+ CAP_SETFCAP = 31
+ CAP_MAC_OVERRIDE = 32
+ CAP_MAC_ADMIN = 33
+ CAP_SYSLOG = 34
+ CAP_WAKE_ALARM = 35
+ CAP_BLOCK_SUSPEND = 36
+ CAP_AUDIT_READ = 37
+
+
CAPS_BYNAME = {}
CAPS_BYVALUE = {}
-for k, v in globals().copy().items():
- if k.startswith('CAP_'):
- CAPS_BYNAME[k] = v
- CAPS_BYVALUE[v] = k
+module = sys.modules[__name__]
+# Convenience dicts for human readable values
+# module attributes for backwards compat/convenience
+for c in Capabilities:
+ CAPS_BYNAME[c.name] = c.value
+ CAPS_BYVALUE[c.value] = c.name
+ setattr(module, c.name, c.value)
CDEF = '''
/* Edited highlights from `echo '#include <sys/capability.h>' | gcc -E -` */
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/oslo_privsep/comm.py
new/oslo.privsep-1.26.0/oslo_privsep/comm.py
--- old/oslo.privsep-1.22.0/oslo_privsep/comm.py 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo_privsep/comm.py 2018-01-08
15:11:31.000000000 +0100
@@ -131,7 +131,9 @@
self.out_of_band(data)
else:
with self.lock:
- assert msgid in self.outstanding_msgs
+ if msgid not in self.outstanding_msgs:
+ raise AssertionError("msgid should in "
+ "outstanding_msgs.")
self.outstanding_msgs[msgid].set_result(data)
# EOF. Perhaps the privileged process exited?
@@ -154,7 +156,8 @@
future = Future(self.lock)
with self.lock:
- assert myid not in self.outstanding_msgs
+ if myid in self.outstanding_msgs:
+ raise AssertionError("myid shoudn't be in outstanding_msgs.")
self.outstanding_msgs[myid] = future
try:
self.writer.send((myid, msg))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep-log-warning.po
new/oslo.privsep-1.26.0/oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep-log-warning.po
---
old/oslo.privsep-1.22.0/oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep-log-warning.po
2017-07-18 15:08:39.000000000 +0200
+++
new/oslo.privsep-1.26.0/oslo_privsep/locale/de/LC_MESSAGES/oslo_privsep-log-warning.po
1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-# Andreas Jaeger <[email protected]>, 2016. #zanata
-msgid ""
-msgstr ""
-"Project-Id-Version: oslo.privsep 1.5.1.dev2\n"
-"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
-"POT-Creation-Date: 2016-04-19 13:52+0000\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2015-11-13 04:56+0000\n"
-"Last-Translator: Andreas Jaeger <[email protected]>\n"
-"Language-Team: German\n"
-"Language: de\n"
-"X-Generator: Zanata 3.7.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-
-msgid "privsep daemon already running"
-msgstr "Der Privsep Dämon läuft bereits."
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-error.po
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-error.po
---
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-error.po
2017-07-18 15:08:39.000000000 +0200
+++
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-error.po
1970-01-01 01:00:00.000000000 +0100
@@ -1,26 +0,0 @@
-# Andi Chandler <[email protected]>, 2016. #zanata
-msgid ""
-msgstr ""
-"Project-Id-Version: oslo.privsep 1.7.1.dev1\n"
-"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
-"POT-Creation-Date: 2016-06-10 16:43+0000\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2016-06-09 11:12+0000\n"
-"Last-Translator: Andi Chandler <[email protected]>\n"
-"Language-Team: English (United Kingdom)\n"
-"Language: en-GB\n"
-"X-Generator: Zanata 3.7.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-
-msgid "--privsep_context must be the (python) name of a PrivContext object"
-msgstr "--privsep_context must be the (python) name of a PrivContext object"
-
-#, python-format
-msgid "Error while sending initial PING to privsep: %s"
-msgstr "Error while sending initial PING to privsep: %s"
-
-#, python-format
-msgid "privsep helper command exited non-zero (%s)"
-msgstr "privsep helper command exited non-zero (%s)"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-info.po
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-info.po
---
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-info.po
2017-07-18 15:08:39.000000000 +0200
+++
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-info.po
1970-01-01 01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-# Andi Chandler <[email protected]>, 2016. #zanata
-msgid ""
-msgstr ""
-"Project-Id-Version: oslo.privsep 1.7.1.dev1\n"
-"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
-"POT-Creation-Date: 2016-06-10 16:43+0000\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2016-06-09 11:13+0000\n"
-"Last-Translator: Andi Chandler <[email protected]>\n"
-"Language-Team: English (United Kingdom)\n"
-"Language: en-GB\n"
-"X-Generator: Zanata 3.7.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-
-#, python-format
-msgid "Running privsep helper: %s"
-msgstr "Running privsep helper: %s"
-
-msgid "Spawned new privsep daemon via rootwrap"
-msgstr "Spawned new privsep daemon via rootwrap"
-
-#, python-format
-msgid "privsep daemon running as pid %s"
-msgstr "privsep daemon running as pid %s"
-
-msgid "privsep daemon starting"
-msgstr "privsep daemon starting"
-
-#, python-format
-msgid ""
-"privsep process running with capabilities (eff/prm/inh): %(eff)s/%(prm)s/"
-"%(inh)s"
-msgstr ""
-"privsep process running with capabilities (eff/prm/inh): %(eff)s/%(prm)s/"
-"%(inh)s"
-
-#, python-format
-msgid "privsep process running with uid/gid: %(uid)s/%(gid)s"
-msgstr "privsep process running with uid/gid: %(uid)s/%(gid)s"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-warning.po
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-warning.po
---
old/oslo.privsep-1.22.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-warning.po
2017-07-18 15:08:39.000000000 +0200
+++
new/oslo.privsep-1.26.0/oslo_privsep/locale/en_GB/LC_MESSAGES/oslo_privsep-log-warning.po
1970-01-01 01:00:00.000000000 +0100
@@ -1,18 +0,0 @@
-# Andi Chandler <[email protected]>, 2016. #zanata
-msgid ""
-msgstr ""
-"Project-Id-Version: oslo.privsep 1.7.1.dev1\n"
-"Report-Msgid-Bugs-To: https://bugs.launchpad.net/openstack-i18n/\n"
-"POT-Creation-Date: 2016-06-10 16:43+0000\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=UTF-8\n"
-"Content-Transfer-Encoding: 8bit\n"
-"PO-Revision-Date: 2016-06-09 11:13+0000\n"
-"Last-Translator: Andi Chandler <[email protected]>\n"
-"Language-Team: English (United Kingdom)\n"
-"Language: en-GB\n"
-"X-Generator: Zanata 3.7.3\n"
-"Plural-Forms: nplurals=2; plural=(n != 1)\n"
-
-msgid "privsep daemon already running"
-msgstr "privsep daemon already running"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/oslo_privsep/priv_context.py
new/oslo.privsep-1.26.0/oslo_privsep/priv_context.py
--- old/oslo.privsep-1.22.0/oslo_privsep/priv_context.py 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo_privsep/priv_context.py 2018-01-08
15:11:31.000000000 +0100
@@ -134,12 +134,12 @@
# alternative above.
# These asserts here are just attempts to catch errors earlier.
# TODO(gus): Consider replacing with setuptools entry_points.
- assert self.pypath is not None, (
- 'helper_command requires priv_context '
- 'pypath to be specified')
- assert importutils.import_class(self.pypath) is self, (
- 'helper_command requires priv_context pypath '
- 'for context object')
+ if self.pypath is None:
+ raise AssertionError('helper_command requires priv_context '
+ 'pypath to be specified')
+ if importutils.import_class(self.pypath) is not self:
+ raise AssertionError('helper_command requires priv_context '
+ 'pypath for context object')
# Note order is important here. Deployments will (hopefully)
# have the exact arguments in sudoers/rootwrap configs and
@@ -179,16 +179,18 @@
def entrypoint(self, func):
"""This is intended to be used as a decorator."""
- assert func.__module__.startswith(self.prefix), (
- '%r entrypoints must be below "%s"' % (self, self.prefix))
+ if not func.__module__.startswith(self.prefix):
+ raise AssertionError('%r entrypoints must be below "%s"' %
+ (self, self.prefix))
# Right now, we only track a single context in
# _ENTRYPOINT_ATTR. This could easily be expanded into a set,
# but that will increase the memory overhead. Revisit if/when
# someone has a need to associate the same entrypoint with
# multiple contexts.
- assert getattr(func, _ENTRYPOINT_ATTR, None) is None, (
- '%r is already associated with another PrivContext' % func)
+ if getattr(func, _ENTRYPOINT_ATTR, None) is not None:
+ raise AssertionError('%r is already associated with another '
+ 'PrivContext' % func)
f = functools.partial(self._wrap, func)
setattr(f, _ENTRYPOINT_ATTR, self)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/oslo_privsep/tests/test_priv_context.py
new/oslo.privsep-1.26.0/oslo_privsep/tests/test_priv_context.py
--- old/oslo.privsep-1.22.0/oslo_privsep/tests/test_priv_context.py
2017-07-18 15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/oslo_privsep/tests/test_priv_context.py
2018-01-08 15:11:31.000000000 +0100
@@ -18,6 +18,7 @@
import pipes
import platform
import sys
+import tempfile
import mock
import testtools
@@ -82,37 +83,40 @@
def test_helper_command(self):
self.privsep_conf.privsep.helper_command = 'foo --bar'
- cmd = testctx.context.helper_command('/tmp/sockpath')
+ _, temp_path = tempfile.mkstemp()
+ cmd = testctx.context.helper_command(temp_path)
expected = [
'foo', '--bar',
'--privsep_context', testctx.context.pypath,
- '--privsep_sock_path', '/tmp/sockpath',
+ '--privsep_sock_path', temp_path,
]
self.assertEqual(expected, cmd)
def test_helper_command_default(self):
self.privsep_conf.config_file = ['/bar.conf']
- cmd = testctx.context.helper_command('/tmp/sockpath')
+ _, temp_path = tempfile.mkstemp()
+ cmd = testctx.context.helper_command(temp_path)
expected = [
'sudo', 'privsep-helper',
'--config-file', '/bar.conf',
# --config-dir arg should be skipped
'--privsep_context', testctx.context.pypath,
- '--privsep_sock_path', '/tmp/sockpath',
+ '--privsep_sock_path', temp_path,
]
self.assertEqual(expected, cmd)
def test_helper_command_default_dirtoo(self):
self.privsep_conf.config_file = ['/bar.conf', '/baz.conf']
self.privsep_conf.config_dir = ['/foo.d']
- cmd = testctx.context.helper_command('/tmp/sockpath')
+ _, temp_path = tempfile.mkstemp()
+ cmd = testctx.context.helper_command(temp_path)
expected = [
'sudo', 'privsep-helper',
'--config-file', '/bar.conf',
'--config-file', '/baz.conf',
'--config-dir', '/foo.d',
'--privsep_context', testctx.context.pypath,
- '--privsep_sock_path', '/tmp/sockpath',
+ '--privsep_sock_path', temp_path,
]
self.assertEqual(expected, cmd)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/releasenotes/source/conf.py
new/oslo.privsep-1.26.0/releasenotes/source/conf.py
--- old/oslo.privsep-1.22.0/releasenotes/source/conf.py 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/releasenotes/source/conf.py 2018-01-08
15:11:31.000000000 +0100
@@ -61,16 +61,12 @@
project = u'oslo.privsep Release Notes'
copyright = u'2016, oslo.privsep Developers'
-# The version info for the project you're documenting, acts as replacement for
-# |version| and |release|, also used in various other places throughout the
-# built documents.
-#
-# The short X.Y version.
-from oslo_privsep.version import version_info as oslo_privsep_version
+# Release notes do not need a version in the title, they span
+# multiple versions.
# The full version, including alpha/beta/rc tags.
-release = oslo_privsep_version.version_string_with_vcs()
+release = ''
# The short X.Y version.
-version = oslo_privsep_version.canonical_version_string()
+version = ''
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/releasenotes/source/index.rst
new/oslo.privsep-1.26.0/releasenotes/source/index.rst
--- old/oslo.privsep-1.22.0/releasenotes/source/index.rst 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/releasenotes/source/index.rst 2018-01-08
15:11:31.000000000 +0100
@@ -6,5 +6,6 @@
:maxdepth: 1
unreleased
+ pike
ocata
newton
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.privsep-1.22.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
new/oslo.privsep-1.26.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
---
old/oslo.privsep-1.22.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
1970-01-01 01:00:00.000000000 +0100
+++
new/oslo.privsep-1.26.0/releasenotes/source/locale/en_GB/LC_MESSAGES/releasenotes.po
2018-01-08 15:11:31.000000000 +0100
@@ -0,0 +1,39 @@
+# Andi Chandler <[email protected]>, 2017. #zanata
+msgid ""
+msgstr ""
+"Project-Id-Version: oslo.privsep Release Notes 1.23.1\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2017-09-20 20:59+0000\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"PO-Revision-Date: 2017-10-07 09:29+0000\n"
+"Last-Translator: Andi Chandler <[email protected]>\n"
+"Language-Team: English (United Kingdom)\n"
+"Language: en-GB\n"
+"X-Generator: Zanata 3.9.6\n"
+"Plural-Forms: nplurals=2; plural=(n != 1)\n"
+
+msgid "1.13.0"
+msgstr "1.13.0"
+
+msgid "Newton Series Release Notes"
+msgstr "Newton Series Release Notes"
+
+msgid "Ocata Series Release Notes"
+msgstr "Ocata Series Release Notes"
+
+msgid "Other Notes"
+msgstr "Other Notes"
+
+msgid "Pike Series Release Notes"
+msgstr "Pike Series Release Notes"
+
+msgid "Switch to reno for managing release notes."
+msgstr "Switch to Reno for managing release notes."
+
+msgid "Unreleased Release Notes"
+msgstr "Unreleased Release Notes"
+
+msgid "oslo.privsep Release Notes"
+msgstr "oslo.privsep Release Notes"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/releasenotes/source/pike.rst
new/oslo.privsep-1.26.0/releasenotes/source/pike.rst
--- old/oslo.privsep-1.22.0/releasenotes/source/pike.rst 1970-01-01
01:00:00.000000000 +0100
+++ new/oslo.privsep-1.26.0/releasenotes/source/pike.rst 2018-01-08
15:11:31.000000000 +0100
@@ -0,0 +1,6 @@
+===================================
+ Pike Series Release Notes
+===================================
+
+.. release-notes::
+ :branch: stable/pike
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/requirements.txt
new/oslo.privsep-1.26.0/requirements.txt
--- old/oslo.privsep-1.22.0/requirements.txt 2017-07-18 15:08:39.000000000
+0200
+++ new/oslo.privsep-1.26.0/requirements.txt 2018-01-08 15:11:31.000000000
+0100
@@ -2,12 +2,12 @@
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-oslo.log>=3.22.0 # Apache-2.0
-oslo.i18n!=3.15.2,>=2.1.0 # Apache-2.0
-oslo.config!=4.3.0,!=4.4.0,>=4.0.0 # Apache-2.0
-oslo.utils>=3.20.0 # Apache-2.0
-enum34;python_version=='2.7' or python_version=='2.6' or python_version=='3.3'
# BSD
-cffi # MIT
+oslo.log>=3.30.0 # Apache-2.0
+oslo.i18n>=3.15.3 # Apache-2.0
+oslo.config>=5.1.0 # Apache-2.0
+oslo.utils>=3.33.0 # Apache-2.0
+enum34>=1.0.4;python_version=='2.7' or python_version=='2.6' or
python_version=='3.3' # BSD
+cffi>=1.7.0 # MIT
eventlet!=0.18.3,!=0.20.1,<0.21.0,>=0.18.2 # MIT
-greenlet>=0.3.2 # MIT
+greenlet>=0.4.10 # MIT
msgpack-python>=0.4.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/test-requirements.txt
new/oslo.privsep-1.26.0/test-requirements.txt
--- old/oslo.privsep-1.22.0/test-requirements.txt 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/test-requirements.txt 2018-01-08
15:11:31.000000000 +0100
@@ -4,10 +4,13 @@
hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
oslotest>=1.10.0 # Apache-2.0
-mock>=2.0 # BSD
+mock>=2.0.0 # BSD
fixtures>=3.0.0 # Apache-2.0/BSD
# These are needed for docs generation
-openstackdocstheme>=1.11.0 # Apache-2.0
+openstackdocstheme>=1.17.0 # Apache-2.0
sphinx>=1.6.2 # BSD
-reno!=2.3.1,>=1.8.0 # Apache-2.0
+reno>=2.5.0 # Apache-2.0
+
+# Bandit security code scanner
+bandit>=1.1.0 # Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/tools/tox_install.sh
new/oslo.privsep-1.26.0/tools/tox_install.sh
--- old/oslo.privsep-1.22.0/tools/tox_install.sh 2017-07-18
15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/tools/tox_install.sh 1970-01-01
01:00:00.000000000 +0100
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-
-# Client constraint file contains this client version pin that is in conflict
-# with installing the client from source. We should remove the version pin in
-# the constraints file before applying it for from-source installation.
-
-CONSTRAINTS_FILE="$1"
-shift 1
-
-set -e
-
-# NOTE(tonyb): Place this in the tox enviroment's log dir so it will get
-# published to logs.openstack.org for easy debugging.
-localfile="$VIRTUAL_ENV/log/upper-constraints.txt"
-
-if [[ "$CONSTRAINTS_FILE" != http* ]]; then
- CONSTRAINTS_FILE="file://$CONSTRAINTS_FILE"
-fi
-# NOTE(tonyb): need to add curl to bindep.txt if the project supports bindep
-curl "$CONSTRAINTS_FILE" --insecure --progress-bar --output "$localfile"
-
-pip install -c"$localfile" openstack-requirements
-
-# This is the main purpose of the script: Allow local installation of
-# the current repo. It is listed in constraints file and thus any
-# install will be constrained and we need to unconstrain it.
-edit-constraints "$localfile" -- "$CLIENT_NAME"
-
-pip install -c"$localfile" -U "$@"
-exit $?
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.privsep-1.22.0/tox.ini
new/oslo.privsep-1.26.0/tox.ini
--- old/oslo.privsep-1.22.0/tox.ini 2017-07-18 15:08:39.000000000 +0200
+++ new/oslo.privsep-1.26.0/tox.ini 2018-01-08 15:11:31.000000000 +0100
@@ -3,18 +3,22 @@
envlist = py35,py27,pypy,pep8
[testenv]
-setenv =
- VIRTUAL_ENV={envdir}
- BRANCH_NAME=master
- CLIENT_NAME=oslo.privsep
-install_command = {toxinidir}/tools/tox_install.sh
{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
{opts} {packages}
+install_command = pip install {opts} {packages}
whitelist_externals =
/bin/sh
-deps = -r{toxinidir}/test-requirements.txt
+deps =
+
-c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
+ -r{toxinidir}/test-requirements.txt
+ -r{toxinidir}/requirements.txt
commands = 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_privsep tests -n5 --skip B404,B603
[testenv:venv]
commands = {posargs}