forked from pool/python-mocket
Accepting request 977873 from home:pgajdos:python
- version update to 3.10.6 No need for the external mock dependency - deleted patches - python-mocket-no-mock.patch (upstreamed) OBS-URL: https://build.opensuse.org/request/show/977873 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mocket?expand=0&rev=48
This commit is contained in:
parent
86c0462991
commit
f9b090fcef
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:ac5ea89794fac07d2736668ffa51d02fc1fe5d9cf5925ece11eecd34ee0c0adc
|
|
||||||
size 76076
|
|
3
mocket-3.10.6.tar.gz
Normal file
3
mocket-3.10.6.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a43e9688adce8030f65f2f6be7d28e07d4d3fcb36241afc35915c0fb0efaa1ef
|
||||||
|
size 76119
|
@ -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
|
|
||||||
|
|
@ -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
|
Tue May 17 13:29:27 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
%{?!python_module:%define python_module() python3-%{**}}
|
%{?!python_module:%define python_module() python3-%{**}}
|
||||||
%define skip_python2 1
|
%define skip_python2 1
|
||||||
Name: python-mocket%{psuffix}
|
Name: python-mocket%{psuffix}
|
||||||
Version: 3.10.5
|
Version: 3.10.6
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python socket mock framework
|
Summary: Python socket mock framework
|
||||||
License: BSD-3-Clause
|
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
|
# 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
|
Patch0: recording-urllib3-brotli.patch
|
||||||
# https://github.com/mindflayer/python-mocket/issues/178
|
# https://github.com/mindflayer/python-mocket/issues/178
|
||||||
Patch1: python-mocket-no-mock.patch
|
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@ -84,7 +83,6 @@ sed -i '/pipenv/ d' setup.py
|
|||||||
# urllib3 in TW accepts Brotli encoding by default
|
# urllib3 in TW accepts Brotli encoding by default
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%endif
|
%endif
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%if !%{with test}
|
%if !%{with test}
|
||||||
|
Loading…
Reference in New Issue
Block a user