commit python-jeepney for openSUSE:Factory
Hello community, here is the log from the commit of package python-jeepney for openSUSE:Factory checked in at 2020-03-09 18:34:23 Comparing /work/SRC/openSUSE:Factory/python-jeepney (Old) and /work/SRC/openSUSE:Factory/.python-jeepney.new.26092 (New) Package is "python-jeepney" Mon Mar 9 18:34:23 2020 rev:4 rq:783023 version:0.4.3 Changes: --- /work/SRC/openSUSE:Factory/python-jeepney/python-jeepney.changes 2020-03-03 10:16:08.830638801 +0100 +++ /work/SRC/openSUSE:Factory/.python-jeepney.new.26092/python-jeepney.changes 2020-03-09 18:34:24.238027290 +0100 @@ -1,0 +2,7 @@ +Mon Mar 9 16:22:55 UTC 2020 - Marketa Calabkova + +- Update to 0.4.3 + * Raise ConnectionResetError in blocking integration if socket.recv() +gives no data + +--- Old: jeepney-0.4.2.tar.gz New: jeepney-0.4.3.tar.gz Other differences: -- ++ python-jeepney.spec ++ --- /var/tmp/diff_new_pack.U0Wmi9/_old 2020-03-09 18:34:24.674027527 +0100 +++ /var/tmp/diff_new_pack.U0Wmi9/_new 2020-03-09 18:34:24.674027527 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-jeepney -Version:0.4.2 +Version:0.4.3 Release:0 Summary:Low-level, pure Python DBus protocol wrapper License:MIT ++ jeepney-0.4.2.tar.gz -> jeepney-0.4.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.2/PKG-INFO new/jeepney-0.4.3/PKG-INFO --- old/jeepney-0.4.2/PKG-INFO 1970-01-01 01:00:00.0 +0100 +++ new/jeepney-0.4.3/PKG-INFO 1970-01-01 01:00:00.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: jeepney -Version: 0.4.2 +Version: 0.4.3 Summary: Low-level, pure Python DBus protocol wrapper. Home-page: https://gitlab.com/takluyver/jeepney Author: Thomas Kluyver diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.2/docs/release-notes.rst new/jeepney-0.4.3/docs/release-notes.rst --- old/jeepney-0.4.2/docs/release-notes.rst2020-01-03 19:38:06.976187000 +0100 +++ new/jeepney-0.4.3/docs/release-notes.rst2020-03-04 18:26:10.795915400 +0100 @@ -1,6 +1,13 @@ Release notes = +0.4.3 +- + +* The blocking integration now throws ``ConnectionResetError`` on all systems + when the connection was closed from the other end. It would previously hang + on some systems. + 0.4.2 - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.2/jeepney/__init__.py new/jeepney-0.4.3/jeepney/__init__.py --- old/jeepney-0.4.2/jeepney/__init__.py 2020-01-03 19:39:13.928380500 +0100 +++ new/jeepney-0.4.3/jeepney/__init__.py 2020-03-04 18:24:04.019867000 +0100 @@ -5,4 +5,4 @@ from .bus import find_session_bus, find_system_bus from .wrappers import * -__version__ = '0.4.2' +__version__ = '0.4.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.2/jeepney/integrate/blocking.py new/jeepney-0.4.3/jeepney/integrate/blocking.py --- old/jeepney-0.4.2/jeepney/integrate/blocking.py 2019-11-22 21:11:24.869688700 +0100 +++ new/jeepney-0.4.3/jeepney/integrate/blocking.py 2020-03-04 18:21:16.798311500 +0100 @@ -1,6 +1,8 @@ """Synchronous IO wrappers around jeepney """ +from errno import ECONNRESET import functools +import os import socket from jeepney.auth import SASLParser, make_auth_external, BEGIN, AuthenticationError @@ -59,7 +61,7 @@ Blocks until at least one message has been read. """ while True: -b = self.sock.recv(4096) +b = unwrap_read(self.sock.recv(4096)) msgs = self.parser.feed(b) if msgs: for msg in msgs: @@ -96,6 +98,17 @@ return inner +def unwrap_read(b): +"""Raise ConnectionResetError from an empty read. + +Sometimes the socket raises an error itself, sometimes it gives no data. +I haven't worked out when it behaves each way. +""" +if not b: +raise ConnectionResetError(ECONNRESET, os.strerror(ECONNRESET)) +return b + + def connect_and_authenticate(bus='SESSION'): bus_addr = get_bus(bus) sock = socket.socket(family=socket.AF_UNIX) @@ -103,7 +116,7 @@ sock.sendall(b'\0' + make_auth_external()) auth_parser = SASLParser() while not auth_parser.authenticated: -auth_parser.feed(sock.recv(1024)) +auth_parser.feed(unwrap_read(sock.recv(1024))) if auth_parser.error: raise
commit python-jeepney for openSUSE:Factory
Hello community, here is the log from the commit of package python-jeepney for openSUSE:Factory checked in at 2020-03-03 10:15:28 Comparing /work/SRC/openSUSE:Factory/python-jeepney (Old) and /work/SRC/openSUSE:Factory/.python-jeepney.new.26092 (New) Package is "python-jeepney" Tue Mar 3 10:15:28 2020 rev:3 rq:780407 version:0.4.2 Changes: --- /work/SRC/openSUSE:Factory/python-jeepney/python-jeepney.changes 2019-09-13 14:59:43.545280814 +0200 +++ /work/SRC/openSUSE:Factory/.python-jeepney.new.26092/python-jeepney.changes 2020-03-03 10:16:08.830638801 +0100 @@ -1,0 +2,10 @@ +Fri Feb 28 22:49:01 UTC 2020 - Dirk Mueller + +- update to 0.4.2: + The blocking ``DBusConnection`` integration class now has a ``.close()`` + method, and can be used as a context manager:: + +from jeepney.integrate.blocking import connect_and_authenticate +with connect_and_authenticate() as connection: + +--- Old: jeepney-0.4.1.tar.gz New: jeepney-0.4.2.tar.gz Other differences: -- ++ python-jeepney.spec ++ --- /var/tmp/diff_new_pack.ZcpiLD/_old 2020-03-03 10:16:11.818644983 +0100 +++ /var/tmp/diff_new_pack.ZcpiLD/_new 2020-03-03 10:16:11.822644991 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-jeepney # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-jeepney -Version:0.4.1 +Version:0.4.2 Release:0 Summary:Low-level, pure Python DBus protocol wrapper License:MIT ++ jeepney-0.4.1.tar.gz -> jeepney-0.4.2.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.1/PKG-INFO new/jeepney-0.4.2/PKG-INFO --- old/jeepney-0.4.1/PKG-INFO 1970-01-01 01:00:00.0 +0100 +++ new/jeepney-0.4.2/PKG-INFO 1970-01-01 01:00:00.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: jeepney -Version: 0.4.1 +Version: 0.4.2 Summary: Low-level, pure Python DBus protocol wrapper. Home-page: https://gitlab.com/takluyver/jeepney Author: Thomas Kluyver diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.1/docs/release-notes.rst new/jeepney-0.4.2/docs/release-notes.rst --- old/jeepney-0.4.1/docs/release-notes.rst2019-08-11 12:55:34.956099300 +0200 +++ new/jeepney-0.4.2/docs/release-notes.rst2020-01-03 19:38:06.976187000 +0100 @@ -1,6 +1,16 @@ Release notes = +0.4.2 +- + +* The blocking ``DBusConnection`` integration class now has a ``.close()`` + method, and can be used as a context manager:: + +from jeepney.integrate.blocking import connect_and_authenticate +with connect_and_authenticate() as connection: +... + 0.4.1 - diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.1/examples/blocking_notify.py new/jeepney-0.4.2/examples/blocking_notify.py --- old/jeepney-0.4.1/examples/blocking_notify.py 2017-05-29 16:16:12.977416000 +0200 +++ new/jeepney-0.4.2/examples/blocking_notify.py 2019-11-22 21:12:37.486834500 +0100 @@ -22,3 +22,5 @@ # Send the message and wait for the reply reply = connection.send_and_get_reply(msg) print('Notification ID:', reply[0]) + +connection.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.1/examples/blocking_secretstorage.py new/jeepney-0.4.2/examples/blocking_secretstorage.py --- old/jeepney-0.4.1/examples/blocking_secretstorage.py2017-05-29 16:46:09.492209200 +0200 +++ new/jeepney-0.4.2/examples/blocking_secretstorage.py2019-11-22 21:12:43.802847400 +0100 @@ -32,3 +32,5 @@ props = dict(props_resp[0]) state = '(locked)' if props['Locked'][1] else '' print(props['Label'][1], state) + +conn.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4.1/examples/blocking_subscribe.py new/jeepney-0.4.2/examples/blocking_subscribe.py --- old/jeepney-0.4.1/examples/blocking_subscribe.py2018-09-23 22:24:23.144968000 +0200 +++ new/jeepney-0.4.2/examples/blocking_subscribe.py2019-11-22 21:12:53.062865000 +0100 @@ -60,3 +60,5 @@ connection.recv_messages() except KeyboardInterrupt: pass + +connection.close() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
commit python-jeepney for openSUSE:Factory
Hello community, here is the log from the commit of package python-jeepney for openSUSE:Factory checked in at 2019-09-13 14:59:40 Comparing /work/SRC/openSUSE:Factory/python-jeepney (Old) and /work/SRC/openSUSE:Factory/.python-jeepney.new.7948 (New) Package is "python-jeepney" Fri Sep 13 14:59:40 2019 rev:2 rq:730190 version:0.4.1 Changes: --- /work/SRC/openSUSE:Factory/python-jeepney/python-jeepney.changes 2019-06-19 21:10:36.850638377 +0200 +++ /work/SRC/openSUSE:Factory/.python-jeepney.new.7948/python-jeepney.changes 2019-09-13 14:59:43.545280814 +0200 @@ -1,0 +2,8 @@ +Wed Sep 11 14:40:14 UTC 2019 - Tomáš Chvátal + +- Update to 0.4.1: + * Avoid using :class:`asyncio.Future` for the blocking integration. + * Set the 'destination' field on method return and error messages to the +'sender' from the parent message. + +--- Old: jeepney-0.4.tar.gz New: jeepney-0.4.1.tar.gz Other differences: -- ++ python-jeepney.spec ++ --- /var/tmp/diff_new_pack.2JtbbE/_old 2019-09-13 14:59:44.409280851 +0200 +++ /var/tmp/diff_new_pack.2JtbbE/_new 2019-09-13 14:59:44.413280851 +0200 @@ -1,5 +1,5 @@ # -# spec file for package xpython-jeepney +# spec file for package python-jeepney # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -19,16 +19,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define skip_python2 1 Name: python-jeepney -Version:0.4 +Version:0.4.1 Release:0 Summary:Low-level, pure Python DBus protocol wrapper License:MIT Group: Development/Languages/Python URL:https://gitlab.com/takluyver/jeepney Source: https://files.pythonhosted.org/packages/source/j/jeepney/jeepney-%{version}.tar.gz +BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module testpath} -BuildRequires: %{python_module pytest} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch ++ jeepney-0.4.tar.gz -> jeepney-0.4.1.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4/PKG-INFO new/jeepney-0.4.1/PKG-INFO --- old/jeepney-0.4/PKG-INFO1970-01-01 01:00:00.0 +0100 +++ new/jeepney-0.4.1/PKG-INFO 1970-01-01 01:00:00.0 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: jeepney -Version: 0.4 +Version: 0.4.1 Summary: Low-level, pure Python DBus protocol wrapper. Home-page: https://gitlab.com/takluyver/jeepney Author: Thomas Kluyver diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4/docs/release-notes.rst new/jeepney-0.4.1/docs/release-notes.rst --- old/jeepney-0.4/docs/release-notes.rst 2018-09-24 12:23:34.639535000 +0200 +++ new/jeepney-0.4.1/docs/release-notes.rst2019-08-11 12:55:34.956099300 +0200 @@ -1,6 +1,15 @@ Release notes = +0.4.1 +- + +* Avoid using :class:`asyncio.Future` for the blocking integration. +* Set the 'destination' field on method return and error messages to the + 'sender' from the parent message. + +Thanks to Oscar Caballero and Thomas Grainger for contributing to this release. + 0.4 --- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4/jeepney/__init__.py new/jeepney-0.4.1/jeepney/__init__.py --- old/jeepney-0.4/jeepney/__init__.py 2018-09-24 12:06:38.586247000 +0200 +++ new/jeepney-0.4.1/jeepney/__init__.py 2019-08-11 12:52:49.375820900 +0200 @@ -5,4 +5,4 @@ from .bus import find_session_bus, find_system_bus from .wrappers import * -__version__ = '0.4' +__version__ = '0.4.1' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jeepney-0.4/jeepney/integrate/blocking.py new/jeepney-0.4.1/jeepney/integrate/blocking.py --- old/jeepney-0.4/jeepney/integrate/blocking.py 2018-09-24 12:03:49.135421300 +0200 +++ new/jeepney-0.4.1/jeepney/integrate/blocking.py 2019-08-11 12:50:37.797772600 +0200 @@ -1,6 +1,5 @@ """Synchronous IO wrappers around jeepney """ -from asyncio import Future import functools import socket @@ -11,11 +10,32 @@ from jeepney.routing import Router from jeepney.bus_messages import message_bus + +class _Future: +def __init__(self): +self._result = None + +def done(self): +return bool(self._result) + +def set_exception(self, exception): +self._result = (False, exception) + +def set_result(self, result): +self._result = (True, result) + +def result(self): +success, value =