From 6edbe72b12f47379c66710a812ed5a0b9a9ea216dcc91024a9b21c2305415935 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 20 Sep 2021 02:56:38 +0000 Subject: [PATCH] - Update to 1.0.2: * fix(urllib3): interceptor is never really disabled (#68) * Closes #75 Re consider @fluent decorator (#76) * fix(#69): use match keyword in pytest.raises * fix(History): invalid rst syntax * fix(aiohttp): compatible with non aiohttp projects (#67) * feat(History): add release changes - Drop pytest5.patch, no longer required. - Drop nose BuildRequires, and its suite, the remainder covers it. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pook?expand=0&rev=9 --- pook-1.0.0.tar.gz | 3 --- pook-1.0.2.tar.gz | 3 +++ pytest5.patch | 22 ---------------------- python-pook.changes | 13 +++++++++++++ python-pook.spec | 8 ++------ 5 files changed, 18 insertions(+), 31 deletions(-) delete mode 100644 pook-1.0.0.tar.gz create mode 100644 pook-1.0.2.tar.gz delete mode 100644 pytest5.patch diff --git a/pook-1.0.0.tar.gz b/pook-1.0.0.tar.gz deleted file mode 100644 index d5a56db..0000000 --- a/pook-1.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e956e4fbe174eda6ad1d3b200818528e1829b1615d293e663c6e09af76390aae -size 40621 diff --git a/pook-1.0.2.tar.gz b/pook-1.0.2.tar.gz new file mode 100644 index 0000000..e7fdbc5 --- /dev/null +++ b/pook-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f28112db062d17db245b351c80f2bb5bf1e56ebfa93d3d75cc44f500c15c40eb +size 42069 diff --git a/pytest5.patch b/pytest5.patch deleted file mode 100644 index 978d1ab..0000000 --- a/pytest5.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 2071da27701c82ce02b015e01e2aa6fd203e7bb5 Mon Sep 17 00:00:00 2001 -From: Tom -Date: Tue, 5 May 2020 14:22:30 +0200 -Subject: [PATCH] fix(#69): use match keyword in pytest.raises - ---- - tests/unit/matchers/base_test.py | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/tests/unit/matchers/base_test.py b/tests/unit/matchers/base_test.py -index 175bd67..b01aa23 100644 ---- a/tests/unit/matchers/base_test.py -+++ b/tests/unit/matchers/base_test.py -@@ -33,7 +33,7 @@ def test_base_matcher_exceptions(): - assert _BaseMatcher('foo').match(None) is None - - with pytest.raises(ValueError, -- message='expectation argument cannot be empty'): -+ match='expectation argument cannot be empty'): - _BaseMatcher(None) - - diff --git a/python-pook.changes b/python-pook.changes index 3127e59..42819b4 100644 --- a/python-pook.changes +++ b/python-pook.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Mon Sep 20 02:54:50 UTC 2021 - Steve Kowalik + +- Update to 1.0.2: + * fix(urllib3): interceptor is never really disabled (#68) + * Closes #75 Re consider @fluent decorator (#76) + * fix(#69): use match keyword in pytest.raises + * fix(History): invalid rst syntax + * fix(aiohttp): compatible with non aiohttp projects (#67) + * feat(History): add release changes +- Drop pytest5.patch, no longer required. +- Drop nose BuildRequires, and its suite, the remainder covers it. + ------------------------------------------------------------------- Wed May 6 06:59:43 UTC 2020 - Tomáš Chvátal diff --git a/python-pook.spec b/python-pook.spec index 1e21470..e3b1879 100644 --- a/python-pook.spec +++ b/python-pook.spec @@ -1,7 +1,7 @@ # # spec file for package python-pook # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -20,13 +20,12 @@ # requires python-aiohttp %define skip_python2 1 Name: python-pook -Version: 1.0.0 +Version: 1.0.2 Release: 0 Summary: HTTP traffic mocking and expectations License: MIT URL: https://github.com/h2non/pook Source: https://files.pythonhosted.org/packages/source/p/pook/pook-%{version}.tar.gz -Patch0: pytest5.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -42,7 +41,6 @@ BuildRequires: %{python_module furl >= 0.5.6} BuildRequires: %{python_module jsonschema >= 2.5.1} BuildRequires: %{python_module mocket >= 1.6.0} BuildRequires: %{python_module mock} -BuildRequires: %{python_module nose >= 1.3.7} BuildRequires: %{python_module pytest} BuildRequires: %{python_module requests >= 2.20.0} BuildRequires: %{python_module urllib3 >= 1.19.1} @@ -55,7 +53,6 @@ HTTP traffic mocking and expectations. %prep %setup -q -n pook-%{version} -%patch0 -p1 rm -f setup.cfg pytest.ini tox.ini # Assist unittest on Python 2 @@ -75,7 +72,6 @@ touch tests/__init__.py export PYTHONPATH=%{buildroot}%{$python_sitelib} $python -m pytest -v tests/unit $python -m pytest -v tests/integration/engines/pytest_suite.py -$python -m nose tests/integration/engines/nose_suite.py export PYTHONPATH=%{buildroot}%{$python_sitelib}:. $python -m unittest tests.integration.engines.unittest_suite }