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 <[email protected]>
+
+- 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-INFO    1970-01-01 01:00:00.000000000 +0100
+++ new/jeepney-0.4.1/PKG-INFO  1970-01-01 01:00:00.000000000 +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.rst    2019-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 = self._result
+        if success:
+            return value
+        raise value
+
+
 class DBusConnection:
     def __init__(self, sock):
         self.sock = sock
         self.parser = Parser()
-        self.router = Router(Future)
+        self.router = Router(_Future)
         self.bus_proxy = Proxy(message_bus, self)
         hello_reply = self.bus_proxy.Hello()
         self.unique_name = hello_reply[0]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jeepney-0.4/jeepney/wrappers.py 
new/jeepney-0.4.1/jeepney/wrappers.py
--- old/jeepney-0.4/jeepney/wrappers.py 2018-09-24 12:03:49.135421300 +0200
+++ new/jeepney-0.4.1/jeepney/wrappers.py       2019-08-11 12:50:37.798772600 
+0200
@@ -74,6 +74,9 @@
     """
     header = new_header(MessageType.method_return)
     header.fields[HeaderFields.reply_serial] = parent_msg.header.serial
+    sender = parent_msg.header.fields.get(HeaderFields.sender, None)
+    if sender is not None:
+        header.fields[HeaderFields.destination] = sender
     if signature is not None:
         header.fields[HeaderFields.signature] = signature
     return Message(header, body)
@@ -88,6 +91,9 @@
     header = new_header(MessageType.error)
     header.fields[HeaderFields.reply_serial] = parent_msg.header.serial
     header.fields[HeaderFields.error_name] = error_name
+    sender = parent_msg.header.fields.get(HeaderFields.sender, None)
+    if sender is not None:
+        header.fields[HeaderFields.destination] = sender
     if signature is not None:
         header.fields[HeaderFields.signature] = signature
     return Message(header, body)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jeepney-0.4/pyproject.toml 
new/jeepney-0.4.1/pyproject.toml
--- old/jeepney-0.4/pyproject.toml      2018-09-24 12:28:43.634150300 +0200
+++ new/jeepney-0.4.1/pyproject.toml    2019-08-11 12:57:17.249260700 +0200
@@ -8,7 +8,6 @@
 author-email = "[email protected]"
 home-page = "https://gitlab.com/takluyver/jeepney";
 description-file = "README.rst"
-dev-requires = ["testpath"]
 requires-python = ">=3.5"
 classifiers = [
     "License :: OSI Approved :: MIT License",
@@ -16,6 +15,9 @@
     "Topic :: Desktop Environment"
 ]
 
+[tool.flit.metadata.requires-extra]
+dev = ["testpath"]
+
 [tool.flit.metadata.urls]
 Documentation = "https://jeepney.readthedocs.io/en/latest/";
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jeepney-0.4/setup.py new/jeepney-0.4.1/setup.py
--- old/jeepney-0.4/setup.py    1970-01-01 01:00:00.000000000 +0100
+++ new/jeepney-0.4.1/setup.py  1970-01-01 01:00:00.000000000 +0100
@@ -9,13 +9,17 @@
 package_data = \
 {'': ['*']}
 
+extras_require = \
+{'dev': ['testpath']}
+
 setup(name='jeepney',
-      version='0.4',
+      version='0.4.1',
       description='Low-level, pure Python DBus protocol wrapper.',
       author='Thomas Kluyver',
       author_email='[email protected]',
       url='https://gitlab.com/takluyver/jeepney',
       packages=packages,
       package_data=package_data,
+      extras_require=extras_require,
       python_requires='>=3.5',
      )


Reply via email to