From f07e5aa868ca9fa13274ba6f9367bd10863dfefdbd10f04250117b03818fde82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Thu, 14 Apr 2022 14:41:50 +0000 Subject: [PATCH] Accepting request 970095 from home:pgajdos:python - do not require python-mock for build - added patches fix https://github.com/mvantellingen/python-zeep/commit/1ddd118956870f9c68a24c9494207dc17441b416 + 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 --- python-zeep-no-mock.patch | 39 +++++++++++++++++++++++++++++++++++++++ python-zeep.changes | 8 ++++++++ python-zeep.spec | 3 ++- 3 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 python-zeep-no-mock.patch diff --git a/python-zeep-no-mock.patch b/python-zeep-no-mock.patch new file mode 100644 index 0000000..4764a8e --- /dev/null +++ b/python-zeep-no-mock.patch @@ -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 + diff --git a/python-zeep.changes b/python-zeep.changes index 8d8b688..80c631f 100644 --- a/python-zeep.changes +++ b/python-zeep.changes @@ -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 diff --git a/python-zeep.spec b/python-zeep.spec index 8847f0b..900d809 100644 --- a/python-zeep.spec +++ b/python-zeep.spec @@ -27,6 +27,8 @@ Group: Development/Languages/Python URL: http://docs.python-zeep.org Source: https://files.pythonhosted.org/packages/source/z/zeep/zeep-%{version}.tar.gz Patch1: httpx-test.patch +# https://github.com/mvantellingen/python-zeep/commit/1ddd118956870f9c68a24c9494207dc17441b416 +Patch2: python-zeep-no-mock.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes 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 isodate >= 0.5.4} BuildRequires: %{python_module lxml >= 4.6.0} -BuildRequires: %{python_module mock >= 2.0.0} BuildRequires: %{python_module pretend >= 1.0.9} BuildRequires: %{python_module pytest >= 6.0.1} BuildRequires: %{python_module pytest-asyncio}