forked from pool/python-zeep
Accepting request 970095 from home:pgajdos:python
- do not require python-mock for build
- added patches
fix 1ddd118956
+ python-zeep-no-mock.patch
OBS-URL: https://build.opensuse.org/request/show/970095
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-zeep?expand=0&rev=12
This commit is contained in:
39
python-zeep-no-mock.patch
Normal file
39
python-zeep-no-mock.patch
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
diff --git a/setup.py b/setup.py
|
||||||
|
index dfa79a58..4cf9073b 100755
|
||||||
|
--- a/setup.py
|
||||||
|
+++ b/setup.py
|
||||||
|
@@ -27,7 +27,6 @@
|
||||||
|
tests_require = [
|
||||||
|
"coverage[toml]==5.2.1",
|
||||||
|
"freezegun==0.3.15",
|
||||||
|
- "mock==2.0.0",
|
||||||
|
"pretend==1.0.9",
|
||||||
|
"pytest-cov==2.8.1",
|
||||||
|
"pytest-httpx",
|
||||||
|
diff --git a/tests/conftest.py b/tests/conftest.py
|
||||||
|
index 64c9bf95..4bd41de0 100644
|
||||||
|
--- a/tests/conftest.py
|
||||||
|
+++ b/tests/conftest.py
|
||||||
|
@@ -2,10 +2,6 @@
|
||||||
|
|
||||||
|
import pytest
|
||||||
|
|
||||||
|
-# Don't try to test asyncio since it is py3 only syntax
|
||||||
|
-if sys.version_info < (3, 5):
|
||||||
|
- collect_ignore = ["test_asyncio_transport.py"]
|
||||||
|
-
|
||||||
|
pytest.register_assert_rewrite("tests.utils")
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/tests/test_main.py b/tests/test_main.py
|
||||||
|
index bffc7230..f4504820 100644
|
||||||
|
--- a/tests/test_main.py
|
||||||
|
+++ b/tests/test_main.py
|
||||||
|
@@ -1,4 +1,5 @@
|
||||||
|
-from mock import patch
|
||||||
|
+from unittest.mock import patch
|
||||||
|
+
|
||||||
|
from pretend import stub
|
||||||
|
|
||||||
|
from zeep import __main__, client
|
||||||
|
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 14 09:03:18 UTC 2022 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- do not require python-mock for build
|
||||||
|
- added patches
|
||||||
|
fix https://github.com/mvantellingen/python-zeep/commit/1ddd118956870f9c68a24c9494207dc17441b416
|
||||||
|
+ python-zeep-no-mock.patch
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 13 07:31:39 UTC 2022 - Wolfgang Rosenauer <wr@rosenauer.org>
|
Sun Mar 13 07:31:39 UTC 2022 - Wolfgang Rosenauer <wr@rosenauer.org>
|
||||||
|
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ Group: Development/Languages/Python
|
|||||||
URL: http://docs.python-zeep.org
|
URL: http://docs.python-zeep.org
|
||||||
Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz
|
||||||
Patch1: httpx-test.patch
|
Patch1: httpx-test.patch
|
||||||
|
# https://github.com/mvantellingen/python-zeep/commit/1ddd118956870f9c68a24c9494207dc17441b416
|
||||||
|
Patch2: python-zeep-no-mock.patch
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -50,7 +52,6 @@ BuildRequires: %{python_module cached-property >= 1.3.0}
|
|||||||
BuildRequires: %{python_module freezegun >= 0.3.15}
|
BuildRequires: %{python_module freezegun >= 0.3.15}
|
||||||
BuildRequires: %{python_module isodate >= 0.5.4}
|
BuildRequires: %{python_module isodate >= 0.5.4}
|
||||||
BuildRequires: %{python_module lxml >= 4.6.0}
|
BuildRequires: %{python_module lxml >= 4.6.0}
|
||||||
BuildRequires: %{python_module mock >= 2.0.0}
|
|
||||||
BuildRequires: %{python_module pretend >= 1.0.9}
|
BuildRequires: %{python_module pretend >= 1.0.9}
|
||||||
BuildRequires: %{python_module pytest >= 6.0.1}
|
BuildRequires: %{python_module pytest >= 6.0.1}
|
||||||
BuildRequires: %{python_module pytest-asyncio}
|
BuildRequires: %{python_module pytest-asyncio}
|
||||||
|
|||||||
Reference in New Issue
Block a user