Hello community, here is the log from the commit of package python-Pykka for openSUSE:Factory checked in at 2019-12-03 15:21:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Pykka (Old) and /work/SRC/openSUSE:Factory/.python-Pykka.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Pykka" Tue Dec 3 15:21:26 2019 rev:4 rq:752965 version:2.0.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Pykka/python-Pykka.changes 2019-05-22 11:16:31.074510540 +0200 +++ /work/SRC/openSUSE:Factory/.python-Pykka.new.4691/python-Pykka.changes 2019-12-03 15:21:30.306530914 +0100 @@ -1,0 +2,7 @@ +Mon Dec 2 14:30:24 CET 2019 - Matej Cepl <[email protected]> + +- Update to 2.0.2: + - Make :class:`~pykka.ActorRef` hashable + - Fix test suite run with pytest-mocker >= 1.11.2. + +------------------------------------------------------------------- Old: ---- Pykka-2.0.0.tar.gz New: ---- Pykka-2.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Pykka.spec ++++++ --- /var/tmp/diff_new_pack.SZxaHT/_old 2019-12-03 15:21:31.426530402 +0100 +++ /var/tmp/diff_new_pack.SZxaHT/_new 2019-12-03 15:21:31.430530400 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-Pykka # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Pykka -Version: 2.0.0 +Version: 2.0.2 Release: 0 Summary: A Python implementation of the actor model License: Apache-2.0 @@ -41,6 +41,7 @@ %prep %setup -q -n Pykka-%{version} +%autopatch -p1 %build %python_build ++++++ Pykka-2.0.0.tar.gz -> Pykka-2.0.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/.circleci/config.yml new/Pykka-2.0.2/.circleci/config.yml --- old/Pykka-2.0.0/.circleci/config.yml 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/.circleci/config.yml 2019-11-16 15:47:47.000000000 +0100 @@ -1,7 +1,7 @@ version: 2.1 orbs: - codecov: codecov/[email protected] + codecov: codecov/[email protected] workflows: version: 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/PKG-INFO new/Pykka-2.0.2/PKG-INFO --- old/Pykka-2.0.0/PKG-INFO 2019-05-07 10:30:44.000000000 +0200 +++ new/Pykka-2.0.2/PKG-INFO 2019-12-02 14:58:27.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Pykka -Version: 2.0.0 +Version: 2.0.2 Summary: Pykka is a Python implementation of the actor model Home-page: https://www.pykka.org/ Author: Stein Magnus Jodal @@ -43,7 +43,7 @@ - `Issue tracker <https://github.com/jodal/pykka/issues>`_ .. image:: https://img.shields.io/pypi/v/Pykka.svg - :target: https://pypi.python.org/pypi/Pykka/ + :target: https://pypi.org/project/Pykka/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/project/github/jodal/pykka/develop.svg @@ -51,12 +51,12 @@ :alt: CircleCI build status .. image:: https://img.shields.io/readthedocs/pykka.svg - :target: https://www.pykka.org/ - :alt: Read the Docs build status + :target: https://www.pykka.org/ + :alt: Read the Docs build status .. image:: https://img.shields.io/codecov/c/github/jodal/pykka/develop.svg - :target: https://codecov.io/gh/jodal/pykka - :alt: Test coverage + :target: https://codecov.io/gh/jodal/pykka + :alt: Test coverage Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/Pykka.egg-info/PKG-INFO new/Pykka-2.0.2/Pykka.egg-info/PKG-INFO --- old/Pykka-2.0.0/Pykka.egg-info/PKG-INFO 2019-05-07 10:30:44.000000000 +0200 +++ new/Pykka-2.0.2/Pykka.egg-info/PKG-INFO 2019-12-02 14:58:27.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: Pykka -Version: 2.0.0 +Version: 2.0.2 Summary: Pykka is a Python implementation of the actor model Home-page: https://www.pykka.org/ Author: Stein Magnus Jodal @@ -43,7 +43,7 @@ - `Issue tracker <https://github.com/jodal/pykka/issues>`_ .. image:: https://img.shields.io/pypi/v/Pykka.svg - :target: https://pypi.python.org/pypi/Pykka/ + :target: https://pypi.org/project/Pykka/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/project/github/jodal/pykka/develop.svg @@ -51,12 +51,12 @@ :alt: CircleCI build status .. image:: https://img.shields.io/readthedocs/pykka.svg - :target: https://www.pykka.org/ - :alt: Read the Docs build status + :target: https://www.pykka.org/ + :alt: Read the Docs build status .. image:: https://img.shields.io/codecov/c/github/jodal/pykka/develop.svg - :target: https://codecov.io/gh/jodal/pykka - :alt: Test coverage + :target: https://codecov.io/gh/jodal/pykka + :alt: Test coverage Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/README.rst new/Pykka-2.0.2/README.rst --- old/Pykka-2.0.0/README.rst 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/README.rst 2019-10-10 23:56:38.000000000 +0200 @@ -33,7 +33,7 @@ - `Issue tracker <https://github.com/jodal/pykka/issues>`_ .. image:: https://img.shields.io/pypi/v/Pykka.svg - :target: https://pypi.python.org/pypi/Pykka/ + :target: https://pypi.org/project/Pykka/ :alt: Latest PyPI version .. image:: https://img.shields.io/circleci/project/github/jodal/pykka/develop.svg @@ -41,9 +41,9 @@ :alt: CircleCI build status .. image:: https://img.shields.io/readthedocs/pykka.svg - :target: https://www.pykka.org/ - :alt: Read the Docs build status + :target: https://www.pykka.org/ + :alt: Read the Docs build status .. image:: https://img.shields.io/codecov/c/github/jodal/pykka/develop.svg - :target: https://codecov.io/gh/jodal/pykka - :alt: Test coverage + :target: https://codecov.io/gh/jodal/pykka + :alt: Test coverage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/docs/changes.rst new/Pykka-2.0.2/docs/changes.rst --- old/Pykka-2.0.0/docs/changes.rst 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/docs/changes.rst 2019-12-02 14:57:44.000000000 +0100 @@ -2,6 +2,23 @@ Changes ======= + +v2.0.2 (2019-12-02) +=================== + +Bugfix release. + +- Fix test suite run with pytest-mocker >= 1.11.2. (Fixes: :issue:`85`) + + +v2.0.1 (2019-10-10) +=================== + +Bugfix release. + +- Make :class:`~pykka.ActorRef` hashable. + + v2.0.0 (2019-05-07) =================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/pykka/__init__.py new/Pykka-2.0.2/pykka/__init__.py --- old/Pykka-2.0.0/pykka/__init__.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/pykka/__init__.py 2019-12-02 14:57:26.000000000 +0100 @@ -26,7 +26,7 @@ #: Pykka's :pep:`396` and :pep:`440` compatible version number -__version__ = '2.0.0' +__version__ = '2.0.2' _logging.getLogger('pykka').addHandler(_logging.NullHandler()) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/pykka/_future.py new/Pykka-2.0.2/pykka/_future.py --- old/Pykka-2.0.0/pykka/_future.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/pykka/_future.py 2019-10-10 23:56:38.000000000 +0200 @@ -55,7 +55,7 @@ Set the encapsulated value. :param value: the encapsulated value or nothing - :type value: any picklable object or :class:`None` + :type value: any object or :class:`None` :raise: an exception if set is called multiple times """ raise NotImplementedError diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/pykka/_proxy.py new/Pykka-2.0.2/pykka/_proxy.py --- old/Pykka-2.0.0/pykka/_proxy.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/pykka/_proxy.py 2019-10-10 23:56:42.000000000 +0200 @@ -192,6 +192,9 @@ return False return True + def __hash__(self): + return hash((self._actor, self._attr_path)) + def __repr__(self): return '<ActorProxy for {}, attr_path={!r}>'.format( self.actor_ref, self._attr_path diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/pykka/_ref.py new/Pykka-2.0.2/pykka/_ref.py --- old/Pykka-2.0.0/pykka/_ref.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/pykka/_ref.py 2019-10-10 23:56:38.000000000 +0200 @@ -64,7 +64,7 @@ block until a free slot is available. :param message: message to send - :type message: picklable dict + :type message: any :raise: :exc:`pykka.ActorDeadError` if actor is not available :return: nothing @@ -77,7 +77,7 @@ """ Send message to actor and wait for the reply. - The message must be a picklable dict. + The message can be of any type. If ``block`` is :class:`False`, it will immediately return a :class:`Future <pykka.Future>` instead of blocking. @@ -88,7 +88,7 @@ :exc:`pykka.Timeout`. :param message: message to send - :type message: picklable dict + :type message: any :param block: whether to block while waiting for a reply :type block: boolean diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/pykka/_registry.py new/Pykka-2.0.2/pykka/_registry.py --- old/Pykka-2.0.0/pykka/_registry.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/pykka/_registry.py 2019-10-10 23:56:38.000000000 +0200 @@ -30,7 +30,7 @@ actors. :param message: the message to send - :type message: picklable dict + :type message: any :param target_class: optional actor class to broadcast the message to :type target_class: class or class name diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/tests/proxy/test_mocking.py new/Pykka-2.0.2/tests/proxy/test_mocking.py --- old/Pykka-2.0.0/tests/proxy/test_mocking.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/tests/proxy/test_mocking.py 2019-12-02 14:51:32.000000000 +0100 @@ -69,25 +69,9 @@ def test_actor_with_mocked_method_works(actor_class, stop_all, mocker): mock = mocker.MagicMock(return_value='mocked method return') - with mocker.patch.object(actor_class, 'a_method', new=mock): - proxy = actor_class.start().proxy() + mocker.patch.object(actor_class, 'a_method', new=mock) + proxy = actor_class.start().proxy() - assert proxy.a_method().get() == 'mocked method return' + assert proxy.a_method().get() == 'mocked method return' assert mock.call_count == 1 - - -def test_actor_with_mock_created_by_patch_does_not_work( - actor_class, stop_all, mocker -): - with mocker.patch.object( - actor_class, 'a_method', return_value='foo' - ) as mock: - proxy = actor_class.start().proxy() - - # The method is properly mocked, as seen from the return value - assert proxy.a_method().get() == 'foo' - - # XXX But, with a mock created by the `mock.patch.object()` context - # manager, we cannot inspect the calls. Patches welcome! - assert mock.call_count == 0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Pykka-2.0.0/tests/proxy/test_proxy.py new/Pykka-2.0.2/tests/proxy/test_proxy.py --- old/Pykka-2.0.0/tests/proxy/test_proxy.py 2019-05-07 10:29:36.000000000 +0200 +++ new/Pykka-2.0.2/tests/proxy/test_proxy.py 2019-10-10 23:56:42.000000000 +0200 @@ -35,6 +35,10 @@ assert proxy == proxy +def test_is_hashable(proxy): + assert hash(proxy) == hash(proxy) + + def test_eq_to_another_proxy_for_same_actor_and_attr_path(proxy): proxy2 = proxy.actor_ref.proxy()
