Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-proto-plus for
openSUSE:Factory checked in at 2021-09-10 23:41:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-proto-plus (Old)
and /work/SRC/openSUSE:Factory/.python-proto-plus.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-proto-plus"
Fri Sep 10 23:41:29 2021 rev:3 rq:917951 version:1.19.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-proto-plus/python-proto-plus.changes
2021-03-20 21:26:46.745233097 +0100
+++
/work/SRC/openSUSE:Factory/.python-proto-plus.new.1899/python-proto-plus.changes
2021-09-10 23:41:54.130597109 +0200
@@ -1,0 +2,7 @@
+Fri Sep 10 10:52:33 UTC 2021 - Matthias Fehring <[email protected]>
+
+- update to 1.19.0
+ * pass 'including_default_value_fields' through to 'Message.to_dict'
+ method (gh#googleapis/proto-plus-python#232)
+
+-------------------------------------------------------------------
Old:
----
proto-plus-1.18.1.tar.gz
New:
----
proto-plus-1.19.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-proto-plus.spec ++++++
--- /var/tmp/diff_new_pack.5HMIIL/_old 2021-09-10 23:41:54.614597624 +0200
+++ /var/tmp/diff_new_pack.5HMIIL/_new 2021-09-10 23:41:54.618597628 +0200
@@ -20,7 +20,7 @@
%define skip_python2 1
%define modname proto-plus
Name: python-proto-plus
-Version: 1.18.1
+Version: 1.19.0
Release: 0
Summary: Pythonic Protocol Buffers
License: Apache-2.0
++++++ proto-plus-1.18.1.tar.gz -> proto-plus-1.19.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/proto-plus-1.18.1/PKG-INFO
new/proto-plus-1.19.0/PKG-INFO
--- old/proto-plus-1.18.1/PKG-INFO 2021-03-19 23:17:52.886574700 +0100
+++ new/proto-plus-1.19.0/PKG-INFO 2021-06-29 18:47:59.441519700 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: proto-plus
-Version: 1.18.1
+Version: 1.19.0
Summary: Beautiful, Pythonic protocol buffers.
Home-page: https://github.com/googleapis/proto-plus-python.git
Author: Google LLC
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/proto-plus-1.18.1/proto/message.py
new/proto-plus-1.19.0/proto/message.py
--- old/proto-plus-1.18.1/proto/message.py 2021-03-19 23:17:44.000000000
+0100
+++ new/proto-plus-1.19.0/proto/message.py 2021-06-29 18:47:52.000000000
+0200
@@ -375,7 +375,12 @@
return instance
def to_dict(
- cls, instance, *, use_integers_for_enums=True,
preserving_proto_field_name=True
+ cls,
+ instance,
+ *,
+ use_integers_for_enums=True,
+ preserving_proto_field_name=True,
+ including_default_value_fields=True,
) -> "Message":
"""Given a message instance, return its representation as a python
dict.
@@ -388,6 +393,9 @@
preserving_proto_field_name (Optional(bool)): An option that
determines whether field name representations preserve
proto case (snake_case) or use lowerCamelCase. Default is True.
+ including_default_value_fields (Optional(bool)): An option that
+ determines whether the default field values should be included
in the results.
+ Default is True.
Returns:
dict: A representation of the protocol buffer using pythonic data
structures.
@@ -396,7 +404,7 @@
"""
return MessageToDict(
cls.pb(instance),
- including_default_value_fields=True,
+ including_default_value_fields=including_default_value_fields,
preserving_proto_field_name=preserving_proto_field_name,
use_integers_for_enums=use_integers_for_enums,
)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/proto-plus-1.18.1/proto_plus.egg-info/PKG-INFO
new/proto-plus-1.19.0/proto_plus.egg-info/PKG-INFO
--- old/proto-plus-1.18.1/proto_plus.egg-info/PKG-INFO 2021-03-19
23:17:52.000000000 +0100
+++ new/proto-plus-1.19.0/proto_plus.egg-info/PKG-INFO 2021-06-29
18:47:59.000000000 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: proto-plus
-Version: 1.18.1
+Version: 1.19.0
Summary: Beautiful, Pythonic protocol buffers.
Home-page: https://github.com/googleapis/proto-plus-python.git
Author: Google LLC
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/proto-plus-1.18.1/setup.py
new/proto-plus-1.19.0/setup.py
--- old/proto-plus-1.18.1/setup.py 2021-03-19 23:17:44.000000000 +0100
+++ new/proto-plus-1.19.0/setup.py 2021-06-29 18:47:52.000000000 +0200
@@ -17,7 +17,7 @@
from setuptools import find_packages, setup
-version = "1.18.1"
+version = "1.19.0"
PACKAGE_ROOT = os.path.abspath(os.path.dirname(__file__))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/proto-plus-1.18.1/tests/test_message.py
new/proto-plus-1.19.0/tests/test_message.py
--- old/proto-plus-1.18.1/tests/test_message.py 2021-03-19 23:17:44.000000000
+0100
+++ new/proto-plus-1.19.0/tests/test_message.py 2021-06-29 18:47:52.000000000
+0200
@@ -262,6 +262,11 @@
s_dict = Squid.to_dict(s, use_integers_for_enums=False)
assert s_dict["chromatophores"][0]["color"] == "RED"
+ s_new_2 = Squid(mass_kg=20)
+ s_dict_2 = Squid.to_dict(s_new_2, including_default_value_fields=False)
+ expected_dict = {"mass_kg": 20}
+ assert s_dict_2 == expected_dict
+
new_s = Squid(s_dict)
assert new_s == s