Accepting request 684702 from devel:languages:python

- Run tests verbosely
- Drop cert_support.tar.gz as it is currently properly in the release

OBS-URL: https://build.opensuse.org/request/show/684702
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-paramiko?expand=0&rev=44
This commit is contained in:
Dominique Leuenberger 2019-03-29 19:34:19 +00:00 committed by Git OBS Bridge
commit 4b364bdc08
3 changed files with 7 additions and 12 deletions

BIN
cert_support.tar.gz (Stored with Git LFS)

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Mar 13 14:01:04 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Run tests verbosely
- Drop cert_support.tar.gz as it is currently properly in the release
-------------------------------------------------------------------
Thu Feb 14 20:49:56 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>

View File

@ -17,7 +17,6 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%bcond_without test
Name: python-paramiko
Version: 2.4.2
Release: 0
@ -26,8 +25,6 @@ License: LGPL-2.1-or-later
Group: Development/Languages/Python
URL: http://www.paramiko.org/
Source: https://files.pythonhosted.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
# certificates needed by testsuite
Source1: cert_support.tar.gz
Patch0: paramiko-test_extend_timeout.patch
Patch2: relaxed.patch
Patch3: 1311.patch
@ -46,10 +43,8 @@ Requires: python-bcrypt >= 3.1.3
Requires: python-cryptography >= 2.5
Requires: python-pyasn1 >= 0.1.7
BuildArch: noarch
%if %{with test}
BuildRequires: %{python_module mock}
BuildRequires: %{python_module pytest}
%endif
%python_subpackages
%description
@ -77,7 +72,6 @@ This package contains the documentation.
# Fix non-executable script rpmlint issue:
find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
tar xvzf %{SOURCE1} -C tests/
%build
%python_build
@ -86,11 +80,9 @@ tar xvzf %{SOURCE1} -C tests/
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%if %{with test}
%check
export LANG=en_US.UTF-8
%python_expand pytest-%{$python_bin_suffix}
%endif
%pytest
%files %{python_files}
%license LICENSE