diff --git a/mocket-3.10.5.tar.gz b/mocket-3.10.5.tar.gz deleted file mode 100644 index 5ae410a..0000000 --- a/mocket-3.10.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ac5ea89794fac07d2736668ffa51d02fc1fe5d9cf5925ece11eecd34ee0c0adc -size 76076 diff --git a/mocket-3.10.6.tar.gz b/mocket-3.10.6.tar.gz new file mode 100644 index 0000000..dbe6192 --- /dev/null +++ b/mocket-3.10.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a43e9688adce8030f65f2f6be7d28e07d4d3fcb36241afc35915c0fb0efaa1ef +size 76119 diff --git a/python-mocket-no-mock.patch b/python-mocket-no-mock.patch deleted file mode 100644 index 64a3111..0000000 --- a/python-mocket-no-mock.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff -upr mocket-3.10.5.orig/tests/main/test_http.py mocket-3.10.5/tests/main/test_http.py ---- mocket-3.10.5.orig/tests/main/test_http.py 2022-05-17 15:23:49.159143686 +0200 -+++ mocket-3.10.5/tests/main/test_http.py 2022-05-17 15:23:49.163143712 +0200 -@@ -10,7 +10,7 @@ from urllib.error import HTTPError - from urllib.parse import urlencode - from urllib.request import urlopen - --import mock -+from unittest import mock - import pytest - import requests - diff --git a/python-mocket.changes b/python-mocket.changes index 00fc691..e76af59 100644 --- a/python-mocket.changes +++ b/python-mocket.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed May 18 06:31:34 UTC 2022 - pgajdos@suse.com + +- version update to 3.10.6 + No need for the external mock dependency +- deleted patches + - python-mocket-no-mock.patch (upstreamed) + ------------------------------------------------------------------- Tue May 17 13:29:27 UTC 2022 - pgajdos@suse.com diff --git a/python-mocket.spec b/python-mocket.spec index 1a9d403..5e6437b 100644 --- a/python-mocket.spec +++ b/python-mocket.spec @@ -27,7 +27,7 @@ %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 Name: python-mocket%{psuffix} -Version: 3.10.5 +Version: 3.10.6 Release: 0 Summary: Python socket mock framework License: BSD-3-Clause @@ -36,7 +36,6 @@ Source0: https://files.pythonhosted.org/packages/source/m/mocket/mocket-% # PATCH-FIX-OPENSUSE recording-urllib3-brotli.patch -- our urllib has different default headers than upstreams test reference, code@bnavigator.de Patch0: recording-urllib3-brotli.patch # https://github.com/mindflayer/python-mocket/issues/178 -Patch1: python-mocket-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -84,7 +83,6 @@ sed -i '/pipenv/ d' setup.py # urllib3 in TW accepts Brotli encoding by default %patch0 -p1 %endif -%patch1 -p1 %build %if !%{with test}