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:
commit
4b364bdc08
BIN
cert_support.tar.gz
(Stored with Git LFS)
BIN
cert_support.tar.gz
(Stored with Git LFS)
Binary file not shown.
@ -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>
|
Thu Feb 14 20:49:56 UTC 2019 - Hans-Peter Jansen <hpj@urpla.net>
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@
|
|||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%bcond_without test
|
|
||||||
Name: python-paramiko
|
Name: python-paramiko
|
||||||
Version: 2.4.2
|
Version: 2.4.2
|
||||||
Release: 0
|
Release: 0
|
||||||
@ -26,8 +25,6 @@ License: LGPL-2.1-or-later
|
|||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: http://www.paramiko.org/
|
URL: http://www.paramiko.org/
|
||||||
Source: https://files.pythonhosted.org/packages/source/p/paramiko/paramiko-%{version}.tar.gz
|
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
|
Patch0: paramiko-test_extend_timeout.patch
|
||||||
Patch2: relaxed.patch
|
Patch2: relaxed.patch
|
||||||
Patch3: 1311.patch
|
Patch3: 1311.patch
|
||||||
@ -46,10 +43,8 @@ Requires: python-bcrypt >= 3.1.3
|
|||||||
Requires: python-cryptography >= 2.5
|
Requires: python-cryptography >= 2.5
|
||||||
Requires: python-pyasn1 >= 0.1.7
|
Requires: python-pyasn1 >= 0.1.7
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if %{with test}
|
|
||||||
BuildRequires: %{python_module mock}
|
BuildRequires: %{python_module mock}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
%endif
|
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -77,7 +72,6 @@ This package contains the documentation.
|
|||||||
|
|
||||||
# Fix non-executable script rpmlint issue:
|
# Fix non-executable script rpmlint issue:
|
||||||
find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
find demos -name "*.py" -exec sed -i "/#\!\/usr\/bin\/.*/d" {} \;
|
||||||
tar xvzf %{SOURCE1} -C tests/
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%python_build
|
||||||
@ -86,11 +80,9 @@ tar xvzf %{SOURCE1} -C tests/
|
|||||||
%python_install
|
%python_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with test}
|
|
||||||
%check
|
%check
|
||||||
export LANG=en_US.UTF-8
|
export LANG=en_US.UTF-8
|
||||||
%python_expand pytest-%{$python_bin_suffix}
|
%pytest
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user