forked from pool/python-sshtunnel
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
This commit is contained in:
@@ -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 <dmueller@suse.com>
|
Mon Feb 1 22:00:48 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-sshtunnel
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,7 +25,6 @@ License: MIT
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/pahaz/sshtunnel/
|
URL: https://github.com/pahaz/sshtunnel/
|
||||||
Source: https://files.pythonhosted.org/packages/source/s/sshtunnel/sshtunnel-%{version}.tar.gz
|
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 paramiko >= 2.7.2}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -58,6 +57,8 @@ sed -i '1{\,^#!%{_bindir}/env python,d}' sshtunnel.py
|
|||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
# https://github.com/pahaz/sshtunnel/issues/259
|
||||||
|
sed -i 's:import mock:from unittest import mock:' tests/test_forwarder.py
|
||||||
%pytest
|
%pytest
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
Reference in New Issue
Block a user