Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-oslo.serialization for
openSUSE:Factory checked in at 2021-05-10 15:37:40
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-oslo.serialization (Old)
and /work/SRC/openSUSE:Factory/.python-oslo.serialization.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-oslo.serialization"
Mon May 10 15:37:40 2021 rev:17 rq:889997 version:4.1.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-oslo.serialization/python-oslo.serialization.changes
2020-10-26 16:17:49.607008165 +0100
+++
/work/SRC/openSUSE:Factory/.python-oslo.serialization.new.2988/python-oslo.serialization.changes
2021-05-10 15:39:52.165444079 +0200
@@ -1,0 +2,13 @@
+Sun May 2 17:32:50 UTC 2021 - [email protected]
+
+- update to version 4.1.0
+ - ignore reno generated artifacts
+ - Use py3 as the default runtime for tox
+ - Adding pre-commit
+ - Update master for stable/victoria
+ - Add Python3 wallaby unit tests
+ - Dropping lower constraints testing
+ - Fix hacking min version to 3.0.1
+ - Fix json to_primitive when using IO OBjects
+
+-------------------------------------------------------------------
Old:
----
oslo.serialization-4.0.1.tar.gz
New:
----
oslo.serialization-4.1.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-oslo.serialization.spec ++++++
--- /var/tmp/diff_new_pack.JeoTVs/_old 2021-05-10 15:39:52.645442115 +0200
+++ /var/tmp/diff_new_pack.JeoTVs/_new 2021-05-10 15:39:52.649442098 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-oslo.serialization
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,13 @@
Name: python-oslo.serialization
-Version: 4.0.1
+Version: 4.1.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-4.0.1.tar.gz
+URL: https://docs.openstack.org/oslo.serialization
+Source0:
https://files.pythonhosted.org/packages/source/o/oslo.serialization/oslo.serialization-4.1.0.tar.gz
BuildRequires: openstack-macros
BuildRequires: python3-mock
BuildRequires: python3-msgpack >= 0.5.2
@@ -41,7 +41,6 @@
%package -n python3-oslo.serialization
Summary: OpenStack serialization library
-Group: Development/Languages/Python
Requires: python3-msgpack >= 0.5.2
Requires: python3-oslo.utils >= 3.33.0
Requires: python3-pytz >= 2013.6
@@ -55,7 +54,6 @@
%package -n python-oslo.serialization-doc
Summary: Documentation for OpenStack serialization library
-Group: Development/Languages/Python
BuildRequires: python3-Sphinx
BuildRequires: python3-openstackdocstheme
@@ -65,7 +63,7 @@
This package contains the documentation.
%prep
-%autosetup -p1 -n oslo.serialization-4.0.1
+%autosetup -p1 -n oslo.serialization-4.1.0
sed -i -e "s,bandit.*,," test-requirements.txt
%py_req_cleanup
++++++ _service ++++++
--- /var/tmp/diff_new_pack.JeoTVs/_old 2021-05-10 15:39:52.685441950 +0200
+++ /var/tmp/diff_new_pack.JeoTVs/_new 2021-05-10 15:39:52.685441950 +0200
@@ -1,8 +1,8 @@
<services>
<service mode="disabled" name="renderspec">
- <param
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/victoria/openstack/oslo.serialization/oslo.serialization.spec.j2</param>
+ <param
name="input-template">https://opendev.org/openstack/rpm-packaging/raw/branch/stable/wallaby/openstack/oslo.serialization/oslo.serialization.spec.j2</param>
<param name="output-name">python-oslo.serialization.spec</param>
- <param
name="requirements">https://opendev.org/openstack/oslo.serialization/raw/branch/stable/victoria/requirements.txt</param>
+ <param
name="requirements">https://opendev.org/openstack/oslo.serialization/raw/branch/stable/wallaby/requirements.txt</param>
<param name="changelog-email">[email protected]</param>
<param name="changelog-provider">gh,openstack,oslo.serialization</param>
</service>
++++++ oslo.serialization-4.0.1.tar.gz -> oslo.serialization-4.1.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/.pre-commit-config.yaml
new/oslo.serialization-4.1.0/.pre-commit-config.yaml
--- old/oslo.serialization-4.0.1/.pre-commit-config.yaml 1970-01-01
01:00:00.000000000 +0100
+++ new/oslo.serialization-4.1.0/.pre-commit-config.yaml 2021-02-08
14:22:31.000000000 +0100
@@ -0,0 +1,35 @@
+# We from the Oslo project decided to pin repos based on the
+# commit hash instead of the version tag to prevend arbitrary
+# code from running in developer's machines. To update to a
+# newer version, run `pre-commit autoupdate` and then replace
+# the newer versions with their commit hash.
+
+default_language_version:
+ python: python3
+
+repos:
+ - repo: https://github.com/pre-commit/pre-commit-hooks
+ rev: ebc15addedad713c86ef18ae9632c88e187dd0af # v3.1.0
+ hooks:
+ - id: trailing-whitespace
+ # Replaces or checks mixed line ending
+ - id: mixed-line-ending
+ args: ['--fix', 'lf']
+ exclude: '.*\.(svg)$'
+ # Forbid files which have a UTF-8 byte-order marker
+ - id: check-byte-order-marker
+ # Checks that non-binary executables have a proper shebang
+ - id: check-executables-have-shebangs
+ # Check for files that contain merge conflict strings.
+ - id: check-merge-conflict
+ # Check for debugger imports and py37+ breakpoint()
+ # calls in python source
+ - id: debug-statements
+ - id: check-yaml
+ files: .*\.(yaml|yml)$
+ - repo: https://gitlab.com/pycqa/flake8
+ rev: 181bb46098dddf7e2d45319ea654b4b4d58c2840 # 3.8.3
+ hooks:
+ - id: flake8
+ additional_dependencies:
+ - hacking>=3.0.1,<3.1.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/.zuul.yaml
new/oslo.serialization-4.1.0/.zuul.yaml
--- old/oslo.serialization-4.0.1/.zuul.yaml 2020-09-11 21:19:25.000000000
+0200
+++ new/oslo.serialization-4.1.0/.zuul.yaml 2021-02-08 14:22:31.000000000
+0100
@@ -2,8 +2,7 @@
templates:
- check-requirements
- lib-forward-testing-python3
- - openstack-lower-constraints-jobs
- - openstack-python3-victoria-jobs
+ - openstack-python3-wallaby-jobs
- periodic-stable-jobs
- publish-openstack-docs-pti
- release-notes-jobs-python3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/AUTHORS
new/oslo.serialization-4.1.0/AUTHORS
--- old/oslo.serialization-4.0.1/AUTHORS 2020-09-11 21:20:29.000000000
+0200
+++ new/oslo.serialization-4.1.0/AUTHORS 2021-02-08 14:23:10.000000000
+0100
@@ -21,6 +21,7 @@
Doug Hellmann <[email protected]>
Edan David <[email protected]>
Eric Brown <[email protected]>
+Eric Harney <[email protected]>
Flavio Percoco <[email protected]>
Gary Kotton <[email protected]>
Gevorg Davoian <[email protected]>
@@ -60,6 +61,7 @@
Russell Bryant <[email protected]>
Sean McGinnis <[email protected]>
Sirushti Murugesan <[email protected]>
+Sofia Enriquez <[email protected]>
Stanislaw Pitucha <[email protected]>
Stephen Finucane <[email protected]>
Steve Martinelli <[email protected]>
@@ -85,3 +87,4 @@
xianming.mao <[email protected]>
yanheven <[email protected]>
zhangboye <[email protected]>
+zhoulinhui <[email protected]>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/ChangeLog
new/oslo.serialization-4.1.0/ChangeLog
--- old/oslo.serialization-4.0.1/ChangeLog 2020-09-11 21:20:29.000000000
+0200
+++ new/oslo.serialization-4.1.0/ChangeLog 2021-02-08 14:23:10.000000000
+0100
@@ -1,6 +1,18 @@
CHANGES
=======
+4.1.0
+-----
+
+* Fix json to\_primitive when using IO OBjects
+* Dropping lower constraints testing
+* Use py3 as the default runtime for tox
+* Fix hacking min version to 3.0.1
+* Add Python3 wallaby unit tests
+* Update master for stable/victoria
+* ignore reno generated artifacts
+* Adding pre-commit
+
4.0.1
-----
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/PKG-INFO
new/oslo.serialization-4.1.0/PKG-INFO
--- old/oslo.serialization-4.0.1/PKG-INFO 2020-09-11 21:20:29.000000000
+0200
+++ new/oslo.serialization-4.1.0/PKG-INFO 2021-02-08 14:23:10.970974700
+0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: oslo.serialization
-Version: 4.0.1
+Version: 4.1.0
Summary: Oslo Serialization library
Home-page: https://docs.openstack.org/oslo.serialization/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/doc/source/conf.py
new/oslo.serialization-4.1.0/doc/source/conf.py
--- old/oslo.serialization-4.0.1/doc/source/conf.py 2020-09-11
21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/doc/source/conf.py 2021-02-08
14:22:31.000000000 +0100
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# Copyright (C) 2020 Red Hat, Inc.
+#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
@@ -22,7 +24,6 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
'sphinx.ext.autodoc',
- #'sphinx.ext.intersphinx',
'openstackdocstheme'
]
@@ -76,6 +77,3 @@
u'%s Documentation' % project,
u'OpenStack Foundation', 'manual'),
]
-
-# Example configuration for intersphinx: refer to the Python standard library.
-#intersphinx_mapping = {'http://docs.python.org/': None}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/oslo.serialization.egg-info/PKG-INFO
new/oslo.serialization-4.1.0/oslo.serialization.egg-info/PKG-INFO
--- old/oslo.serialization-4.0.1/oslo.serialization.egg-info/PKG-INFO
2020-09-11 21:20:29.000000000 +0200
+++ new/oslo.serialization-4.1.0/oslo.serialization.egg-info/PKG-INFO
2021-02-08 14:23:10.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.2
Name: oslo.serialization
-Version: 4.0.1
+Version: 4.1.0
Summary: Oslo Serialization library
Home-page: https://docs.openstack.org/oslo.serialization/latest/
Author: OpenStack
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/oslo.serialization.egg-info/SOURCES.txt
new/oslo.serialization-4.1.0/oslo.serialization.egg-info/SOURCES.txt
--- old/oslo.serialization-4.0.1/oslo.serialization.egg-info/SOURCES.txt
2020-09-11 21:20:29.000000000 +0200
+++ new/oslo.serialization-4.1.0/oslo.serialization.egg-info/SOURCES.txt
2021-02-08 14:23:10.000000000 +0100
@@ -1,5 +1,6 @@
.coveragerc
.mailmap
+.pre-commit-config.yaml
.stestr.conf
.zuul.yaml
AUTHORS
@@ -42,6 +43,7 @@
oslo_serialization/tests/test_jsonutils.py
oslo_serialization/tests/test_msgpackutils.py
releasenotes/notes/add-reno-996dd44974d53238.yaml
+releasenotes/notes/bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml
releasenotes/notes/deprecate-yamlutils-module-96eee55f7ae57382.yaml
releasenotes/notes/drop-python27-support-185668eec068ffa5.yaml
releasenotes/notes/remove-yamlutils-94c921247ab33003.yaml
@@ -55,5 +57,6 @@
releasenotes/source/train.rst
releasenotes/source/unreleased.rst
releasenotes/source/ussuri.rst
+releasenotes/source/victoria.rst
releasenotes/source/_static/.placeholder
releasenotes/source/_templates/.placeholder
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/oslo.serialization.egg-info/pbr.json
new/oslo.serialization-4.1.0/oslo.serialization.egg-info/pbr.json
--- old/oslo.serialization-4.0.1/oslo.serialization.egg-info/pbr.json
2020-09-11 21:20:29.000000000 +0200
+++ new/oslo.serialization-4.1.0/oslo.serialization.egg-info/pbr.json
2021-02-08 14:23:10.000000000 +0100
@@ -1 +1 @@
-{"git_version": "c7884b2", "is_release": true}
\ No newline at end of file
+{"git_version": "8445e61", "is_release": true}
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/oslo_serialization/jsonutils.py
new/oslo.serialization-4.1.0/oslo_serialization/jsonutils.py
--- old/oslo.serialization-4.0.1/oslo_serialization/jsonutils.py
2020-09-11 21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/oslo_serialization/jsonutils.py
2021-02-08 14:22:31.000000000 +0100
@@ -33,6 +33,7 @@
import datetime
import functools
import inspect
+import io
import itertools
import json
import uuid
@@ -161,7 +162,7 @@
# Python 3 does not have iteritems
elif hasattr(value, 'items'):
return recursive(dict(value.items()), level=level + 1)
- elif hasattr(value, '__iter__'):
+ elif hasattr(value, '__iter__') and not isinstance(value, io.IOBase):
return list(map(recursive, value))
elif convert_instances and hasattr(value, '__dict__'):
# Likely an instance of something. Watch for cycles.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/oslo_serialization/tests/test_jsonutils.py
new/oslo.serialization-4.1.0/oslo_serialization/tests/test_jsonutils.py
--- old/oslo.serialization-4.0.1/oslo_serialization/tests/test_jsonutils.py
2020-09-11 21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/oslo_serialization/tests/test_jsonutils.py
2021-02-08 14:22:31.000000000 +0100
@@ -401,6 +401,16 @@
ret = jsonutils.to_primitive(obj, fallback=lambda _: 'fallback')
self.assertEqual('fallback', ret)
+ def test_fallback_typeerror_IO_object(self):
+ # IO Objects are not callable, cause a TypeError in to_primitive()
+ obj = io.IOBase
+
+ ret = jsonutils.to_primitive(obj)
+ self.assertEqual(str(obj), ret)
+
+ ret = jsonutils.to_primitive(obj, fallback=lambda _: 'fallback')
+ self.assertEqual('fallback', ret)
+
def test_exception(self):
self.assertIn(jsonutils.to_primitive(ValueError("an exception")),
["ValueError('an exception',)",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/releasenotes/notes/bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml
new/oslo.serialization-4.1.0/releasenotes/notes/bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml
---
old/oslo.serialization-4.0.1/releasenotes/notes/bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml
1970-01-01 01:00:00.000000000 +0100
+++
new/oslo.serialization-4.1.0/releasenotes/notes/bug-1908607-fix-json-to_primitive-IO-OBjects-04faff4a1b5cf48f.yaml
2021-02-08 14:22:31.000000000 +0100
@@ -0,0 +1,5 @@
+---
+fixes:
+ - |
+ `Bug #1908607 <https://bugs.launchpad.net/cinder/+bug/1908607>`_: Fix
+ json to_primitive when using IO OBjects.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/releasenotes/source/conf.py
new/oslo.serialization-4.1.0/releasenotes/source/conf.py
--- old/oslo.serialization-4.0.1/releasenotes/source/conf.py 2020-09-11
21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/releasenotes/source/conf.py 2021-02-08
14:22:31.000000000 +0100
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# Copyright (C) 2020 Red Hat, Inc.
+#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/releasenotes/source/index.rst
new/oslo.serialization-4.1.0/releasenotes/source/index.rst
--- old/oslo.serialization-4.0.1/releasenotes/source/index.rst 2020-09-11
21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/releasenotes/source/index.rst 2021-02-08
14:22:31.000000000 +0100
@@ -6,6 +6,7 @@
:maxdepth: 1
unreleased
+ victoria
ussuri
train
stein
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/oslo.serialization-4.0.1/releasenotes/source/victoria.rst
new/oslo.serialization-4.1.0/releasenotes/source/victoria.rst
--- old/oslo.serialization-4.0.1/releasenotes/source/victoria.rst
1970-01-01 01:00:00.000000000 +0100
+++ new/oslo.serialization-4.1.0/releasenotes/source/victoria.rst
2021-02-08 14:22:31.000000000 +0100
@@ -0,0 +1,6 @@
+=============================
+Victoria Series Release Notes
+=============================
+
+.. release-notes::
+ :branch: stable/victoria
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/test-requirements.txt
new/oslo.serialization-4.1.0/test-requirements.txt
--- old/oslo.serialization-4.0.1/test-requirements.txt 2020-09-11
21:19:25.000000000 +0200
+++ new/oslo.serialization-4.1.0/test-requirements.txt 2021-02-08
14:22:31.000000000 +0100
@@ -1,7 +1,7 @@
# The order of packages is significant, because pip processes them in the order
# of appearance. Changing the order has an impact on the overall integration
# process, which may cause wedges in the gate later.
-hacking>=3.0,<3.1.0 # Apache-2.0
+hacking>=3.0.1,<3.1.0 # Apache-2.0
netaddr>=0.7.18 # BSD
stestr>=2.0.0 # Apache-2.0
@@ -11,3 +11,5 @@
# Bandit security code scanner
bandit>=1.6.0,<1.7.0 # Apache-2.0
+
+pre-commit>=2.6.0 # MIT
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/oslo.serialization-4.0.1/tox.ini
new/oslo.serialization-4.1.0/tox.ini
--- old/oslo.serialization-4.0.1/tox.ini 2020-09-11 21:19:25.000000000
+0200
+++ new/oslo.serialization-4.1.0/tox.ini 2021-02-08 14:22:31.000000000
+0100
@@ -1,6 +1,6 @@
[tox]
minversion = 3.2.0
-envlist = py38,pep8
+envlist = py3,pep8
basepython = python3
ignore_basepython_conflict = true
@@ -13,7 +13,7 @@
[testenv:pep8]
commands =
- flake8
+ pre-commit run -a
# Run security linter
bandit -r oslo_serialization tests -n5