Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-zeroconf for openSUSE:Factory
checked in at 2022-06-26 11:59:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-zeroconf (Old)
and /work/SRC/openSUSE:Factory/.python-zeroconf.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-zeroconf"
Sun Jun 26 11:59:15 2022 rev:32 rq:985062 version:0.38.7
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-zeroconf/python-zeroconf.changes
2022-06-07 11:57:26.940152432 +0200
+++
/work/SRC/openSUSE:Factory/.python-zeroconf.new.1548/python-zeroconf.changes
2022-06-26 11:59:16.684354804 +0200
@@ -1,0 +2,12 @@
+Sat Jun 25 15:21:12 UTC 2022 - Antoine Belvire <[email protected]>
+
+- Ignore flakey test (gh#jstasiak/python-zeroconf#1077).
+
+-------------------------------------------------------------------
+Wed Jun 22 20:45:56 UTC 2022 - Yogalakshmi Arunachalam <[email protected]>
+
+- update to 0.38.7:
+ * Performance improvements for parsing incoming packet data
+ (gh#jstasiak/python-zeroconf#1076).
+
+-------------------------------------------------------------------
Old:
----
python-zeroconf-0.38.6.obscpio
New:
----
python-zeroconf-0.38.7.obscpio
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-zeroconf.spec ++++++
--- /var/tmp/diff_new_pack.xQjx5b/_old 2022-06-26 11:59:17.764356376 +0200
+++ /var/tmp/diff_new_pack.xQjx5b/_new 2022-06-26 11:59:17.768356382 +0200
@@ -20,7 +20,7 @@
%define skip_python2 1
%define skip_python36 1
Name: python-zeroconf
-Version: 0.38.6
+Version: 0.38.7
Release: 0
Summary: Pure Python Multicast DNS Service Discovery Library
(Bonjour/Avahi compatible)
License: LGPL-2.0-only
@@ -56,7 +56,12 @@
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
-%pytest tests -k 'not (test_integration_with_listener_ipv6 or test_launch or
test_close_multiple_times)'
+# Skip tests:
+# - test_integration_with_listener_ipv6: Requires network access
+# - test_launch*: Require network access
+# - test_close_multiple_times: Requires network access
+# - test_service_browser_expire_callbacks: Flakey
(gh#jstasiak/python-zeroconf#1077)
+%pytest tests -k 'not (test_integration_with_listener_ipv6 or test_launch or
test_close_multiple_times or test_service_browser_expire_callbacks)'
%files %{python_files}
%doc README.rst
++++++ _service ++++++
--- /var/tmp/diff_new_pack.xQjx5b/_old 2022-06-26 11:59:17.796356423 +0200
+++ /var/tmp/diff_new_pack.xQjx5b/_new 2022-06-26 11:59:17.800356429 +0200
@@ -2,7 +2,7 @@
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/jstasiak/python-zeroconf</param>
<param name="scm">git</param>
- <param name="revision">0.38.6</param>
+ <param name="revision">0.38.7</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">(.*)</param>
</service>
++++++ python-zeroconf-0.38.6.obscpio -> python-zeroconf-0.38.7.obscpio ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-zeroconf-0.38.6/.gitignore
new/python-zeroconf-0.38.7/.gitignore
--- old/python-zeroconf-0.38.6/.gitignore 2022-05-06 21:11:56.000000000
+0200
+++ new/python-zeroconf-0.38.7/.gitignore 1970-01-01 01:00:00.000000000
+0100
@@ -1,16 +0,0 @@
-build/
-*.pyc
-*.pyo
-Thumbs.db
-.DS_Store
-.project
-.pydevproject
-.settings
-.idea
-.vslick
-.cache
-.mypy_cache/
-docs/_build/
-.vscode
-/dist/
-/zeroconf.egg-info/
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-zeroconf-0.38.6/README.rst
new/python-zeroconf-0.38.7/README.rst
--- old/python-zeroconf-0.38.6/README.rst 2022-05-06 21:11:56.000000000
+0200
+++ new/python-zeroconf-0.38.7/README.rst 2022-06-14 19:49:19.000000000
+0200
@@ -142,6 +142,12 @@
=========
+0.38.7
+======
+
+* Performance improvements for parsing incoming packet data (#1076) @bdraco
+
+
0.38.6
======
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-zeroconf-0.38.6/setup.cfg
new/python-zeroconf-0.38.7/setup.cfg
--- old/python-zeroconf-0.38.6/setup.cfg 2022-05-06 21:11:56.000000000
+0200
+++ new/python-zeroconf-0.38.7/setup.cfg 2022-06-14 19:49:19.000000000
+0200
@@ -1,5 +1,5 @@
[bumpversion]
-current_version = 0.38.6
+current_version = 0.38.7
commit = True
tag = True
tag_name = {new_version}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/python-zeroconf-0.38.6/zeroconf/__init__.py
new/python-zeroconf-0.38.7/zeroconf/__init__.py
--- old/python-zeroconf-0.38.6/zeroconf/__init__.py 2022-05-06
21:11:56.000000000 +0200
+++ new/python-zeroconf-0.38.7/zeroconf/__init__.py 2022-06-14
19:49:19.000000000 +0200
@@ -79,7 +79,7 @@
__author__ = 'Paul Scott-Murphy, William McBrine'
__maintainer__ = 'Jakub Stasiak <[email protected]>'
-__version__ = '0.38.6'
+__version__ = '0.38.7'
__license__ = 'LGPL'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/python-zeroconf-0.38.6/zeroconf/_protocol/incoming.py
new/python-zeroconf-0.38.7/zeroconf/_protocol/incoming.py
--- old/python-zeroconf-0.38.6/zeroconf/_protocol/incoming.py 2022-05-06
21:11:56.000000000 +0200
+++ new/python-zeroconf-0.38.7/zeroconf/_protocol/incoming.py 2022-06-14
19:49:19.000000000 +0200
@@ -47,6 +47,11 @@
DECODE_EXCEPTIONS = (IndexError, struct.error, IncomingDecodeError)
+UNPACK_3H = struct.Struct(b'!3H').unpack
+UNPACK_6H = struct.Struct(b'!6H').unpack
+UNPACK_HH = struct.Struct(b'!HH').unpack
+UNPACK_HHiH = struct.Struct(b'!HHiH').unpack
+
class DNSIncoming(DNSMessage, QuietLogger):
@@ -139,9 +144,9 @@
]
)
- def unpack(self, format_: bytes, length: int) -> tuple:
+ def unpack(self, unpacker: Callable[[bytes], tuple], length: int) -> tuple:
self.offset += length
- return struct.unpack(format_, self.data[self.offset - length :
self.offset])
+ return unpacker(self.data[self.offset - length : self.offset])
def read_header(self) -> None:
"""Reads header portion of packet"""
@@ -152,12 +157,12 @@
self.num_answers,
self.num_authorities,
self.num_additionals,
- ) = self.unpack(b'!6H', 12)
+ ) = self.unpack(UNPACK_6H, 12)
def read_questions(self) -> None:
"""Reads questions section of packet"""
self.questions = [
- DNSQuestion(self.read_name(), *self.unpack(b'!HH', 4)) for _ in
range(self.num_questions)
+ DNSQuestion(self.read_name(), *self.unpack(UNPACK_HH, 4)) for _ in
range(self.num_questions)
]
def read_character_string(self) -> bytes:
@@ -172,10 +177,6 @@
self.offset += length
return info
- def read_unsigned_short(self) -> int:
- """Reads an unsigned short from the packet"""
- return cast(int, self.unpack(b'!H', 2)[0])
-
def read_others(self) -> None:
"""Reads the answers, authorities and additionals section of the
packet"""
@@ -183,7 +184,7 @@
n = self.num_answers + self.num_authorities + self.num_additionals
for _ in range(n):
domain = self.read_name()
- type_, class_, ttl, length = self.unpack(b'!HHiH', 10)
+ type_, class_, ttl, length = self.unpack(UNPACK_HHiH, 10)
end = self.offset + length
rec = None
try:
@@ -218,9 +219,7 @@
type_,
class_,
ttl,
- self.read_unsigned_short(),
- self.read_unsigned_short(),
- self.read_unsigned_short(),
+ *cast(Tuple[int, int, int], self.unpack(UNPACK_3H, 6)),
self.read_name(),
self.now,
)
++++++ python-zeroconf.obsinfo ++++++
--- /var/tmp/diff_new_pack.xQjx5b/_old 2022-06-26 11:59:17.920356603 +0200
+++ /var/tmp/diff_new_pack.xQjx5b/_new 2022-06-26 11:59:17.924356609 +0200
@@ -1,5 +1,6 @@
name: python-zeroconf
-version: 0.38.6
-mtime: 1651864316
-commit: 1aa7842ae0f914c10465ae977551698046406d55
+version: 0.38.7
+mtime: 1655228959
+commit: f3a9f804914fec37e961f80f347c4e706c4bae33
+