Hello community, here is the log from the commit of package python-pook for openSUSE:Factory checked in at 2020-03-18 12:45:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pook (Old) and /work/SRC/openSUSE:Factory/.python-pook.new.3160 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pook" Wed Mar 18 12:45:48 2020 rev:2 rq:786100 version:0.2.8 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pook/python-pook.changes 2019-09-23 12:32:45.853655894 +0200 +++ /work/SRC/openSUSE:Factory/.python-pook.new.3160/python-pook.changes 2020-03-18 12:51:39.325184136 +0100 @@ -1,0 +2,6 @@ +Wed Mar 18 08:39:21 UTC 2020 - Marketa Calabkova <[email protected]> + +- Update to 0.2.8 + * fix collections import warning + +------------------------------------------------------------------- Old: ---- pook-0.2.6.tar.gz New: ---- pook-0.2.8.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pook.spec ++++++ --- /var/tmp/diff_new_pack.XbCssY/_old 2020-03-18 12:51:40.889185070 +0100 +++ /var/tmp/diff_new_pack.XbCssY/_new 2020-03-18 12:51:40.893185072 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pook # -# 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 @@ -12,30 +12,31 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pook -Version: 0.2.6 +Version: 0.2.8 Release: 0 -License: MIT Summary: HTTP traffic mocking and expectations -Url: https://github.com/h2non/pook +License: MIT Group: Development/Languages/Python +URL: https://github.com/h2non/pook Source: https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros # SECTION test requirements BuildRequires: %{python_module furl >= 0.5.6} BuildRequires: %{python_module jsonschema >= 2.5.1} -BuildRequires: %{python_module xmltodict >= 0.10.2} BuildRequires: %{python_module mocket >= 1.6.0} -BuildRequires: %{python_module nose >= 1.3.7} BuildRequires: %{python_module mock} +BuildRequires: %{python_module nose >= 1.3.7} BuildRequires: %{python_module pytest < 5} BuildRequires: %{python_module requests >= 2.20.0} BuildRequires: %{python_module urllib3 >= 1.19.1} +BuildRequires: %{python_module xmltodict >= 0.10.2} # /SECTION BuildRequires: fdupes Requires: python-furl >= 0.5.6 ++++++ pook-0.2.6.tar.gz -> pook-0.2.8.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/History.rst new/pook-0.2.8/History.rst --- old/pook-0.2.6/History.rst 2019-02-01 13:21:33.000000000 +0100 +++ new/pook-0.2.8/History.rst 2019-10-31 10:52:23.000000000 +0100 @@ -1,8 +1,17 @@ - History ======= +v0.2.8 / 2019-10-31 +------------------- + + * fix collections import warning (#61) + +v0.2.7 / 2019-10-21 +------------------- + + * fix collections import warning (#61) + v0.2.6 / 2019-02-01 ------------------- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/LICENSE new/pook-0.2.8/LICENSE --- old/pook-0.2.6/LICENSE 2017-10-03 12:06:08.000000000 +0200 +++ new/pook-0.2.8/LICENSE 2019-10-22 21:27:11.000000000 +0200 @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2016-2017 Tomás Aparicio +Copyright (c) 2016-2019 Tomás Aparicio Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/PKG-INFO new/pook-0.2.8/PKG-INFO --- old/pook-0.2.6/PKG-INFO 2019-02-01 13:22:49.000000000 +0100 +++ new/pook-0.2.8/PKG-INFO 2019-10-31 10:56:02.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pook -Version: 0.2.6 +Version: 0.2.8 Summary: HTTP traffic mocking and expectations made easy Home-page: https://github.com/h2non/pook Author: Tomas Aparicio @@ -335,10 +335,19 @@ - History ======= + v0.2.8 / 2019-10-31 + ------------------- + + * fix collections import warning (#61) + + v0.2.7 / 2019-10-21 + ------------------- + + * fix collections import warning (#61) + v0.2.6 / 2019-02-01 ------------------- @@ -506,6 +515,8 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Programming Language :: Python :: Implementation :: CPython diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook/__init__.py new/pook-0.2.8/pook/__init__.py --- old/pook-0.2.6/pook/__init__.py 2019-02-01 13:20:02.000000000 +0100 +++ new/pook-0.2.8/pook/__init__.py 2019-10-31 10:49:43.000000000 +0100 @@ -9,4 +9,4 @@ __license__ = 'MIT' # Current version -__version__ = '0.2.6' +__version__ = '0.2.8' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook/api.py new/pook-0.2.8/pook/api.py --- old/pook-0.2.6/pook/api.py 2019-02-01 13:19:29.000000000 +0100 +++ new/pook-0.2.8/pook/api.py 2019-10-22 21:14:17.000000000 +0200 @@ -28,7 +28,7 @@ 'ispending', 'mock', 'pending_mocks', 'unmatched_requests', 'isunmatched', 'unmatched', 'isactive', 'isdone', 'regex', 'Engine', 'Mock', 'Request', 'Response', - 'MatcherEngine', 'MockEngine' + 'MatcherEngine', 'MockEngine', 'use_network_filter' ) # Default singleton mock engine to be used diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook/engine.py new/pook-0.2.8/pook/engine.py --- old/pook-0.2.6/pook/engine.py 2017-03-26 00:50:22.000000000 +0100 +++ new/pook-0.2.8/pook/engine.py 2019-10-22 21:14:17.000000000 +0200 @@ -117,7 +117,7 @@ Arguments: *fn (function): variadic function filter arguments to be used. """ - self.network_filters = self.network_filters + fn + self.network_filters.extend(fn) def flush_network_filters(self): """ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook/headers.py new/pook-0.2.8/pook/headers.py --- old/pook-0.2.6/pook/headers.py 2016-11-28 03:22:09.000000000 +0100 +++ new/pook-0.2.8/pook/headers.py 2019-10-31 10:48:48.000000000 +0100 @@ -1,5 +1,8 @@ import sys -from collections import Mapping, MutableMapping +try: + from collections.abc import Mapping, MutableMapping +except ImportError: + from collections import Mapping, MutableMapping PY3 = sys.version_info >= (3, 0) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook.egg-info/PKG-INFO new/pook-0.2.8/pook.egg-info/PKG-INFO --- old/pook-0.2.6/pook.egg-info/PKG-INFO 2019-02-01 13:22:49.000000000 +0100 +++ new/pook-0.2.8/pook.egg-info/PKG-INFO 2019-10-31 10:56:02.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pook -Version: 0.2.6 +Version: 0.2.8 Summary: HTTP traffic mocking and expectations made easy Home-page: https://github.com/h2non/pook Author: Tomas Aparicio @@ -335,10 +335,19 @@ - History ======= + v0.2.8 / 2019-10-31 + ------------------- + + * fix collections import warning (#61) + + v0.2.7 / 2019-10-21 + ------------------- + + * fix collections import warning (#61) + v0.2.6 / 2019-02-01 ------------------- @@ -506,6 +515,8 @@ Classifier: Programming Language :: Python :: 3.4 Classifier: Programming Language :: Python :: 3.5 Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Classifier: Programming Language :: Python :: 3.8 Classifier: Topic :: Software Development Classifier: Topic :: Software Development :: Libraries :: Python Modules Classifier: Programming Language :: Python :: Implementation :: CPython diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook.egg-info/SOURCES.txt new/pook-0.2.8/pook.egg-info/SOURCES.txt --- old/pook-0.2.6/pook.egg-info/SOURCES.txt 2019-02-01 13:22:49.000000000 +0100 +++ new/pook-0.2.8/pook.egg-info/SOURCES.txt 2019-10-31 10:56:02.000000000 +0100 @@ -56,6 +56,7 @@ tests/integration/engines/unittest_suite.py tests/unit/__init__.py tests/unit/api_test.py +tests/unit/engine_test.py tests/unit/exceptions_test.py tests/unit/matcher_test.py tests/unit/mock_engine_test.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/pook.egg-info/requires.txt new/pook-0.2.8/pook.egg-info/requires.txt --- old/pook-0.2.6/pook.egg-info/requires.txt 2019-02-01 13:22:49.000000000 +0100 +++ new/pook-0.2.8/pook.egg-info/requires.txt 2019-10-31 10:56:02.000000000 +0100 @@ -1,6 +1,6 @@ -jsonschema~=2.5.1 -xmltodict~=0.10.2 -furl~=0.5.6 +jsonschema>=2.5.1 +xmltodict>=0.11.0 +furl>=0.5.6 [:python_version < "3.3"] -mock~=2.0.0 +mock>=2.0.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/requirements-dev.txt new/pook-0.2.8/requirements-dev.txt --- old/pook-0.2.6/requirements-dev.txt 2019-02-01 13:19:29.000000000 +0100 +++ new/pook-0.2.8/requirements-dev.txt 2019-10-22 21:14:17.000000000 +0200 @@ -8,7 +8,7 @@ Sphinx~=1.4.8 sphinx-rtd-theme~=0.1.9 requests>=2.20.0 -urllib3~=1.19.1 +urllib3>=1.24.2 bumpversion~=0.5.3 aiohttp~=1.1.5 ; python_version >= '3.4.2' mocket~=1.6.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/requirements.txt new/pook-0.2.8/requirements.txt --- old/pook-0.2.6/requirements.txt 2017-10-19 14:49:24.000000000 +0200 +++ new/pook-0.2.8/requirements.txt 2019-10-22 21:14:17.000000000 +0200 @@ -1,4 +1,4 @@ -jsonschema~=2.5.1 -xmltodict~=0.10.2 -furl~=0.5.6 -mock~=2.0.0 ; python_version < '3.3' +jsonschema>=2.5.1 +xmltodict>=0.11.0 +furl>=0.5.6 +mock>=2.0.0 ; python_version < '3.3' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/setup.py new/pook-0.2.8/setup.py --- old/pook-0.2.6/setup.py 2017-10-19 15:02:54.000000000 +0200 +++ new/pook-0.2.8/setup.py 2019-10-31 10:49:34.000000000 +0100 @@ -5,7 +5,7 @@ ==== Versatile HTTP traffic mocking and expectations made easy in Python. -:copyright: (c) 2016-2017 Tomas Aparicio +:copyright: (c) 2016-2019 Tomas Aparicio :license: MIT """ @@ -97,7 +97,9 @@ 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', - 'Topic :: Software Development', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Topic :: Software Development', 'Topic :: Software Development :: Libraries :: Python Modules', 'Programming Language :: Python :: Implementation :: CPython', 'Programming Language :: Python :: Implementation :: PyPy' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pook-0.2.6/tests/unit/engine_test.py new/pook-0.2.8/tests/unit/engine_test.py --- old/pook-0.2.6/tests/unit/engine_test.py 1970-01-01 01:00:00.000000000 +0100 +++ new/pook-0.2.8/tests/unit/engine_test.py 2019-10-22 21:14:17.000000000 +0200 @@ -0,0 +1,20 @@ +import pytest + +from pook import Engine + + [email protected] +def engine(): + return Engine() + + +def test_engine_use_network_filter(engine): + assert len(engine.network_filters) == 0 + engine.use_network_filter(lambda x: x) + assert len(engine.network_filters) == 1 + + +def test_engine_enable_network(engine): + assert len(engine.network_filters) == 0 + engine.enable_network('http://foo', 'http://bar') + assert len(engine.network_filters) == 2
