From 9b38b13165cb55d77c29ed7f4ad59f03014375dc0a8da75270715df3034f83fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Wed, 20 Apr 2022 08:14:42 +0000 Subject: [PATCH] Accepting request 971000 from home:pgajdos:python - do not require python-mock for build OBS-URL: https://build.opensuse.org/request/show/971000 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sshtunnel?expand=0&rev=13 --- python-sshtunnel.changes | 5 +++++ python-sshtunnel.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-sshtunnel.changes b/python-sshtunnel.changes index 67c3e09..998cc44 100644 --- a/python-sshtunnel.changes +++ b/python-sshtunnel.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 20 07:47:51 UTC 2022 - pgajdos@suse.com + +- do not require python-mock for build + ------------------------------------------------------------------- Mon Feb 1 22:00:48 UTC 2021 - Dirk Müller diff --git a/python-sshtunnel.spec b/python-sshtunnel.spec index 3ff8c6b..a35debf 100644 --- a/python-sshtunnel.spec +++ b/python-sshtunnel.spec @@ -1,7 +1,7 @@ # # spec file for package python-sshtunnel # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,7 +25,6 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/pahaz/sshtunnel/ Source: https://files.pythonhosted.org/packages/source/s/sshtunnel/sshtunnel-%{version}.tar.gz -BuildRequires: %{python_module mock} BuildRequires: %{python_module paramiko >= 2.7.2} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} @@ -58,6 +57,8 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' sshtunnel.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check +# https://github.com/pahaz/sshtunnel/issues/259 +sed -i 's:import mock:from unittest import mock:' tests/test_forwarder.py %pytest %post