Hello community,
here is the log from the commit of package python-oslo.serialization for
openSUSE:Factory checked in at 2018-03-19 23:36:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.serialization (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.serialization.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.serialization"
Mon Mar 19 23:36:23 2018 rev:10 rq:583348 version:2.24.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-oslo.serialization/python-oslo.serialization.changes
2018-01-17 21:56:46.939513170 +0100
+++
/work/SRC/openSUSE:Factory/.python-oslo.serialization.new/python-oslo.serialization.changes
2018-03-19 23:36:27.529507779 +0100
@@ -1,0 +2,18 @@
+Fri Feb 23 13:27:33 UTC 2018 - [email protected]
+
+- Switch to stable/queens spec template
+
+-------------------------------------------------------------------
+Mon Feb 12 10:05:15 UTC 2018 - [email protected]
+
+- update to version 2.24.0
+ - When serializing an exception return its 'repr'
+ - Remove -U from pip install
+ - Remove setting of version/release from releasenotes
+ - Update .gitreview for stable/queens
+ - Avoid tox_install.sh for constraints support
+ - Add bandit to pep8 job
+ - Updated from global requirements
+ - msgpack-python has been renamed to msgpack
+
+-------------------------------------------------------------------
@@ -4 +22 @@
-- update to version 2.21.1
+- update to version 2.21.1 (bsc#1078607)
Old:
----
oslo.serialization-2.21.1.tar.gz
New:
----
oslo.serialization-2.24.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.serialization.spec ++++++
--- /var/tmp/diff_new_pack.lbiLid/_old 2018-03-19 23:36:28.509472427 +0100
+++ /var/tmp/diff_new_pack.lbiLid/_new 2018-03-19 23:36:28.521471994 +0100
@@ -17,33 +17,33 @@
Name: python-oslo.serialization
-Version: 2.21.1
+Version: 2.24.0
Release: 0
Summary: OpenStack serialization library
License: Apache-2.0
Group: Development/Languages/Python
Url: https://launchpad.net/oslo.serialization
-Source0:
https://files.pythonhosted.org/packages/source/o/oslo.serialization/oslo.serialization-2.21.1.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.serialization/oslo.serialization-2.24.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python-devel
BuildRequires: python2-ipaddress >= 1.0.16
BuildRequires: python2-mock >= 2.0.0
-BuildRequires: python2-msgpack-python >= 0.4.0
+BuildRequires: python2-msgpack >= 0.4.0
BuildRequires: python2-netaddr >= 0.7.18
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: python3-devel
BuildRequires: python3-mock >= 2.0.0
-BuildRequires: python3-msgpack-python >= 0.4.0
+BuildRequires: python3-msgpack >= 0.4.0
BuildRequires: python3-netaddr >= 0.7.18
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
-Requires: python-msgpack-python >= 0.4.0
-Requires: python-oslo.utils >= 3.31.0
+Requires: python-msgpack >= 0.4.0
+Requires: python-oslo.utils >= 3.33.0
Requires: python-pytz >= 2013.6
Requires: python-six >= 1.10.0
BuildArch: noarch
@@ -57,7 +57,7 @@
Summary: Documentation for OpenStack serialization library
Group: Development/Languages/Python
BuildRequires: python-Sphinx
-BuildRequires: python-openstackdocstheme >= 1.17.0
+BuildRequires: python-openstackdocstheme >= 1.18.1
%description -n python-oslo.serialization-doc
The oslo.serialization library provides support for representing objects
@@ -65,7 +65,7 @@
This package contains the documentation.
%prep
-%autosetup -p1 -n oslo.serialization-2.21.1
+%autosetup -p1 -n oslo.serialization-2.24.0
%py_req_cleanup
sed -i 's/^warning-is-error.*/warning-is-error = 0/g' setup.cfg
++++++ _service ++++++
--- /var/tmp/diff_new_pack.lbiLid/_old 2018-03-19 23:36:28.557470696 +0100
+++ /var/tmp/diff_new_pack.lbiLid/_new 2018-03-19 23:36:28.561470551 +0100
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/master/openstack/oslo.serialization/oslo.serialization.spec.j2</param>
+ <param
name="input-template">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/queens/openstack/oslo.serialization/oslo.serialization.spec.j2</param>
<param name="output-name">python-oslo.serialization.spec</param>
- <param
name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/master/requirements.txt</param>
+ <param
name="requirements">https://raw.githubusercontent.com/openstack/rpm-packaging/stable/queens/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,oslo.serialization</param>
</service>
++++++ oslo.serialization-2.21.1.tar.gz -> oslo.serialization-2.24.0.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-2.21.1/AUTHORS
new/oslo.serialization-2.24.0/AUTHORS
--- old/oslo.serialization-2.21.1/AUTHORS 2017-10-04 16:06:17.000000000
+0200
+++ new/oslo.serialization-2.24.0/AUTHORS 2018-02-07 05:04:03.000000000
+0100
@@ -1,5 +1,6 @@
Akihiro Motoki <[email protected]>
Alexander Gorodnev <[email protected]>
+Andreas Jaeger <[email protected]>
Andreas Jaeger <[email protected]>
Ann Kamyshnikova <[email protected]>
Ben Nemec <[email protected]>
@@ -61,6 +62,7 @@
ZhiQiang Fan <[email protected]>
Zhongyue Luo <[email protected]>
Zhongyue Luo <[email protected]>
+Zuul <[email protected]>
avnish <[email protected]>
gecong1973 <[email protected]>
ricolin <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-2.21.1/ChangeLog
new/oslo.serialization-2.24.0/ChangeLog
--- old/oslo.serialization-2.21.1/ChangeLog 2017-10-04 16:06:17.000000000
+0200
+++ new/oslo.serialization-2.24.0/ChangeLog 2018-02-07 05:04:03.000000000
+0100
@@ -1,6 +1,32 @@
CHANGES
=======
+2.24.0
+------
+
+* msgpack-python has been renamed to msgpack
+* Update .gitreview for stable/queens
+
+2.23.0
+------
+
+* Updated from global requirements
+* Add bandit to pep8 job
+
+2.22.0
+------
+
+* Remove -U from pip install
+* Avoid tox\_install.sh for constraints support
+* Remove setting of version/release from releasenotes
+* Updated from global requirements
+* Updated from global requirements
+
+2.21.2
+------
+
+* When serializing an exception return its 'repr'
+
2.21.1
------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-2.21.1/PKG-INFO
new/oslo.serialization-2.24.0/PKG-INFO
--- old/oslo.serialization-2.21.1/PKG-INFO 2017-10-04 16:06:18.000000000
+0200
+++ new/oslo.serialization-2.24.0/PKG-INFO 2018-02-07 05:04:04.000000000
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: oslo.serialization
-Version: 2.21.1
+Version: 2.24.0
Summary: Oslo Serialization library
Home-page: http://docs.openstack.org/developer/oslo.serialization/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo.serialization.egg-info/PKG-INFO
new/oslo.serialization-2.24.0/oslo.serialization.egg-info/PKG-INFO
--- old/oslo.serialization-2.21.1/oslo.serialization.egg-info/PKG-INFO
2017-10-04 16:06:17.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo.serialization.egg-info/PKG-INFO
2018-02-07 05:04:03.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: oslo.serialization
-Version: 2.21.1
+Version: 2.24.0
Summary: Oslo Serialization library
Home-page: http://docs.openstack.org/developer/oslo.serialization/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo.serialization.egg-info/SOURCES.txt
new/oslo.serialization-2.24.0/oslo.serialization.egg-info/SOURCES.txt
--- old/oslo.serialization-2.21.1/oslo.serialization.egg-info/SOURCES.txt
2017-10-04 16:06:18.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo.serialization.egg-info/SOURCES.txt
2018-02-07 05:04:04.000000000 +0100
@@ -46,5 +46,4 @@
releasenotes/source/pike.rst
releasenotes/source/unreleased.rst
releasenotes/source/_static/.placeholder
-releasenotes/source/_templates/.placeholder
-tools/tox_install.sh
\ No newline at end of file
+releasenotes/source/_templates/.placeholder
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo.serialization.egg-info/pbr.json
new/oslo.serialization-2.24.0/oslo.serialization.egg-info/pbr.json
--- old/oslo.serialization-2.21.1/oslo.serialization.egg-info/pbr.json
2017-10-04 16:06:17.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo.serialization.egg-info/pbr.json
2018-02-07 05:04:03.000000000 +0100
@@ -1 +1 @@
-{"git_version": "cdb2f60", "is_release": true}
\ No newline at end of file
+{"git_version": "d4ae9c0", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo.serialization.egg-info/requires.txt
new/oslo.serialization-2.24.0/oslo.serialization.egg-info/requires.txt
--- old/oslo.serialization-2.21.1/oslo.serialization.egg-info/requires.txt
2017-10-04 16:06:17.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo.serialization.egg-info/requires.txt
2018-02-07 05:04:03.000000000 +0100
@@ -1,5 +1,5 @@
pbr!=2.1.0,>=2.0.0
-six>=1.9.0
-msgpack-python>=0.4.0
-oslo.utils>=3.28.0
+six>=1.10.0
+msgpack>=0.4.0
+oslo.utils>=3.33.0
pytz>=2013.6
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo_serialization/jsonutils.py
new/oslo.serialization-2.24.0/oslo_serialization/jsonutils.py
--- old/oslo.serialization-2.21.1/oslo_serialization/jsonutils.py
2017-10-04 16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo_serialization/jsonutils.py
2018-02-07 05:00:30.000000000 +0100
@@ -132,6 +132,10 @@
ipaddress.IPv6Address)):
return six.text_type(value)
+ # For exceptions, return the 'repr' of the exception object
+ if isinstance(value, Exception):
+ return repr(value)
+
# value of itertools.count doesn't get caught by nasty_type_tests
# and results in infinite loop when list(value) is called.
if type(value) == itertools.count:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/oslo_serialization/tests/test_jsonutils.py
new/oslo.serialization-2.24.0/oslo_serialization/tests/test_jsonutils.py
--- old/oslo.serialization-2.21.1/oslo_serialization/tests/test_jsonutils.py
2017-10-04 16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.0/oslo_serialization/tests/test_jsonutils.py
2018-02-07 05:00:30.000000000 +0100
@@ -115,6 +115,10 @@
self.assertIsInstance(key, six.text_type)
self.assertIsInstance(val, six.text_type)
+ def test_dumps_exception_value(self):
+ self.assertEqual('{"a": "ValueError(\'hello\',)"}',
+ jsonutils.dumps({"a": ValueError("hello")}))
+
class JSONUtilsTestJson(JSONUtilsTestMixin, test_base.BaseTestCase):
json_impl = json
@@ -401,3 +405,7 @@
ret = jsonutils.to_primitive(obj, fallback=lambda _: 'fallback')
self.assertEqual('fallback', ret)
+
+ def test_exception(self):
+ self.assertEqual("ValueError('an exception',)",
+ jsonutils.to_primitive(ValueError("an exception")))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-2.21.1/releasenotes/source/conf.py
new/oslo.serialization-2.24.0/releasenotes/source/conf.py
--- old/oslo.serialization-2.21.1/releasenotes/source/conf.py 2017-10-04
16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.0/releasenotes/source/conf.py 2018-02-07
05:00:30.000000000 +0100
@@ -60,16 +60,12 @@
project = u'oslo.serialization Release Notes'
copyright = u'2016, oslo.serialization 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.
+# Release notes do not need a version in the title, they span
+# multiple versions.
# The full version, including alpha/beta/rc tags.
-import pkg_resources
-release = pkg_resources.get_distribution('oslo.serialization').version
+release = ''
# The short X.Y version.
-version = release
+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.serialization-2.21.1/requirements.txt
new/oslo.serialization-2.24.0/requirements.txt
--- old/oslo.serialization-2.21.1/requirements.txt 2017-10-04
16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.0/requirements.txt 2018-02-07
05:00:30.000000000 +0100
@@ -8,7 +8,7 @@
# that is a likely indicator that the feature belongs somewhere else.
pbr!=2.1.0,>=2.0.0 # Apache-2.0
-six>=1.9.0 # MIT
-msgpack-python>=0.4.0 # Apache-2.0
-oslo.utils>=3.28.0 # Apache-2.0
+six>=1.10.0 # MIT
+msgpack>=0.4.0 # Apache-2.0
+oslo.utils>=3.33.0 # Apache-2.0
pytz>=2013.6 # MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-2.21.1/test-requirements.txt
new/oslo.serialization-2.24.0/test-requirements.txt
--- old/oslo.serialization-2.21.1/test-requirements.txt 2017-10-04
16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.0/test-requirements.txt 2018-02-07
05:00:53.000000000 +0100
@@ -14,3 +14,6 @@
oslo.i18n>=3.15.3 # Apache-2.0
coverage!=4.4,>=4.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.serialization-2.21.1/tools/tox_install.sh
new/oslo.serialization-2.24.0/tools/tox_install.sh
--- old/oslo.serialization-2.21.1/tools/tox_install.sh 2017-10-04
16:03:51.000000000 +0200
+++ new/oslo.serialization-2.24.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.serialization-2.21.1/tox.ini
new/oslo.serialization-2.24.0/tox.ini
--- old/oslo.serialization-2.21.1/tox.ini 2017-10-04 16:03:51.000000000
+0200
+++ new/oslo.serialization-2.24.0/tox.ini 2018-02-07 05:00:30.000000000
+0100
@@ -3,16 +3,20 @@
envlist = py35,py27,pypy,pep8
[testenv]
-setenv =
- VIRTUAL_ENV={envdir}
- BRANCH_NAME=master
- CLIENT_NAME=oslo.serialization
-install_command = {toxinidir}/tools/tox_install.sh
{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
{opts} {packages}
-deps = -r{toxinidir}/test-requirements.txt
+install_command = pip install {opts} {packages}
+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_serialization tests -n5
[testenv:venv]
commands = {posargs}